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
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
KonstruktorBeschreibungReferenceType
(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 TypMethodeBeschreibungvoid
addAnnotation
(AnnotationAJ annotationX) void
addParent
(ResolvedType newParent) boolean
Note: Only overridden by ReferenceType subtypevoid
checkDuplicates
(ReferenceType newRt) void
boolean
void
Undo 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 ReferenceType
fromTypeX
(UnresolvedType tx, World world) getAnnotationOfType
(UnresolvedType ofType) Note: Only overridden by ReferenceType subtypeint
return 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.int
Overridden by ReferenceType to return a sensible answer for parameterized and raw types.int
int
boolean
hasAnnotation
(UnresolvedType ofType) boolean
boolean
boolean
Note: Only overridden by Name subtype.boolean
boolean
Note: Only overridden by Name subtype.boolean
boolean
isAspect()
boolean
isAssignableFrom
(ResolvedType other) Determines if the variables of this type could be assigned values of another type without casting.boolean
isAssignableFrom
(ResolvedType other, boolean allowMissing) boolean
isClass()
boolean
Determines if values of another type could possibly be cast to this type.boolean
isEnum()
Note: Only overridden by Name subtype.boolean
boolean
boolean
isNested()
void
setDelegate
(ReferenceTypeDelegate delegate) void
setEndPos
(int endPos) void
void
setStartPos
(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, 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, 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:
getSignatureForAttribute
in KlasseResolvedType
-
isClass
public boolean isClass()- Setzt außer Kraft:
isClass
in KlasseResolvedType
-
getCompilerVersion
public int getCompilerVersion()Beschreibung aus Klasse kopiert:ResolvedType
return the weaver version used to build this type - defaults to the most recent version unless discovered otherwise.- Setzt außer Kraft:
getCompilerVersion
in KlasseResolvedType
- Gibt zurück:
- the (major) version,
AjAttribute.WeaverVersionInfo
-
isGenericType
public boolean isGenericType()- Setzt außer Kraft:
isGenericType
in KlasseUnresolvedType
-
getGenericSignature
-
getAnnotations
- Setzt außer Kraft:
getAnnotations
in KlasseResolvedType
-
hasAnnotations
public boolean hasAnnotations()- Setzt außer Kraft:
hasAnnotations
in KlasseResolvedType
-
addAnnotation
- Setzt außer Kraft:
addAnnotation
in KlasseResolvedType
-
hasAnnotation
-
getAnnotationTypes
- Angegeben von:
getAnnotationTypes
in SchnittstelleAnnotatedElement
- Setzt außer Kraft:
getAnnotationTypes
in KlasseResolvedType
-
getNameAsIdentifier
- Setzt außer Kraft:
getNameAsIdentifier
in KlasseUnresolvedType
-
getAnnotationOfType
- Angegeben von:
getAnnotationOfType
in SchnittstelleAnnotatedElement
- Setzt außer Kraft:
getAnnotationOfType
in KlasseResolvedType
-
isAspect
public boolean isAspect()- Setzt außer Kraft:
isAspect
in KlasseResolvedType
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()- Setzt außer Kraft:
isAnnotationStyleAspect
in KlasseResolvedType
-
isEnum
public boolean isEnum()Beschreibung aus Klasse kopiert:ResolvedType
Note: Only overridden by Name subtype.- Setzt außer Kraft:
isEnum
in KlasseResolvedType
-
isAnnotation
public boolean isAnnotation()Beschreibung aus Klasse kopiert:ResolvedType
Note: Only overridden by Name subtype.- Setzt außer Kraft:
isAnnotation
in KlasseResolvedType
-
isAnonymous
public boolean isAnonymous()- Setzt außer Kraft:
isAnonymous
in KlasseResolvedType
-
isNested
public boolean isNested()- Setzt außer Kraft:
isNested
in KlasseResolvedType
-
getOuterClass
- Setzt außer Kraft:
getOuterClass
in KlasseResolvedType
-
getRetentionPolicy
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()Beschreibung aus Klasse kopiert:ResolvedType
Note: Only overridden by Name subtype.- Setzt außer Kraft:
isAnnotationWithRuntimeRetention
in KlasseResolvedType
-
canAnnotationTargetType
public boolean canAnnotationTargetType()Beschreibung aus Klasse kopiert:ResolvedType
Note: Only overridden by ReferenceType subtype- Setzt außer Kraft:
canAnnotationTargetType
in KlasseResolvedType
-
getAnnotationTargetKinds
Beschreibung aus Klasse kopiert:ResolvedType
Note: Only overridden by ReferenceType subtype- Setzt außer Kraft:
getAnnotationTargetKinds
in KlasseResolvedType
-
isCoerceableFrom
Beschreibung aus Klasse kopiert:ResolvedType
Determines 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:
isCoerceableFrom
in 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:ResolvedType
Determines 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:
isAssignableFrom
in 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:
isAssignableFrom
in KlasseResolvedType
-
getSourceContext
- Angegeben von:
getSourceContext
in KlasseResolvedType
-
getSourceLocation
- Setzt außer Kraft:
getSourceLocation
in KlasseResolvedType
-
isExposedToWeaver
public boolean isExposedToWeaver()- Setzt außer Kraft:
isExposedToWeaver
in KlasseResolvedType
-
getWeaverState
- Setzt außer Kraft:
getWeaverState
in KlasseResolvedType
-
getDeclaredFields
- Angegeben von:
getDeclaredFields
in 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:
getDeclaredInterfaces
in KlasseResolvedType
-
getDeclaredMethods
- Angegeben von:
getDeclaredMethods
in KlasseResolvedType
-
getDeclaredPointcuts
- Angegeben von:
getDeclaredPointcuts
in KlasseResolvedType
-
getTypeVariables
- Setzt außer Kraft:
getTypeVariables
in KlasseUnresolvedType
-
getPerClause
- Setzt außer Kraft:
getPerClause
in KlasseResolvedType
-
getDeclares
- Setzt außer Kraft:
getDeclares
in KlasseResolvedType
-
getTypeMungers
- Setzt außer Kraft:
getTypeMungers
in KlasseResolvedType
-
getPrivilegedAccesses
- Setzt außer Kraft:
getPrivilegedAccesses
in KlasseResolvedType
-
getModifiers
public int getModifiers()- Angegeben von:
getModifiers
in KlasseResolvedType
-
getSuperclass
- Angegeben von:
getSuperclass
in 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:
doesNotExposeShadowMungers
in KlasseResolvedType
-
getDeclaredGenericSignature
-
setGenericType
-
demoteToSimpleType
public void demoteToSimpleType() -
getGenericType
Beschreibung aus Klasse kopiert:ResolvedType
Overridden by ReferenceType to return a sensible answer for parameterized and raw types.- Setzt außer Kraft:
getGenericType
in KlasseResolvedType
- Gibt zurück:
-
ensureConsistent
public void ensureConsistent()Beschreibung aus Klasse kopiert:ResolvedType
Undo 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:
ensureConsistent
in KlasseResolvedType
-
addParent
- Setzt außer Kraft:
addParent
in 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()
-