Class WildcardedUnresolvedType
java.lang.Object
org.aspectj.weaver.UnresolvedType
org.aspectj.weaver.WildcardedUnresolvedType
- All Implemented Interfaces:
Traceable, TypeVariableDeclaringElement
Represents a wildcarded bound for a generic type, this can be unbounded '?' or bounded via extends '? extends Foo' or super '?
super Foo'. The signature for a ? is in fact "*" and the erasure signature is the upper bound which defaults to java.lang.Object
if nothing is specified. On resolution, this becomes a BoundedReferenceType
- Author:
- Andy Clement
-
Nested Class Summary
Nested classes/interfaces inherited from class UnresolvedType
UnresolvedType.TypeKind -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final WildcardedUnresolvedTypestatic final intstatic final intFields inherited from class UnresolvedType
AJC_PRIVILEGED, 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, NONE, OBJECT, OBJECTARRAY, PROCEEDING_JOINPOINT, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, signature, signatureErasure, SOMETHING, SUPPRESS_AJ_WARNINGS, THROWABLE, typeKind, typeParameters, typeVariables, VOIDModifier and TypeFieldDescriptionstatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedType[]static final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final Stringstatic final UnresolvedType[]static final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypeprotected Stringprotected StringThe erasure of the signature.static final UnresolvedTypestatic final UnresolvedTypestatic final UnresolvedTypeprotected UnresolvedType.TypeKindprotected UnresolvedType[]Iff isParameterized(), then these are the type parametersprotected TypeVariable[]Iff isGeneric(), then these are the type variables declared on the type Iff isParameterized(), then these are the type variables bound as parameters in the typestatic final UnresolvedType -
Constructor Summary
ConstructorsConstructorDescriptionWildcardedUnresolvedType(String signature, UnresolvedType upperBound, UnresolvedType lowerBound) -
Method Summary
Methods inherited from class UnresolvedType
add, equals, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getComponentType, getDimensions, getErasureSignature, getName, getNameAsIdentifier, getNames, getOutermostType, getPackageName, getPackageNameAsIdentifier, getRawName, getRawType, getSignature, getSimpleBaseName, getSimpleName, getSize, getTypekind, getTypeParameters, getTypeVariableNamed, getTypeVariables, hashCode, insert, isArray, isGenericType, isGenericWildcard, isParameterizedOrGenericType, isParameterizedOrRawType, isParameterizedType, isPrimitiveType, isRawType, isSimpleType, isTypeVariableReference, isVoid, makeArray, needsModifiableDelegate, parameterize, read, readArray, resolve, setNeedsModifiableDelegate, toDebugString, toString, toTraceString, write, writeArrayModifier and TypeMethodDescriptionstatic UnresolvedType[]add(UnresolvedType[] types, UnresolvedType end) Creates a new type array with a fresh type appended to the end.booleanEquality is checked based on the underlying signature.static UnresolvedTypeforGenericType(String name, TypeVariable[] tvbs, String genericSig) static UnresolvedTypeforGenericTypeSignature(String sig, String declaredGenericSig) static UnresolvedTypeforGenericTypeVariables(String sig, TypeVariable[] tVars) static UnresolvedTypeNOTE: Use forSignature() if you can, it'll be cheaper ! Constructs a UnresolvedType for a java language type name.static UnresolvedType[]Constructs a UnresolvedType for each java language type name in an incoming array.static UnresolvedTypeforPrimitiveType(String signature) static UnresolvedTypeforRawTypeName(String name) static UnresolvedTypeforSignature(String signature) Constructs a Type for a JVM bytecode signature string.static UnresolvedType[]forSignatures(String[] sigs) Constructs a UnresolvedType for each JVM bytecode type signature in an incoming array.Returns a UnresolvedType object representing the component type of this array, or null if this type does not represent an array type.final intFor parameterized types, return the signature for the raw typegetName()Returns the name of this type in java language form (e.g.static String[]getNames(UnresolvedType[] types) Returns an array of strings representing the java langauge names of an array of types.Returns a UnresolvedType object representing the effective outermost enclosing type for a name type.Returns the name of this type in JVM signature form.intgetSize()This is the size of this type as used in JVM.getTypeVariableNamed(String name) inthashCode()Equality is checked based on the underlying signature, so the hash code of a particular type is the hash code of its signature string.static UnresolvedType[]insert(UnresolvedType start, UnresolvedType[] types) Creates a new type array with a fresh type inserted at the beginning.final booleanisArray()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisVoid()static UnresolvedTypemakeArray(UnresolvedType base, int dims) booleanparameterize(Map<String, UnresolvedType> typeBindings) Return a version of this parameterized type in which any type parameters that are type variable references are replaced by their matching type variable binding.static UnresolvedTypeRead in an UnresolvedType - just read the signature and rebuild the UnresolvedType.static UnresolvedType[]Returns a resolved version of this type according to a particular world.voidsetNeedsModifiableDelegate(boolean b) toString()Returns a java language string representation of this type.final voidWrite out an UnresolvedType - the signature should be enough.static voidwriteArray(UnresolvedType[] types, CompressingDataOutputStream stream)
-
Field Details
-
UNBOUND
public static final int UNBOUND- See Also:
-
EXTENDS
public static final int EXTENDS- See Also:
-
SUPER
public static final int SUPER- See Also:
-
QUESTIONMARK
-
-
Constructor Details
-
WildcardedUnresolvedType
public WildcardedUnresolvedType(String signature, UnresolvedType upperBound, UnresolvedType lowerBound)
-
-
Method Details
-
getUpperBound
-
getLowerBound
-
isExtends
public boolean isExtends() -
isSuper
public boolean isSuper() -
isUnbound
public boolean isUnbound()
-