|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.psi.PsiType
com.intellij.psi.PsiClassType
public abstract class PsiClassType
Represents a class type.
| Nested Class Summary | |
|---|---|
static interface |
PsiClassType.ClassResolveResult
Represents the result of resolving a reference to a Java class. |
| Field Summary | |
|---|---|
static PsiClassType[] |
EMPTY_ARRAY
The empty array of PSI class types which can be reused to avoid unnecessary allocations. |
| Fields inherited from class com.intellij.psi.PsiType |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, NULL, SHORT, VOID |
| Constructor Summary | |
|---|---|
PsiClassType()
|
|
| Method Summary | ||
|---|---|---|
|
accept(PsiTypeVisitor<A> visitor)
Passes the type to the specified visitor. |
|
boolean |
equals(java.lang.Object obj)
|
|
abstract java.lang.String |
getClassName()
Returns the non-qualified name of the class referenced by the type. |
|
abstract PsiType[] |
getParameters()
Returns the list of type arguments for the type. |
|
PsiType[] |
getSuperTypes()
Returns the list of superclass types for a class type. |
|
int |
hashCode()
|
|
boolean |
hasNonTrivialParameters()
Checks if the class type has any parameters which are not unbounded wildcards and do not have substituted arguments. |
|
boolean |
hasParameters()
Checks if the class type has any parameters with no substituted arguments. |
|
boolean |
isRaw()
Checks whether this type is a raw type. |
|
static boolean |
isRaw(PsiClassType.ClassResolveResult resolveResult)
Checks whether the specified resolve result representss a raw type. |
|
abstract PsiClassType |
rawType()
Returns the raw type (with no values assigned to type parameters) corresponding to this type. |
|
abstract PsiClass |
resolve()
Resolves the class reference and returns the resulting class. |
|
abstract 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. |
|
| Methods inherited from class com.intellij.psi.PsiType |
|---|
createArrayType, equalsToText, getArrayDimensions, getCanonicalText, getDeepComponentType, getInternalCanonicalText, getJavaLangClass, getJavaLangError, getJavaLangObject, getJavaLangRuntimeException, getJavaLangString, getJavaLangTrowable, getPresentableText, getResolveScope, isAssignableFrom, isConvertibleFrom, isValid, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PsiClassType[] EMPTY_ARRAY
| Constructor Detail |
|---|
public PsiClassType()
| Method Detail |
|---|
@Nullable public abstract PsiClass resolve()
public abstract java.lang.String getClassName()
@NotNull public abstract PsiType[] getParameters()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean hasParameters()
public boolean hasNonTrivialParameters()
public int hashCode()
hashCode in class java.lang.Object@NotNull public PsiType[] getSuperTypes()
PsiType
getSuperTypes in class PsiTypepublic static boolean isRaw(PsiClassType.ClassResolveResult resolveResult)
public boolean isRaw()
@NotNull public abstract PsiClassType.ClassResolveResult resolveGenerics()
@NotNull public abstract PsiClassType rawType()
public <A> A accept(PsiTypeVisitor<A> visitor)
PsiType
accept in class PsiTypevisitor - the visitor to accept the type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||