public class Wildcard extends Object implements Type
| Modifier and Type | Class and Description |
|---|---|
static class |
Wildcard.BoundType |
| Modifier and Type | Method and Description |
|---|---|
Wildcard |
asWildcard() |
String |
describe() |
boolean |
equals(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,
Map<TypeParameterDeclaration,Type> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
static Wildcard |
superBound(Type type) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asArrayType, asPrimitive, asReferenceType, asTypeParameter, isArray, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, replaceTypeVariablespublic static Wildcard UNBOUNDED
public boolean isWildcard()
isWildcard in interface Typepublic Wildcard asWildcard()
asWildcard in interface Typepublic 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, Map<TypeParameterDeclaration,Type> inferredTypes)
TypereplaceTypeVariables in interface TypeCopyright © 2016. All rights reserved.