public class BoundedReferenceType extends ReferenceType
UnresolvedType.TypeKind
Modifier and Type | Field and Description |
---|---|
protected ReferenceType[] |
additionalInterfaceBounds |
static int |
EXTENDS |
int |
kind |
static int |
SUPER |
static int |
UNBOUND |
EMPTY_ARRAY
bits, crosscuttingMembers, EMPTY_RESOLVED_TYPE_ARRAY, interTypeMungers, MISSING, NONE, PARAMETERIZED_TYPE_IDENTIFIER, temporaryAnnotationTypes, validBoxing, world
ANNOTATION, ARRAY_WITH_JUST_OBJECT, AT_INHERITED, AT_RETENTION, AT_TARGET, BOOLEAN, BYTE, CHAR, CLONEABLE, DOUBLE, ENUM, ERROR, FLOAT, INT, JAVA_LANG_ANNOTATION, JAVA_LANG_CLASS_ARRAY, JAVA_LANG_REFLECT_CONSTRUCTOR, JAVA_LANG_REFLECT_FIELD, JAVA_LANG_REFLECT_METHOD, JL_CLASS, JL_EXCEPTION, JL_STRING, JOINPOINT_ENCLOSINGSTATICPART, JOINPOINT_STATICPART, LONG, MISSING_NAME, OBJECT, OBJECTARRAY, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, signature, signatureErasure, SOMETHING, SUPPRESS_AJ_WARNINGS, THROWABLE, typeKind, typeParameters, typeVariables, VOID
Modifier | Constructor and Description |
---|---|
|
BoundedReferenceType(ReferenceType aBound,
boolean isExtends,
World world) |
|
BoundedReferenceType(ReferenceType aBound,
boolean isExtends,
World world,
ReferenceType[] additionalInterfaces) |
protected |
BoundedReferenceType(java.lang.String signature,
java.lang.String erasedSignature,
World world)
only for use when resolving GenericsWildcardTypeX or a TypeVariableReferenceType
|
|
BoundedReferenceType(World world)
Constructs the BoundedReferenceType representing an unbounded wildcard '?'.
|
Modifier and Type | Method and Description |
---|---|
boolean |
alwaysMatches(ResolvedType aCandidateType) |
boolean |
canBeCoercedTo(ResolvedType aCandidateType) |
ReferenceType[] |
getAdditionalBounds() |
ResolvedType[] |
getDeclaredInterfaces()
Find out from the generic signature the true signature of any interfaces
I implement.
|
UnresolvedType |
getLowerBound() |
java.lang.String |
getSignatureForAttribute() |
java.lang.String |
getSimpleName() |
UnresolvedType |
getUpperBound() |
boolean |
hasLowerBound() |
boolean |
isExtends() |
boolean |
isGenericWildcard() |
boolean |
isSuper() |
boolean |
isUnbound() |
UnresolvedType |
parameterize(java.util.Map<java.lang.String,UnresolvedType> typeBindings)
Iff I am a parameterized type, and any of my parameters are type variable references (or nested parameterized types),
return a version with those type parameters replaced in accordance with the passed bindings.
|
addAnnotation, addParent, canAnnotationTargetType, checkDuplicates, demoteToSimpleType, doesNotExposeShadowMungers, ensureConsistent, findDerivativeType, fromTypeX, getAnnotationOfType, getAnnotations, getAnnotationTargetKinds, getAnnotationTypes, getCompilerVersion, getDeclaredFields, getDeclaredGenericSignature, getDeclaredMethods, getDeclaredPointcuts, getDeclares, getDelegate, getEndPos, getGenericSignature, getGenericType, getModifiers, getNameAsIdentifier, getOuterClass, getPerClause, getPrivilegedAccesses, getRetentionPolicy, getSourceContext, getSourceLocation, getStartPos, getSuperclass, getTypeMungers, getTypeVariables, getWeaverState, hasAnnotation, hasAnnotations, hasNewInterfaces, isAnnotation, isAnnotationStyleAspect, isAnnotationWithRuntimeRetention, isAnonymous, isAspect, isAssignableFrom, isAssignableFrom, isClass, isCoerceableFrom, isEnum, isExposedToWeaver, isGenericType, isNested, setDelegate, setEndPos, setGenericType, setStartPos
addInterTypeMunger, ajMembersNeedParameterization, checkInterTypeMungers, checkLegalOverride, clearInterTypeMungers, collectCrosscuttingMembers, collectDeclares, collectInterTypeMungers, conflictingSignature, conflictingSignature, discoverActualOccurrenceOfTypeInHierarchy, equals, fillInAnyTypeParameters, findPointcut, getAjMemberParameterizationMap, getBinaryPath, getDeclaredAdvice, getDeclaredJavaFields, getDeclaredJavaMethods, getDeclaredShadowMungers, getDeclaringType, getDirectSupertypes, getExposedPointcuts, getFields, getHierarchy, getHierarchy, getHierarchyWithoutIterator, getInterTypeMungers, getInterTypeMungersIncludingSupers, getInterTypeParentMungers, getInterTypeParentMungersIncludingSupers, getMemberParameterizationMap, getMethods, getMethodsIncludingIntertypeDeclarations, getMethodsWithoutIterator, getPointcuts, getRawType, getResolvedComponentType, getResolvedTypeParameters, getSize, getTopmostImplementor, getWorld, isAbstract, isCacheable, isCheckedException, isConvertableFrom, isException, isFinal, isGroovyObject, isInheritedAnnotation, isInterface, isMissing, isMissing, isMoreVisible, isParameterizedWithTypeVariable, isPrimitiveArray, isSynthetic, isTopmostImplementor, isTypeHierarchyComplete, isVisible, lookupDirectlyDeclaredMemberNoSupers, lookupField, lookupMemberIncludingITDsOnInterfaces, lookupMemberNoSupers, lookupMemberWithSupersAndITDs, lookupMethod, lookupMethodInITDs, lookupResolvedMember, lookupSyntheticMember, makeArray, matches, needsNoConversionFrom, parameterizedWith, setBinaryPath, tagAsTypeHierarchyComplete
add, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getComponentType, getErasureSignature, getName, getNames, getOutermostType, getPackageName, getPackageNameAsIdentifier, getRawName, getSignature, getSimpleBaseName, getTypekind, getTypeParameters, getTypeVariableNamed, hashCode, insert, isArray, isParameterizedOrGenericType, isParameterizedOrRawType, isParameterizedType, isPrimitiveType, isRawType, isSimpleType, isTypeVariableReference, isVoid, makeArray, needsModifiableDelegate, read, readArray, resolve, setNeedsModifiableDelegate, toDebugString, toString, toTraceString, write, writeArray
public static final int UNBOUND
public static final int EXTENDS
public static final int SUPER
public int kind
protected ReferenceType[] additionalInterfaceBounds
public BoundedReferenceType(ReferenceType aBound, boolean isExtends, World world)
public BoundedReferenceType(ReferenceType aBound, boolean isExtends, World world, ReferenceType[] additionalInterfaces)
protected BoundedReferenceType(java.lang.String signature, java.lang.String erasedSignature, World world)
public BoundedReferenceType(World world)
public UnresolvedType getUpperBound()
public UnresolvedType getLowerBound()
public ReferenceType[] getAdditionalBounds()
public UnresolvedType parameterize(java.util.Map<java.lang.String,UnresolvedType> typeBindings)
ResolvedType
parameterize
in class ResolvedType
public java.lang.String getSignatureForAttribute()
getSignatureForAttribute
in class ReferenceType
public boolean hasLowerBound()
public boolean isExtends()
public boolean isSuper()
public boolean isUnbound()
public boolean alwaysMatches(ResolvedType aCandidateType)
public boolean canBeCoercedTo(ResolvedType aCandidateType)
public java.lang.String getSimpleName()
getSimpleName
in class UnresolvedType
public ResolvedType[] getDeclaredInterfaces()
ReferenceType
getDeclaredInterfaces
in class ReferenceType
public boolean isGenericWildcard()
isGenericWildcard
in class UnresolvedType