Top Description Methods
org.aspectj.weaver

public Interface ReferenceTypeDelegate

Known Direct Implementers
org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegate, org.aspectj.weaver.AbstractReferenceTypeDelegate
Imports
java.util.Collection, org.aspectj.weaver.AjAttribute.WeaverVersionInfo, org.aspectj.weaver.patterns.Declare, .PerClause

Abstraction over a type - a reference type is Object or a descendant of Object, other types (int/etc) are considered primitive types. Abstract implementation provided by AbstractReferenceTypeDelegate.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this annotation type can be on a regular type (ie. it doesn't specify anything or it specifies TYPE)
canAnnotationTargetType
()

public boolean
public boolean
public void
ensureConsistent()

Implementations need to clear state

public AnnotationAJ[]
public AnnotationTargetKind[]

Returns:

all the possible targets that this annotation can be placed upon
getAnnotationTargetKinds
()

public ResolvedType[]
public int

Returns:

the major version
getCompilerVersion
()

If known, return the compiler/weaver version used to build this delegate.

public ResolvedMember[]
public String
public ResolvedType[]
public ResolvedMember[]
public ResolvedMember[]
public Collection<Declare>
public int
public ResolvedType
public PerClause

Returns:

for an aspect declaration, return the
getPerClause
()

public Collection<ResolvedMember>
public ReferenceType
public String
public ISourceContext
public String
public ResolvedType
public Collection<ConcreteTypeMunger>
public TypeVariable[]
public WeaverStateInfo
public boolean
public boolean
public boolean
public boolean
public boolean

Returns:

true if the type is an annotation style aspect (a type marked @Aspect)
isAnnotationStyleAspect
()

public boolean

Returns:

true if this annotation type has a retention policy of RUNTIME
isAnnotationWithRuntimeRetention
()

public boolean
public boolean
public boolean

Returns:

true if something the result of getDeclaredInterfaces() can be cached by the caller
isCacheable
()

TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean

Returns:

true if this class is nested (this includes: member classes, local classes, anonymous classes)
isNested
()

public boolean

Method Detail

canAnnotationTargetTypeback to summary
public boolean canAnnotationTargetType()
Returns:boolean

true if this annotation type can be on a regular type (ie. it doesn't specify anything or it specifies TYPE)

copySourceContextback to summary
public boolean copySourceContext()
doesNotExposeShadowMungersback to summary
public boolean doesNotExposeShadowMungers()
ensureConsistentback to summary
public void ensureConsistent()

Implementations need to clear state

getAnnotationsback to summary
public AnnotationAJ[] getAnnotations()
getAnnotationTargetKindsback to summary
public AnnotationTargetKind[] getAnnotationTargetKinds()
Returns:AnnotationTargetKind[]

all the possible targets that this annotation can be placed upon

getAnnotationTypesback to summary
public ResolvedType[] getAnnotationTypes()
getCompilerVersionback to summary
public int getCompilerVersion()

If known, return the compiler/weaver version used to build this delegate. Default is the most recent level as specified in WeaverVersionInfo.

Returns:int

the major version

getDeclaredFieldsback to summary
public ResolvedMember[] getDeclaredFields()
getDeclaredGenericSignatureback to summary
public String getDeclaredGenericSignature()
getDeclaredInterfacesback to summary
public ResolvedType[] getDeclaredInterfaces()
getDeclaredMethodsback to summary
public ResolvedMember[] getDeclaredMethods()
getDeclaredPointcutsback to summary
public ResolvedMember[] getDeclaredPointcuts()
getDeclaresback to summary
public Collection<Declare> getDeclares()
getModifiersback to summary
public int getModifiers()
getOuterClassback to summary
public ResolvedType getOuterClass()
getPerClauseback to summary
public PerClause getPerClause()
Returns:PerClause

for an aspect declaration, return the

getPrivilegedAccessesback to summary
public Collection<ResolvedMember> getPrivilegedAccesses()
getResolvedTypeXback to summary
public ReferenceType getResolvedTypeX()
getRetentionPolicyback to summary
public String getRetentionPolicy()
getSourceContextback to summary
public ISourceContext getSourceContext()
getSourcefilenameback to summary
public String getSourcefilename()
getSuperclassback to summary
public ResolvedType getSuperclass()
getTypeMungersback to summary
public Collection<ConcreteTypeMunger> getTypeMungers()
getTypeVariablesback to summary
public TypeVariable[] getTypeVariables()
getWeaverStateback to summary
public WeaverStateInfo getWeaverState()
hasAnnotationback to summary
public boolean hasAnnotation(UnresolvedType ofType)
hasAnnotationsback to summary
public boolean hasAnnotations()
hasBeenWovenback to summary
public boolean hasBeenWoven()
isAnnotationback to summary
public boolean isAnnotation()
isAnnotationStyleAspectback to summary
public boolean isAnnotationStyleAspect()
Returns:boolean

true if the type is an annotation style aspect (a type marked @Aspect)

isAnnotationWithRuntimeRetentionback to summary
public boolean isAnnotationWithRuntimeRetention()
Returns:boolean

true if this annotation type has a retention policy of RUNTIME

isAnonymousback to summary
public boolean isAnonymous()
isAspectback to summary
public boolean isAspect()
isCacheableback to summary
public boolean isCacheable()

TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?

Returns:boolean

true if something the result of getDeclaredInterfaces() can be cached by the caller

isClassback to summary
public boolean isClass()
isEnumback to summary
public boolean isEnum()
isExposedToWeaverback to summary
public boolean isExposedToWeaver()
isGenericback to summary
public boolean isGeneric()
isInterfaceback to summary
public boolean isInterface()
isNestedback to summary
public boolean isNested()
Returns:boolean

true if this class is nested (this includes: member classes, local classes, anonymous classes)

isWeavableback to summary
public boolean isWeavable()