public class PsiClassReferenceType extends PsiClassType.Stub
PsiClassType.ClassResolveResult, PsiClassType.StubARRAY_FACTORY, EMPTY_ARRAY, myLanguageLevel| Constructor and Description |
|---|
PsiClassReferenceType(PsiJavaCodeReferenceElement reference,
LanguageLevel level) |
PsiClassReferenceType(PsiJavaCodeReferenceElement reference,
LanguageLevel level,
PsiAnnotation [] annotations) |
PsiClassReferenceType(PsiJavaCodeReferenceElement reference,
LanguageLevel level,
TypeAnnotationProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsToText(java.lang.String text)
Checks if the specified string is equivalent to the canonical text of the type.
|
PsiAnnotation [] |
getAnnotations()
Returns the list of annotations syntactically contained in the element.
|
java.lang.String |
getCanonicalText(boolean annotated)
Returns canonical representation of the type (all references fully-qualified).
|
java.lang.String |
getClassName()
Returns the non-qualified name of the class referenced by the type.
|
java.lang.String |
getInternalCanonicalText()
Return canonical text of the type with some internal details added for presentational purposes.
|
LanguageLevel |
getLanguageLevel() |
PsiType [] |
getParameters()
Returns the list of type arguments for the type.
|
java.lang.String |
getPresentableText(boolean annotated)
Returns text of the type that can be presented to a user (references normally non-qualified).
|
PsiJavaCodeReferenceElement |
getReference() |
GlobalSearchScope |
getResolveScope()
Overrides
PsiType.getResolveScope() to narrow specify @NotNull. |
boolean |
isValid()
Checks if the type is currently valid.
|
PsiClassType |
rawType()
Returns the raw type (with no values assigned to type parameters) corresponding to this type.
|
PsiClass |
resolve()
Resolves the class reference and returns the resulting class.
|
PsiClassType.ClassResolveResult |
resolveGenerics()
Returns the resolve result containing the class referenced by the class type and the
substitutor which can substitute the values of type arguments used in the class type
declaration.
|
PsiClassType |
setLanguageLevel(LanguageLevel languageLevel)
Functional style setter preserving original type's language level
|
getCanonicalText, getPresentableTextaccept, annotate, equals, getName, getParameterCount, getSuperTypes, hashCode, hasNonTrivialParameters, hasParameters, isRaw, isRaw, resolveType, typeArgumentsaddAnnotation, createArray, createArrayType, createArrayType, findAnnotation, getAnnotationProvider, getApplicableAnnotations, getArrayDimensions, getDeepComponentType, getJavaLangClass, getJavaLangError, getJavaLangObject, getJavaLangRuntimeException, getJavaLangString, getJavaLangThrowable, getTypeByName, isAssignableFrom, isConvertibleFrom, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccepthasAnnotationpublic PsiClassReferenceType(PsiJavaCodeReferenceElement reference, LanguageLevel level)
public PsiClassReferenceType(PsiJavaCodeReferenceElement reference, LanguageLevel level, PsiAnnotation [] annotations)
public PsiClassReferenceType(PsiJavaCodeReferenceElement reference, LanguageLevel level, TypeAnnotationProvider provider)
public boolean isValid()
PsiTypeisValid in class PsiTypePsiElement.isValid()public boolean equalsToText(java.lang.String text)
PsiTypeequalsToText in class PsiTypetext - the text to compare with.public GlobalSearchScope getResolveScope()
PsiClassTypePsiType.getResolveScope() to narrow specify @NotNull.getResolveScope in class PsiClassTypepublic PsiAnnotation [] getAnnotations()
PsiAnnotationOwnergetAnnotations in interface JvmTypegetAnnotations in interface PsiAnnotationOwnergetAnnotations in class PsiTypePsiType.getAnnotationProvider() to retrieve the annotations.AnnotatedElement.getAnnotations()public LanguageLevel getLanguageLevel()
getLanguageLevel in class PsiClassTypepublic PsiClassType setLanguageLevel(LanguageLevel languageLevel)
PsiClassTypesetLanguageLevel in class PsiClassTypelanguageLevel - level to obtain class type withpublic PsiClass resolve()
PsiClassTyperesolve in interface JvmReferenceTyperesolve in class PsiClassTypepublic PsiClassType.ClassResolveResult resolveGenerics()
PsiClassTyperesolveGenerics in class PsiClassTypepublic PsiClassType rawType()
PsiClassTyperawType in class PsiClassTypepublic java.lang.String getClassName()
PsiClassTypegetClassName in class PsiClassTypepublic PsiType [] getParameters()
PsiClassTypegetParameters in class PsiClassTypepublic java.lang.String getPresentableText(boolean annotated)
PsiTypegetPresentableText in class PsiClassType.Stubpublic java.lang.String getCanonicalText(boolean annotated)
PsiTypegetCanonicalText in class PsiClassType.Stubpublic java.lang.String getInternalCanonicalText()
PsiTypegetInternalCanonicalText in class PsiTypepublic PsiJavaCodeReferenceElement getReference()