|
||||||||||
| 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.PsiWildcardType
public class PsiWildcardType
Represents a wildcard type, with bounds.
| Field Summary |
|---|
| Fields inherited from class com.intellij.psi.PsiType |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, EMPTY_ARRAY, FLOAT, INT, LONG, NULL, SHORT, VOID |
| Method Summary | ||
|---|---|---|
|
accept(PsiTypeVisitor<A> visitor)
Passes the type to the specified visitor. |
|
static PsiWildcardType |
changeBound(PsiWildcardType type,
PsiType newBound)
|
|
static PsiWildcardType |
createExtends(PsiManager manager,
PsiType bound)
|
|
static PsiWildcardType |
createSuper(PsiManager manager,
PsiType bound)
|
|
static PsiWildcardType |
createUnbounded(PsiManager manager)
|
|
boolean |
equals(java.lang.Object o)
|
|
boolean |
equalsToText(java.lang.String text)
Checks if the specified string is equivalent to the canonical text of the type. |
|
PsiType |
getBound()
Use this method to obtain a bound of wildcard type. |
|
java.lang.String |
getCanonicalText()
|
|
PsiType |
getExtendsBound()
A lower bound that this wildcard imposes on type parameter value. |
|
java.lang.String |
getInternalCanonicalText()
|
|
PsiManager |
getManager()
|
|
java.lang.String |
getPresentableText()
Returns text of this type that can be presented to user. |
|
GlobalSearchScope |
getResolveScope()
Returns the scope in which the reference to the underlying class of a class type is searched. |
|
PsiType |
getSuperBound()
An upper bound that this wildcard imposes on type parameter value. |
|
PsiType[] |
getSuperTypes()
Returns the list of superclass types for a class type. |
|
int |
hashCode()
|
|
boolean |
isExtends()
Returns whether this is a lower bound ( ? |
|
boolean |
isSuper()
Returns whether this is an upper bound ( ? |
|
boolean |
isValid()
Checks if the type is currently valid. |
|
| Methods inherited from class com.intellij.psi.PsiType |
|---|
createArrayType, getArrayDimensions, getDeepComponentType, getJavaLangClass, getJavaLangError, getJavaLangObject, getJavaLangRuntimeException, getJavaLangString, getJavaLangTrowable, isAssignableFrom, isConvertibleFrom, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static PsiWildcardType createUnbounded(PsiManager manager)
public static PsiWildcardType createExtends(PsiManager manager,
PsiType bound)
public static PsiWildcardType createSuper(PsiManager manager,
PsiType bound)
public static PsiWildcardType changeBound(PsiWildcardType type,
PsiType newBound)
public java.lang.String getPresentableText()
PsiType
getPresentableText in class PsiTypepublic java.lang.String getCanonicalText()
getCanonicalText in class PsiTypepublic java.lang.String getInternalCanonicalText()
getInternalCanonicalText in class PsiTypepublic GlobalSearchScope getResolveScope()
PsiType
getResolveScope in class PsiType@NotNull public PsiType[] getSuperTypes()
PsiType
getSuperTypes in class PsiTypepublic boolean equalsToText(java.lang.String text)
PsiType
equalsToText in class PsiTypetext - the text to compare with.
public PsiManager getManager()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic PsiType getBound()
null if unbounded, a bound otherwise.public <A> A accept(PsiTypeVisitor<A> visitor)
PsiType
accept in class PsiTypevisitor - the visitor to accept the type.
public boolean isValid()
PsiType
isValid in class PsiTypePsiElement.isValid()public boolean isExtends()
? extends XXX).
true for extends wildcards, false for super
and unbounded wildcards.public boolean isSuper()
? super XXX).
true for super wildcards, false for extends
and unbounded wildcards.public PsiType getExtendsBound()
? extends XXX: XXX
? super XXX: java.lang.Object
?: java.lang.Object
PsiType representing a lower bound. Never returns null.public PsiType getSuperBound()
? extends XXX: null type
? super XXX: XXX
?: null type
PsiType representing an upper bound. Never returns null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||