| Modifier and Type | Class and Description |
|---|---|
static class |
Wildcard.BoundType |
| Modifier and Type | Method and Description |
|---|---|
Wildcard |
asWildcard() |
java.lang.String |
describe() |
boolean |
equals(java.lang.Object o) |
static Wildcard |
extendsBound(Type type) |
Type |
getBoundedType() |
int |
hashCode() |
boolean |
isAssignableBy(Type other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isBounded() |
boolean |
isExtends() |
boolean |
isSuper() |
boolean |
isWildcard() |
Type |
replaceTypeVariables(TypeParameterDeclaration tpToReplace,
Type replaced,
java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
static Wildcard |
superBound(Type type) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, isArray, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, replaceTypeVariablespublic static Wildcard UNBOUNDED
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isWildcard()
isWildcard in interface Typepublic Wildcard asWildcard()
asWildcard in interface Typepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isSuper()
public boolean isExtends()
public boolean isBounded()
public Type getBoundedType()
public boolean isAssignableBy(Type other)
TypeisAssignableBy in interface Typepublic Type replaceTypeVariables(TypeParameterDeclaration tpToReplace, Type replaced, java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
TypereplaceTypeVariables in interface Type