public class ResolvedWildcard extends Object implements ResolvedType
Modifier and Type | Class and Description |
---|---|
static class |
ResolvedWildcard.BoundType |
Modifier and Type | Field and Description |
---|---|
static ResolvedWildcard |
UNBOUNDED |
Modifier and Type | Method and Description |
---|---|
ResolvedWildcard |
asWildcard() |
String |
describe() |
boolean |
equals(Object o) |
static ResolvedWildcard |
extendsBound(ResolvedType type) |
ResolvedType |
getBoundedType() |
int |
hashCode() |
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isBounded() |
boolean |
isExtends() |
boolean |
isLowerBounded() |
boolean |
isSuper() |
boolean |
isUpperBounded() |
boolean |
isWildcard() |
boolean |
mention(List<ResolvedTypeParameterDeclaration> typeParameters)
Does this type mention at all, directly or indirectly, the given type parameters?
|
ResolvedType |
replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace,
ResolvedType replaced,
Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
static ResolvedWildcard |
superBound(ResolvedType type) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, isArray, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, replaceTypeVariables
public static ResolvedWildcard UNBOUNDED
public static ResolvedWildcard superBound(ResolvedType type)
public static ResolvedWildcard extendsBound(ResolvedType type)
public boolean isWildcard()
isWildcard
in interface ResolvedType
public ResolvedWildcard asWildcard()
asWildcard
in interface ResolvedType
public String describe()
describe
in interface ResolvedType
public boolean isSuper()
public boolean isExtends()
public boolean isBounded()
public ResolvedType getBoundedType()
public boolean isAssignableBy(ResolvedType other)
ResolvedType
isAssignableBy
in interface ResolvedType
public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
replaceTypeVariables
in interface ResolvedType
public boolean mention(List<ResolvedTypeParameterDeclaration> typeParameters)
ResolvedType
mention
in interface ResolvedType
public boolean isUpperBounded()
public boolean isLowerBounded()
Copyright © 2007–2018. All rights reserved.