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, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, isArray, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, replaceTypeVariablespublic static ResolvedWildcard UNBOUNDED
public static ResolvedWildcard superBound(ResolvedType type)
public static ResolvedWildcard extendsBound(ResolvedType type)
public boolean isWildcard()
isWildcard in interface ResolvedTypepublic ResolvedWildcard asWildcard()
asWildcard in interface ResolvedTypepublic String describe()
describe in interface ResolvedTypepublic boolean isSuper()
public boolean isExtends()
public boolean isBounded()
public ResolvedType getBoundedType()
public boolean isAssignableBy(ResolvedType other)
ResolvedTypeisAssignableBy in interface ResolvedTypepublic ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedTypereplaceTypeVariables in interface ResolvedTypepublic boolean mention(List<ResolvedTypeParameterDeclaration> typeParameters)
ResolvedTypemention in interface ResolvedTypepublic boolean isUpperBounded()
public boolean isLowerBounded()
Copyright © 2007–2020. All rights reserved.