org.aspectj.weaver
Class GeneratedReferenceTypeDelegate
java.lang.Object
org.aspectj.weaver.AbstractReferenceTypeDelegate
org.aspectj.weaver.GeneratedReferenceTypeDelegate
- All Implemented Interfaces:
- ReferenceTypeDelegate
public class GeneratedReferenceTypeDelegate
- extends AbstractReferenceTypeDelegate
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
Methods inherited from class org.aspectj.weaver.AbstractReferenceTypeDelegate |
copySourceContext, doesNotExposeShadowMungers, ensureConsistent, getCompilerVersion, getGenericClassTypeSignature, getResolvedTypeX, getSourceContext, getSourcefilename, getSourceLocation, hasBeenWoven, isCacheable, isClass, isExposedToWeaver, isWeavable, setSourceContext, setSourcefilename |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneratedReferenceTypeDelegate
public GeneratedReferenceTypeDelegate(ReferenceType backing)
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
public ResolvedType getOuterClass()
getRetentionPolicy
public java.lang.String 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
public AnnotationTargetKind[] getAnnotationTargetKinds()
- Returns:
- all the possible targets that this annotation can be placed upon
isGeneric
public boolean isGeneric()
getDeclaredGenericSignature
public java.lang.String getDeclaredGenericSignature()
hasAnnotation
public boolean hasAnnotation(UnresolvedType ofType)
getAnnotations
public AnnotationAJ[] getAnnotations()
getAnnotationTypes
public ResolvedType[] getAnnotationTypes()
getDeclaredFields
public ResolvedMember[] getDeclaredFields()
getDeclaredInterfaces
public ResolvedType[] getDeclaredInterfaces()
getDeclaredMethods
public ResolvedMember[] getDeclaredMethods()
getDeclaredPointcuts
public ResolvedMember[] getDeclaredPointcuts()
getPerClause
public PerClause getPerClause()
- Returns:
- for an aspect declaration, return the
getDeclares
public java.util.Collection<Declare> getDeclares()
getTypeMungers
public java.util.Collection<ConcreteTypeMunger> getTypeMungers()
getPrivilegedAccesses
public java.util.Collection<ResolvedMember> getPrivilegedAccesses()
getModifiers
public int getModifiers()
setSuperclass
public void setSuperclass(ResolvedType superclass)
getSuperclass
public ResolvedType getSuperclass()
getWeaverState
public WeaverStateInfo getWeaverState()
getTypeVariables
public TypeVariable[] getTypeVariables()