org.aspectj.weaver
Class GeneratedReferenceTypeDelegate

java.lang.Object
  extended by org.aspectj.weaver.AbstractReferenceTypeDelegate
      extended by 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.


Field Summary
 
Fields inherited from class org.aspectj.weaver.AbstractReferenceTypeDelegate
cachedGenericClassTypeSignature, exposedToWeaver, resolvedTypeX, UNKNOWN_SOURCE_FILE
 
Constructor Summary
GeneratedReferenceTypeDelegate(ReferenceType backing)
           
 
Method Summary
 boolean canAnnotationTargetType()
           
 AnnotationAJ[] getAnnotations()
           
 AnnotationTargetKind[] getAnnotationTargetKinds()
           
 ResolvedType[] getAnnotationTypes()
           
 ResolvedMember[] getDeclaredFields()
           
 java.lang.String getDeclaredGenericSignature()
           
 ResolvedType[] getDeclaredInterfaces()
           
 ResolvedMember[] getDeclaredMethods()
           
 ResolvedMember[] getDeclaredPointcuts()
           
 java.util.Collection<Declare> getDeclares()
           
 int getModifiers()
           
 ResolvedType getOuterClass()
           
 PerClause getPerClause()
           
 java.util.Collection<ResolvedMember> getPrivilegedAccesses()
           
 java.lang.String getRetentionPolicy()
           
 ResolvedType getSuperclass()
           
 java.util.Collection<ConcreteTypeMunger> getTypeMungers()
           
 TypeVariable[] getTypeVariables()
           
 WeaverStateInfo getWeaverState()
           
 boolean hasAnnotation(UnresolvedType ofType)
           
 boolean isAnnotation()
           
 boolean isAnnotationStyleAspect()
           
 boolean isAnnotationWithRuntimeRetention()
           
 boolean isAnonymous()
           
 boolean isAspect()
           
 boolean isEnum()
           
 boolean isGeneric()
           
 boolean isInterface()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedReferenceTypeDelegate

public GeneratedReferenceTypeDelegate(ReferenceType backing)
Method Detail

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()