public class PsiImmediateClassType extends PsiClassType.Stub
PsiClassType.ClassResolveResult, PsiClassType.StubARRAY_FACTORY, EMPTY_ARRAY, myLanguageLevel| Constructor and Description |
|---|
PsiImmediateClassType(PsiClass aClass,
PsiSubstitutor substitutor) |
PsiImmediateClassType(PsiClass aClass,
PsiSubstitutor substitutor,
LanguageLevel level) |
PsiImmediateClassType(PsiClass aClass,
PsiSubstitutor substitutor,
LanguageLevel level,
PsiAnnotation... annotations) |
PsiImmediateClassType(PsiClass aClass,
PsiSubstitutor substitutor,
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.
|
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() |
int |
getParameterCount() |
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).
|
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 level)
Functional style setter preserving original type's language level
|
getCanonicalText, getPresentableTextaccept, annotate, equals, getName, getSuperTypes, hashCode, hasNonTrivialParameters, hasParameters, isRaw, isRaw, resolveType, typeArgumentsaddAnnotation, createArray, createArrayType, createArrayType, findAnnotation, getAnnotationProvider, getAnnotations, getApplicableAnnotations, getArrayDimensions, getDeepComponentType, getJavaLangClass, getJavaLangError, getJavaLangObject, getJavaLangRuntimeException, getJavaLangString, getJavaLangThrowable, getTypeByName, isAssignableFrom, isConvertibleFrom, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptgetAnnotationshasAnnotationpublic PsiImmediateClassType(PsiClass aClass, PsiSubstitutor substitutor)
public PsiImmediateClassType(PsiClass aClass, PsiSubstitutor substitutor, LanguageLevel level)
public PsiImmediateClassType(PsiClass aClass, PsiSubstitutor substitutor, LanguageLevel level, PsiAnnotation... annotations)
public PsiImmediateClassType(PsiClass aClass, PsiSubstitutor substitutor, LanguageLevel level, TypeAnnotationProvider provider)
public PsiClass resolve()
PsiClassTyperesolve in interface JvmReferenceTyperesolve in class PsiClassTypepublic java.lang.String getClassName()
PsiClassTypegetClassName in class PsiClassTypepublic int getParameterCount()
getParameterCount in class PsiClassTypepublic PsiType [] getParameters()
PsiClassTypegetParameters in class PsiClassTypepublic PsiClassType.ClassResolveResult resolveGenerics()
PsiClassTyperesolveGenerics in class PsiClassTypepublic PsiClassType rawType()
PsiClassTyperawType 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 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 LanguageLevel getLanguageLevel()
getLanguageLevel in class PsiClassTypepublic PsiClassType setLanguageLevel(LanguageLevel level)
PsiClassTypesetLanguageLevel in class PsiClassTypelevel - level to obtain class type with