Package org.aspectj.weaver
Klasse ReferenceType
java.lang.Object
org.aspectj.weaver.UnresolvedType
org.aspectj.weaver.ResolvedType
org.aspectj.weaver.ReferenceType
- Alle implementierten Schnittstellen:
AnnotatedElement,Traceable,TypeVariableDeclaringElement
- Bekannte direkte Unterklassen:
ArrayReferenceType,BoundedReferenceType,TypeVariableReferenceType
A reference type represents some 'real' type, not a primitive, not an array -
but a real type, for example java.util.List. Each ReferenceType has a
delegate that is the underlying artifact - either an eclipse artifact or a
bcel artifact. If the type represents a raw type (i.e. there is a generic
form) then the genericType field is set to point to the generic type. If it
is for a parameterized type then the generic type is also set to point to the
generic form.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.UnresolvedType
UnresolvedType.TypeKind -
Feldübersicht
FelderVon Klasse geerbte Felder org.aspectj.weaver.ResolvedType
bits, crosscuttingMembers, EMPTY_RESOLVED_TYPE_ARRAY, interTypeMungers, MISSING, NONE, PARAMETERIZED_TYPE_IDENTIFIER, temporaryAnnotationTypes, validBoxing, worldVon 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
KonstruktorenKonstruktorBeschreibungReferenceType(String signature, String signatureErasure, World world) ReferenceType(String signature, World world) ReferenceType(ResolvedType theGenericType, ResolvedType[] theParameters, World aWorld) Constructor used when creating a parameterized type.ReferenceType(UnresolvedType genericType, World world) Create a reference type for a generic type -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddAnnotation(AnnotationAJ annotationX) voidaddParent(ResolvedType newParent) booleanNote: Only overridden by ReferenceType subtypevoidcheckDuplicates(ReferenceType newRt) voidbooleanvoidUndo any temporary modifications to the type (for example it may be holding annotations temporarily whilst some matching is occurring - These annotations will be added properly during weaving but sometimes for type completion they need to be held here for a while).findDerivativeType(ResolvedType[] typeParameters) Look for a derivative type with the specified type parameters.static ReferenceTypefromTypeX(UnresolvedType tx, World world) getAnnotationOfType(UnresolvedType ofType) Note: Only overridden by ReferenceType subtypeintreturn the weaver version used to build this type - defaults to the most recent version unless discovered otherwise.Find out from the generic signature the true signature of any interfaces I implement.intOverridden by ReferenceType to return a sensible answer for parameterized and raw types.intintbooleanhasAnnotation(UnresolvedType ofType) booleanbooleanbooleanNote: Only overridden by Name subtype.booleanbooleanNote: Only overridden by Name subtype.booleanbooleanisAspect()booleanisAssignableFrom(ResolvedType other) Determines if the variables of this type could be assigned values of another type without casting.booleanisAssignableFrom(ResolvedType other, boolean allowMissing) booleanisClass()booleanDetermines if values of another type could possibly be cast to this type.booleanisEnum()Note: Only overridden by Name subtype.booleanbooleanbooleanisNested()voidsetDelegate(ReferenceTypeDelegate delegate) voidsetEndPos(int endPos) voidvoidsetStartPos(int startPos) 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, parameterize, parameterizedWith, setBinaryPath, tagAsTypeHierarchyCompleteVon Klasse geerbte Methoden org.aspectj.weaver.UnresolvedType
add, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getComponentType, getErasureSignature, getName, getNames, getOutermostType, getPackageName, getPackageNameAsIdentifier, getRawName, getSignature, getSimpleBaseName, getSimpleName, getTypekind, getTypeParameters, getTypeVariableNamed, hashCode, insert, isArray, isGenericWildcard, isParameterizedOrGenericType, isParameterizedOrRawType, isParameterizedType, isPrimitiveType, isRawType, isSimpleType, isTypeVariableReference, isVoid, makeArray, needsModifiableDelegate, read, readArray, resolve, setNeedsModifiableDelegate, toDebugString, toString, toTraceString, write, writeArray
-
Felddetails
-
EMPTY_ARRAY
-
-
Konstruktordetails
-
ReferenceType
-
ReferenceType
-
ReferenceType
Constructor used when creating a parameterized type. -
ReferenceType
Create a reference type for a generic type
-
-
Methodendetails
-
fromTypeX
-
checkDuplicates
-
getSignatureForAttribute
- Setzt außer Kraft:
getSignatureForAttributein KlasseResolvedType
-
isClass
public boolean isClass()- Setzt außer Kraft:
isClassin KlasseResolvedType
-
getCompilerVersion
public int getCompilerVersion()Beschreibung aus Klasse kopiert:ResolvedTypereturn the weaver version used to build this type - defaults to the most recent version unless discovered otherwise.- Setzt außer Kraft:
getCompilerVersionin KlasseResolvedType- Gibt zurück:
- the (major) version,
AjAttribute.WeaverVersionInfo
-
isGenericType
public boolean isGenericType()- Setzt außer Kraft:
isGenericTypein KlasseUnresolvedType
-
getGenericSignature
-
getAnnotations
- Setzt außer Kraft:
getAnnotationsin KlasseResolvedType
-
hasAnnotations
public boolean hasAnnotations()- Setzt außer Kraft:
hasAnnotationsin KlasseResolvedType
-
addAnnotation
- Setzt außer Kraft:
addAnnotationin KlasseResolvedType
-
hasAnnotation
-
getAnnotationTypes
- Angegeben von:
getAnnotationTypesin SchnittstelleAnnotatedElement- Setzt außer Kraft:
getAnnotationTypesin KlasseResolvedType
-
getNameAsIdentifier
- Setzt außer Kraft:
getNameAsIdentifierin KlasseUnresolvedType
-
getAnnotationOfType
- Angegeben von:
getAnnotationOfTypein SchnittstelleAnnotatedElement- Setzt außer Kraft:
getAnnotationOfTypein KlasseResolvedType
-
isAspect
public boolean isAspect()- Setzt außer Kraft:
isAspectin KlasseResolvedType
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()- Setzt außer Kraft:
isAnnotationStyleAspectin KlasseResolvedType
-
isEnum
public boolean isEnum()Beschreibung aus Klasse kopiert:ResolvedTypeNote: Only overridden by Name subtype.- Setzt außer Kraft:
isEnumin KlasseResolvedType
-
isAnnotation
public boolean isAnnotation()Beschreibung aus Klasse kopiert:ResolvedTypeNote: Only overridden by Name subtype.- Setzt außer Kraft:
isAnnotationin KlasseResolvedType
-
isAnonymous
public boolean isAnonymous()- Setzt außer Kraft:
isAnonymousin KlasseResolvedType
-
isNested
public boolean isNested()- Setzt außer Kraft:
isNestedin KlasseResolvedType
-
getOuterClass
- Setzt außer Kraft:
getOuterClassin KlasseResolvedType
-
getRetentionPolicy
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()Beschreibung aus Klasse kopiert:ResolvedTypeNote: Only overridden by Name subtype.- Setzt außer Kraft:
isAnnotationWithRuntimeRetentionin KlasseResolvedType
-
canAnnotationTargetType
public boolean canAnnotationTargetType()Beschreibung aus Klasse kopiert:ResolvedTypeNote: Only overridden by ReferenceType subtype- Setzt außer Kraft:
canAnnotationTargetTypein KlasseResolvedType
-
getAnnotationTargetKinds
Beschreibung aus Klasse kopiert:ResolvedTypeNote: Only overridden by ReferenceType subtype- Setzt außer Kraft:
getAnnotationTargetKindsin KlasseResolvedType
-
isCoerceableFrom
Beschreibung aus Klasse kopiert:ResolvedTypeDetermines if values of another type could possibly be cast to this type. The rules followed are from JLS 2ed 5.5, "Casting Conversion".This method should be commutative, i.e., for all UnresolvedType a, b and all World w:
a.isCoerceableFrom(b, w) == b.isCoerceableFrom(a, w)
- Angegeben von:
isCoerceableFromin KlasseResolvedType- Parameter:
o- the other type- Gibt zurück:
- true iff values of other could possibly be cast to this type.
-
isAssignableFrom
Beschreibung aus Klasse kopiert:ResolvedTypeDetermines if the variables of this type could be assigned values of another type without casting. This still allows for assignment conversion as per JLS 2ed 5.2. For object types, this means supertypeOrEqual(THIS, OTHER).- Angegeben von:
isAssignableFromin KlasseResolvedType- Parameter:
other- the other type- Gibt zurück:
- true iff variables of this type could be assigned values of other without casting
-
isAssignableFrom
- Angegeben von:
isAssignableFromin KlasseResolvedType
-
getSourceContext
- Angegeben von:
getSourceContextin KlasseResolvedType
-
getSourceLocation
- Setzt außer Kraft:
getSourceLocationin KlasseResolvedType
-
isExposedToWeaver
public boolean isExposedToWeaver()- Setzt außer Kraft:
isExposedToWeaverin KlasseResolvedType
-
getWeaverState
- Setzt außer Kraft:
getWeaverStatein KlasseResolvedType
-
getDeclaredFields
- Angegeben von:
getDeclaredFieldsin KlasseResolvedType
-
getDeclaredInterfaces
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.- Angegeben von:
getDeclaredInterfacesin KlasseResolvedType
-
getDeclaredMethods
- Angegeben von:
getDeclaredMethodsin KlasseResolvedType
-
getDeclaredPointcuts
- Angegeben von:
getDeclaredPointcutsin KlasseResolvedType
-
getTypeVariables
- Setzt außer Kraft:
getTypeVariablesin KlasseUnresolvedType
-
getPerClause
- Setzt außer Kraft:
getPerClausein KlasseResolvedType
-
getDeclares
- Setzt außer Kraft:
getDeclaresin KlasseResolvedType
-
getTypeMungers
- Setzt außer Kraft:
getTypeMungersin KlasseResolvedType
-
getPrivilegedAccesses
- Setzt außer Kraft:
getPrivilegedAccessesin KlasseResolvedType
-
getModifiers
public int getModifiers()- Angegeben von:
getModifiersin KlasseResolvedType
-
getSuperclass
- Angegeben von:
getSuperclassin KlasseResolvedType- Gibt zurück:
- the superclass of this type, or null (if this represents a jlObject, primitive, or void)
-
getDelegate
-
setDelegate
-
getEndPos
public int getEndPos() -
getStartPos
public int getStartPos() -
setEndPos
public void setEndPos(int endPos) -
setStartPos
public void setStartPos(int startPos) -
doesNotExposeShadowMungers
public boolean doesNotExposeShadowMungers()- Setzt außer Kraft:
doesNotExposeShadowMungersin KlasseResolvedType
-
getDeclaredGenericSignature
-
setGenericType
-
demoteToSimpleType
public void demoteToSimpleType() -
getGenericType
Beschreibung aus Klasse kopiert:ResolvedTypeOverridden by ReferenceType to return a sensible answer for parameterized and raw types.- Setzt außer Kraft:
getGenericTypein KlasseResolvedType- Gibt zurück:
-
ensureConsistent
public void ensureConsistent()Beschreibung aus Klasse kopiert:ResolvedTypeUndo any temporary modifications to the type (for example it may be holding annotations temporarily whilst some matching is occurring - These annotations will be added properly during weaving but sometimes for type completion they need to be held here for a while).- Setzt außer Kraft:
ensureConsistentin KlasseResolvedType
-
addParent
- Setzt außer Kraft:
addParentin KlasseResolvedType
-
findDerivativeType
Look for a derivative type with the specified type parameters. This can avoid creating an unnecessary new (duplicate) with the same information in it. This method also cleans up any reference entries that have been null'd by a GC.- Parameter:
typeParameters- the type parameters to use when searching for the derivative type.- Gibt zurück:
- an existing derivative type or null if there isn't one
-
hasNewInterfaces
public boolean hasNewInterfaces()
-