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, wait
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, isArray, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, replaceTypeVariables
public static Wildcard UNBOUNDED
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isWildcard()
isWildcard
in interface Type
public Wildcard asWildcard()
asWildcard
in interface Type
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isSuper()
public boolean isExtends()
public boolean isBounded()
public Type getBoundedType()
public boolean isAssignableBy(Type other)
Type
isAssignableBy
in interface Type
public Type replaceTypeVariables(TypeParameterDeclaration tpToReplace, Type replaced, java.util.Map<TypeParameterDeclaration,Type> inferredTypes)
Type
replaceTypeVariables
in interface Type