Package org.aspectj.weaver
Interface ReferenceTypeDelegate
- All Known Implementing Classes:
AbstractReferenceTypeDelegate
,BcelObjectType
,GeneratedReferenceTypeDelegate
,Java15ReflectionBasedReferenceTypeDelegate
,ReflectionBasedReferenceTypeDelegate
public interface ReferenceTypeDelegate
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 TypeMethodDescriptionboolean
boolean
boolean
void
Implementations need to clear stateint
If known, return the compiler/weaver version used to build this delegate.int
boolean
hasAnnotation
(UnresolvedType ofType) boolean
boolean
boolean
boolean
boolean
boolean
boolean
isAspect()
boolean
TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?boolean
isClass()
boolean
isEnum()
boolean
boolean
boolean
boolean
isNested()
boolean
-
Method Details
-
isAspect
boolean isAspect() -
isAnnotationStyleAspect
boolean isAnnotationStyleAspect()- Returns:
- true if the type is an annotation style aspect (a type marked @Aspect)
-
isInterface
boolean isInterface() -
isEnum
boolean isEnum() -
isAnnotation
boolean isAnnotation() -
getRetentionPolicy
String getRetentionPolicy() -
canAnnotationTargetType
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
AnnotationTargetKind[] getAnnotationTargetKinds()- Returns:
- all the possible targets that this annotation can be placed upon
-
isAnnotationWithRuntimeRetention
boolean isAnnotationWithRuntimeRetention()- Returns:
- true if this annotation type has a retention policy of RUNTIME
-
isClass
boolean isClass() -
isGeneric
boolean isGeneric() -
isAnonymous
boolean isAnonymous() -
isNested
boolean isNested()- Returns:
- true if this class is nested (this includes: member classes, local classes, anonymous classes)
-
hasAnnotation
-
getAnnotations
AnnotationAJ[] getAnnotations() -
getAnnotationTypes
ResolvedType[] getAnnotationTypes() -
getDeclaredFields
ResolvedMember[] getDeclaredFields() -
getDeclaredInterfaces
ResolvedType[] getDeclaredInterfaces() -
getDeclaredMethods
ResolvedMember[] getDeclaredMethods() -
getDeclaredPointcuts
ResolvedMember[] getDeclaredPointcuts() -
getTypeVariables
TypeVariable[] getTypeVariables() -
getModifiers
int getModifiers() -
getPerClause
PerClause getPerClause()- Returns:
- for an aspect declaration, return the
-
getDeclares
Collection<Declare> getDeclares() -
getTypeMungers
Collection<ConcreteTypeMunger> getTypeMungers() -
getPrivilegedAccesses
Collection<ResolvedMember> getPrivilegedAccesses() -
getSuperclass
ResolvedType getSuperclass() -
getWeaverState
WeaverStateInfo getWeaverState() -
getResolvedTypeX
ReferenceType getResolvedTypeX() -
isExposedToWeaver
boolean isExposedToWeaver() -
doesNotExposeShadowMungers
boolean doesNotExposeShadowMungers() -
getSourceContext
ISourceContext getSourceContext() -
getSourcefilename
String getSourcefilename() -
getDeclaredGenericSignature
String getDeclaredGenericSignature() -
getOuterClass
ResolvedType getOuterClass() -
copySourceContext
boolean copySourceContext() -
isCacheable
boolean isCacheable()TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?- Returns:
- true if something the result of getDeclaredInterfaces() can be cached by the caller
-
getCompilerVersion
int getCompilerVersion()If known, return the compiler/weaver version used to build this delegate. Default is the most recent level as specified inAjAttribute.WeaverVersionInfo
.- Returns:
- the major version
-
ensureConsistent
void ensureConsistent()Implementations need to clear state -
isWeavable
boolean isWeavable() -
hasBeenWoven
boolean hasBeenWoven() -
hasAnnotations
boolean hasAnnotations()
-