Class QualifiedName

java.lang.Object
com.intellij.psi.util.QualifiedName
All Implemented Interfaces:
Comparable<QualifiedName>

public class QualifiedName extends Object implements Comparable<QualifiedName>
  • Method Details

    • fromComponents

      public static QualifiedName fromComponents(Collection<String> components)
    • fromComponents

      @NotNull public static @NotNull QualifiedName fromComponents(String... components)
    • append

      public QualifiedName append(String name)
    • append

      public QualifiedName append(QualifiedName qName)
    • removeLastComponent

      @NotNull public @NotNull QualifiedName removeLastComponent()
    • removeTail

      @NotNull public @NotNull QualifiedName removeTail(int count)
    • removeHead

      @NotNull public @NotNull QualifiedName removeHead(int count)
    • getComponents

      @NotNull public @NotNull List<String> getComponents()
    • getComponentCount

      public int getComponentCount()
    • matches

      public boolean matches(String... components)
    • matchesPrefix

      public boolean matchesPrefix(QualifiedName prefix)
    • endsWith

      public boolean endsWith(@NotNull @NotNull String suffix)
    • getFirstComponent

      @Nullable public @Nullable String getFirstComponent()
    • getLastComponent

      @Nullable public @Nullable String getLastComponent()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • join

      public String join(String separator)
    • fromDottedString

      @NotNull public static @NotNull QualifiedName fromDottedString(@NotNull @NotNull String refName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • subQualifiedName

      public QualifiedName subQualifiedName(int fromIndex, int toIndex)
    • compareTo

      public int compareTo(@NotNull @NotNull QualifiedName other)
      Specified by:
      compareTo in interface Comparable<QualifiedName>