Package org.aspectj.weaver
Class GeneratedReferenceTypeDelegate
java.lang.Object
org.aspectj.weaver.AbstractReferenceTypeDelegate
org.aspectj.weaver.GeneratedReferenceTypeDelegate
- All Implemented Interfaces:
ReferenceTypeDelegate
A delegate that can sit in the ReferenceType instance created for an aspect generated from aop.xml. Only answers the minimal set
of information required as the type is processed.
- Author:
- Andy Clement
-
Field Summary
Fields inherited from class org.aspectj.weaver.AbstractReferenceTypeDelegate
cachedGenericClassTypeSignature, exposedToWeaver, resolvedTypeX, UNKNOWN_SOURCE_FILE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
hasAnnotation
(UnresolvedType ofType) boolean
boolean
boolean
boolean
boolean
boolean
isAspect()
boolean
isEnum()
boolean
boolean
boolean
isNested()
void
setSuperclass
(ResolvedType superclass) Methods inherited from class org.aspectj.weaver.AbstractReferenceTypeDelegate
copySourceContext, doesNotExposeShadowMungers, ensureConsistent, getCompilerVersion, getFormalTypeParametersFromOuterClass, getGenericClassTypeSignature, getResolvedTypeX, getSourceContext, getSourcefilename, getSourceLocation, hasBeenWoven, isCacheable, isClass, isExposedToWeaver, isWeavable, setSourceContext, setSourcefilename
-
Constructor Details
-
GeneratedReferenceTypeDelegate
-
-
Method Details
-
isAspect
public boolean isAspect() -
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()- Returns:
- true if the type is an annotation style aspect (a type marked @Aspect)
-
isInterface
public boolean isInterface() -
isEnum
public boolean isEnum() -
isAnnotation
public boolean isAnnotation() -
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()- Returns:
- true if this annotation type has a retention policy of RUNTIME
-
isAnonymous
public boolean isAnonymous() -
isNested
public boolean isNested()- Returns:
- true if this class is nested (this includes: member classes, local classes, anonymous classes)
-
getOuterClass
-
getRetentionPolicy
-
canAnnotationTargetType
public boolean canAnnotationTargetType()- Returns:
- true if this annotation type can be on a regular type (ie. it doesn't specify anything or it specifies TYPE)
-
getAnnotationTargetKinds
- Returns:
- all the possible targets that this annotation can be placed upon
-
isGeneric
public boolean isGeneric() -
getDeclaredGenericSignature
-
hasAnnotation
-
getAnnotations
-
hasAnnotations
public boolean hasAnnotations() -
getAnnotationTypes
-
getDeclaredFields
-
getDeclaredInterfaces
-
getDeclaredMethods
-
getDeclaredPointcuts
-
getPerClause
- Returns:
- for an aspect declaration, return the
-
getDeclares
-
getTypeMungers
-
getPrivilegedAccesses
-
getModifiers
public int getModifiers() -
setSuperclass
-
getSuperclass
-
getWeaverState
-
getTypeVariables
-