Package org.aspectj.weaver.reflect
Class ReflectionBasedReferenceTypeDelegate
- java.lang.Object
-
- org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegate
-
- All Implemented Interfaces:
ReferenceTypeDelegate
- Direct Known Subclasses:
Java15ReflectionBasedReferenceTypeDelegate
public class ReflectionBasedReferenceTypeDelegate extends Object implements ReferenceTypeDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected WeakClassLoaderReferenceclassLoaderReferenceprotected ClassmyClassprotected Worldworld
-
Constructor Summary
Constructors Constructor Description ReflectionBasedReferenceTypeDelegate()ReflectionBasedReferenceTypeDelegate(Class forClass, ClassLoader aClassLoader, World inWorld, ReferenceType resolvedType)
-
Method Summary
-
-
-
Field Detail
-
myClass
protected Class myClass
-
classLoaderReference
protected WeakClassLoaderReference classLoaderReference
-
world
protected World world
-
-
Constructor Detail
-
ReflectionBasedReferenceTypeDelegate
public ReflectionBasedReferenceTypeDelegate(Class forClass, ClassLoader aClassLoader, World inWorld, ReferenceType resolvedType)
-
ReflectionBasedReferenceTypeDelegate
public ReflectionBasedReferenceTypeDelegate()
-
-
Method Detail
-
initialize
public void initialize(ReferenceType aType, Class<?> aClass, ClassLoader aClassLoader, World aWorld)
-
getClazz
public Class<?> getClazz()
-
getBaseClass
protected Class getBaseClass()
-
getWorld
protected World getWorld()
-
buildGenericType
public ReferenceType buildGenericType()
-
isAspect
public boolean isAspect()
- Specified by:
isAspectin interfaceReferenceTypeDelegate
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()
- Specified by:
isAnnotationStyleAspectin interfaceReferenceTypeDelegate
-
isInterface
public boolean isInterface()
- Specified by:
isInterfacein interfaceReferenceTypeDelegate
-
isEnum
public boolean isEnum()
- Specified by:
isEnumin interfaceReferenceTypeDelegate
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()
- Specified by:
isAnnotationWithRuntimeRetentionin interfaceReferenceTypeDelegate
-
isAnnotation
public boolean isAnnotation()
- Specified by:
isAnnotationin interfaceReferenceTypeDelegate
-
getRetentionPolicy
public String getRetentionPolicy()
- Specified by:
getRetentionPolicyin interfaceReferenceTypeDelegate
-
canAnnotationTargetType
public boolean canAnnotationTargetType()
- Specified by:
canAnnotationTargetTypein interfaceReferenceTypeDelegate
-
getAnnotationTargetKinds
public AnnotationTargetKind[] getAnnotationTargetKinds()
- Specified by:
getAnnotationTargetKindsin interfaceReferenceTypeDelegate
-
isClass
public boolean isClass()
- Specified by:
isClassin interfaceReferenceTypeDelegate
-
isGeneric
public boolean isGeneric()
- Specified by:
isGenericin interfaceReferenceTypeDelegate
-
isAnonymous
public boolean isAnonymous()
- Specified by:
isAnonymousin interfaceReferenceTypeDelegate
-
isNested
public boolean isNested()
- Specified by:
isNestedin interfaceReferenceTypeDelegate
-
getOuterClass
public ResolvedType getOuterClass()
- Specified by:
getOuterClassin interfaceReferenceTypeDelegate
-
isExposedToWeaver
public boolean isExposedToWeaver()
- Specified by:
isExposedToWeaverin interfaceReferenceTypeDelegate
-
hasAnnotation
public boolean hasAnnotation(UnresolvedType ofType)
- Specified by:
hasAnnotationin interfaceReferenceTypeDelegate
-
getAnnotations
public AnnotationAJ[] getAnnotations()
- Specified by:
getAnnotationsin interfaceReferenceTypeDelegate
-
hasAnnotations
public boolean hasAnnotations()
- Specified by:
hasAnnotationsin interfaceReferenceTypeDelegate
-
getAnnotationTypes
public ResolvedType[] getAnnotationTypes()
- Specified by:
getAnnotationTypesin interfaceReferenceTypeDelegate
-
getDeclaredFields
public ResolvedMember[] getDeclaredFields()
- Specified by:
getDeclaredFieldsin interfaceReferenceTypeDelegate
-
getDeclaredInterfaces
public ResolvedType[] getDeclaredInterfaces()
- Specified by:
getDeclaredInterfacesin interfaceReferenceTypeDelegate
-
isCacheable
public boolean isCacheable()
- Specified by:
isCacheablein interfaceReferenceTypeDelegate
-
getDeclaredMethods
public ResolvedMember[] getDeclaredMethods()
- Specified by:
getDeclaredMethodsin interfaceReferenceTypeDelegate
-
getDeclaredPointcuts
public ResolvedMember[] getDeclaredPointcuts()
- Specified by:
getDeclaredPointcutsin interfaceReferenceTypeDelegate
-
getTypeVariables
public TypeVariable[] getTypeVariables()
- Specified by:
getTypeVariablesin interfaceReferenceTypeDelegate
-
getPerClause
public PerClause getPerClause()
- Specified by:
getPerClausein interfaceReferenceTypeDelegate
-
getDeclares
public Collection<Declare> getDeclares()
- Specified by:
getDeclaresin interfaceReferenceTypeDelegate
-
getTypeMungers
public Collection<ConcreteTypeMunger> getTypeMungers()
- Specified by:
getTypeMungersin interfaceReferenceTypeDelegate
-
getPrivilegedAccesses
public Collection getPrivilegedAccesses()
- Specified by:
getPrivilegedAccessesin interfaceReferenceTypeDelegate
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceReferenceTypeDelegate
-
getSuperclass
public ResolvedType getSuperclass()
- Specified by:
getSuperclassin interfaceReferenceTypeDelegate
-
getWeaverState
public WeaverStateInfo getWeaverState()
- Specified by:
getWeaverStatein interfaceReferenceTypeDelegate
-
getResolvedTypeX
public ReferenceType getResolvedTypeX()
- Specified by:
getResolvedTypeXin interfaceReferenceTypeDelegate
-
doesNotExposeShadowMungers
public boolean doesNotExposeShadowMungers()
- Specified by:
doesNotExposeShadowMungersin interfaceReferenceTypeDelegate
-
getDeclaredGenericSignature
public String getDeclaredGenericSignature()
- Specified by:
getDeclaredGenericSignaturein interfaceReferenceTypeDelegate
-
createResolvedMemberFor
public ReflectionBasedResolvedMemberImpl createResolvedMemberFor(Member aMember)
-
getSourcefilename
public String getSourcefilename()
- Specified by:
getSourcefilenamein interfaceReferenceTypeDelegate
-
getSourceContext
public ISourceContext getSourceContext()
- Specified by:
getSourceContextin interfaceReferenceTypeDelegate
-
copySourceContext
public boolean copySourceContext()
- Specified by:
copySourceContextin interfaceReferenceTypeDelegate
-
getCompilerVersion
public int getCompilerVersion()
- Specified by:
getCompilerVersionin interfaceReferenceTypeDelegate
-
ensureConsistent
public void ensureConsistent()
- Specified by:
ensureConsistentin interfaceReferenceTypeDelegate
-
isWeavable
public boolean isWeavable()
- Specified by:
isWeavablein interfaceReferenceTypeDelegate
-
hasBeenWoven
public boolean hasBeenWoven()
- Specified by:
hasBeenWovenin interfaceReferenceTypeDelegate
-
-