Package org.aspectj.weaver
Klasse BoundedReferenceType
java.lang.Object
org.aspectj.weaver.UnresolvedType
org.aspectj.weaver.ResolvedType
org.aspectj.weaver.ReferenceType
org.aspectj.weaver.BoundedReferenceType
- Alle implementierten Schnittstellen:
AnnotatedElement
,Traceable
,TypeVariableDeclaringElement
A BoundedReferenceType is the result of a generics wildcard expression ? extends String, ? super Foo etc..
The "signature" for a bounded reference type follows the generic signature specification in section 4.4 of JVM spec: *,+,- plus
signature strings.
The bound may be a type variable (e.g. ? super T)
- Autor:
- Adrian Colyer, Andy Clement
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.UnresolvedType
UnresolvedType.TypeKind
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected ReferenceType[]
static final int
int
static final int
static final int
Von Klasse geerbte Felder org.aspectj.weaver.ReferenceType
EMPTY_ARRAY
Von Klasse geerbte Felder org.aspectj.weaver.ResolvedType
bits, crosscuttingMembers, EMPTY_RESOLVED_TYPE_ARRAY, interTypeMungers, MISSING, NONE, PARAMETERIZED_TYPE_IDENTIFIER, temporaryAnnotationTypes, validBoxing, world
Von Klasse geerbte Felder org.aspectj.weaver.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, OBJECT, OBJECTARRAY, PROCEEDING_JOINPOINT, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, signature, signatureErasure, SOMETHING, SUPPRESS_AJ_WARNINGS, THROWABLE, typeKind, typeParameters, typeVariables, VOID
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
BoundedReferenceType
(String signature, String erasedSignature, World world) only for use when resolving GenericsWildcardTypeX or a TypeVariableReferenceTypeBoundedReferenceType
(ReferenceType aBound, boolean isExtends, World world) BoundedReferenceType
(ReferenceType aBound, boolean isExtends, World world, ReferenceType[] additionalInterfaces) BoundedReferenceType
(World world) Constructs the BoundedReferenceType representing an unbounded wildcard '?'. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
alwaysMatches
(ResolvedType aCandidateType) boolean
canBeCoercedTo
(ResolvedType aCandidateType) Find out from the generic signature the true signature of any interfaces I implement.boolean
boolean
boolean
boolean
isSuper()
boolean
parameterize
(Map<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.Von Klasse geerbte Methoden org.aspectj.weaver.ReferenceType
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
Von Klasse geerbte Methoden org.aspectj.weaver.ResolvedType
addInterTypeMunger, ajMembersNeedParameterization, canBeSeenBy, 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, isPrivilegedAspect, isSynthetic, isTopmostImplementor, isTypeHierarchyComplete, isVisible, lookupDirectlyDeclaredMemberNoSupers, lookupField, lookupMemberIncludingITDsOnInterfaces, lookupMemberNoSupers, lookupMemberWithSupersAndITDs, lookupMethod, lookupMethodInITDs, lookupResolvedMember, lookupSyntheticMember, makeArray, matches, needsNoConversionFrom, parameterizedWith, setBinaryPath, tagAsTypeHierarchyComplete
Von Klasse geerbte Methoden org.aspectj.weaver.UnresolvedType
add, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getComponentType, getDimensions, 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
-
Felddetails
-
UNBOUND
public static final int UNBOUND- Siehe auch:
-
EXTENDS
public static final int EXTENDS- Siehe auch:
-
SUPER
public static final int SUPER- Siehe auch:
-
kind
public int kind -
additionalInterfaceBounds
-
-
Konstruktordetails
-
BoundedReferenceType
-
BoundedReferenceType
public BoundedReferenceType(ReferenceType aBound, boolean isExtends, World world, ReferenceType[] additionalInterfaces) -
BoundedReferenceType
only for use when resolving GenericsWildcardTypeX or a TypeVariableReferenceType -
BoundedReferenceType
Constructs the BoundedReferenceType representing an unbounded wildcard '?'. In this situation the signature is '*' and the erased signature is Ljava/lang/Object;
-
-
Methodendetails
-
getUpperBound
-
getLowerBound
-
getAdditionalBounds
-
parameterize
Beschreibung aus Klasse kopiert:ResolvedType
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.- Setzt außer Kraft:
parameterize
in KlasseResolvedType
-
getSignatureForAttribute
- Setzt außer Kraft:
getSignatureForAttribute
in KlasseReferenceType
-
hasLowerBound
public boolean hasLowerBound() -
isExtends
public boolean isExtends() -
isSuper
public boolean isSuper() -
isUnbound
public boolean isUnbound() -
alwaysMatches
-
canBeCoercedTo
-
getSimpleName
- Setzt außer Kraft:
getSimpleName
in KlasseUnresolvedType
-
getDeclaredInterfaces
Beschreibung aus Klasse kopiert:ReferenceType
Find out from the generic signature the true signature of any interfaces I implement. If I am parameterized, these may then need to be parameterized before returning.- Setzt außer Kraft:
getDeclaredInterfaces
in KlasseReferenceType
-
isGenericWildcard
public boolean isGenericWildcard()- Setzt außer Kraft:
isGenericWildcard
in KlasseUnresolvedType
-