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 AbstractReferenceTypeDelegate
cachedGenericClassTypeSignature, exposedToWeaver, resolvedTypeX, UNKNOWN_SOURCE_FILEModifier and TypeFieldDescriptionprotected GenericSignature.ClassSignatureprotected booleanprotected ReferenceTypestatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanhasAnnotation(UnresolvedType ofType) booleanbooleanbooleanbooleanbooleanbooleanisAspect()booleanisEnum()booleanbooleanbooleanisNested()voidsetSuperclass(ResolvedType superclass) Methods inherited from class AbstractReferenceTypeDelegate
copySourceContext, doesNotExposeShadowMungers, ensureConsistent, getCompilerVersion, getFormalTypeParametersFromOuterClass, getGenericClassTypeSignature, getResolvedTypeX, getSourceContext, getSourcefilename, getSourceLocation, hasBeenWoven, isCacheable, isClass, isExposedToWeaver, isWeavable, setSourceContext, setSourcefilenameModifier and TypeMethodDescriptionbooleanbooleanDesigned to be overriden by EclipseType to disable collection of shadow mungers during pre-weave compilation phasevoidImplementations need to clear stateintIf known, return the compiler/weaver version used to build this delegate.protected GenericSignature.FormalTypeParameter[]final StringbooleanbooleanTODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?final booleanisClass()booleanbooleanvoidfinal voidsetSourcefilename(String sourceFileName)
-
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
-