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 |
isExtends() |
boolean |
isReference()
Is this a non primitive value?
|
boolean |
isSuper() |
boolean |
isWildcard() |
Type |
replaceParam(String name,
Type replaced) |
static Wildcard |
superBound(Type type) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitarrayLevel, asArrayType, asPrimitive, asReferenceType, asTypeParameter, isArray, isNull, isPrimitive, isReferenceType, isTypeVariable, isVoid, replaceParampublic static Wildcard UNBOUNDED
public boolean isWildcard()
isWildcard in interface Typepublic Wildcard asWildcard()
asWildcard in interface Typepublic boolean isReference()
TypeisReference in interface Typepublic boolean isSuper()
public boolean isExtends()
public Type getBoundedType()
public boolean isAssignableBy(Type other)
TypeisAssignableBy in interface Typepublic Type replaceParam(String name, Type replaced)
replaceParam in interface TypeCopyright © 2016. All rights reserved.