org.jetbrains.kotlin.name
Class ClassId
java.lang.Object
org.jetbrains.kotlin.name.ClassId
public final class ClassId
- extends java.lang.Object
A class name which is used to uniquely identify a Kotlin class.
If local = true, the class represented by this id is either itself local or is an inner class of some local class. This also means that
the first non-class container of the class is not a package.
In the case of a local class, relativeClassName consists of a single name including all callables' and class' names all the way up to
the package, separated by dollar signs. If a class is an inner of local, relativeClassName would consist of two names,
the second one being the class' short name.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ClassId
public ClassId(@NotNull
FqName packageFqName,
@NotNull
FqName relativeClassName,
boolean local)
ClassId
public ClassId(@NotNull
FqName packageFqName,
@NotNull
Name topLevelName)
topLevel
@NotNull
public static ClassId topLevel(@NotNull
FqName topLevelFqName)
getPackageFqName
@NotNull
public FqName getPackageFqName()
getRelativeClassName
@NotNull
public FqName getRelativeClassName()
getShortClassName
@NotNull
public Name getShortClassName()
isLocal
public boolean isLocal()
createNestedClassId
@NotNull
public ClassId createNestedClassId(@NotNull
Name name)
getOuterClassId
@NotNull
public ClassId getOuterClassId()
isNestedClass
public boolean isNestedClass()
asSingleFqName
@NotNull
public FqName asSingleFqName()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object