public class ReflectionBasedReferenceTypeDelegate extends java.lang.Object implements ReferenceTypeDelegate
Modifier and Type | Field and Description |
---|---|
protected WeakClassLoaderReference |
classLoaderReference |
protected java.lang.Class |
myClass |
protected World |
world |
Constructor and Description |
---|
ReflectionBasedReferenceTypeDelegate()
for reflective construction only
|
ReflectionBasedReferenceTypeDelegate(java.lang.Class forClass,
java.lang.ClassLoader aClassLoader,
World inWorld,
ReferenceType resolvedType) |
protected java.lang.Class myClass
protected WeakClassLoaderReference classLoaderReference
protected World world
public ReflectionBasedReferenceTypeDelegate(java.lang.Class forClass, java.lang.ClassLoader aClassLoader, World inWorld, ReferenceType resolvedType)
public ReflectionBasedReferenceTypeDelegate()
public void initialize(ReferenceType aType, java.lang.Class<?> aClass, java.lang.ClassLoader aClassLoader, World aWorld)
public java.lang.Class<?> getClazz()
protected java.lang.Class getBaseClass()
protected World getWorld()
public ReferenceType buildGenericType()
public boolean isAspect()
isAspect
in interface ReferenceTypeDelegate
public boolean isAnnotationStyleAspect()
isAnnotationStyleAspect
in interface ReferenceTypeDelegate
public boolean isInterface()
isInterface
in interface ReferenceTypeDelegate
public boolean isEnum()
isEnum
in interface ReferenceTypeDelegate
public boolean isAnnotationWithRuntimeRetention()
isAnnotationWithRuntimeRetention
in interface ReferenceTypeDelegate
public boolean isAnnotation()
isAnnotation
in interface ReferenceTypeDelegate
public java.lang.String getRetentionPolicy()
getRetentionPolicy
in interface ReferenceTypeDelegate
public boolean canAnnotationTargetType()
canAnnotationTargetType
in interface ReferenceTypeDelegate
public AnnotationTargetKind[] getAnnotationTargetKinds()
getAnnotationTargetKinds
in interface ReferenceTypeDelegate
public boolean isClass()
isClass
in interface ReferenceTypeDelegate
public boolean isGeneric()
isGeneric
in interface ReferenceTypeDelegate
public boolean isAnonymous()
isAnonymous
in interface ReferenceTypeDelegate
public boolean isNested()
isNested
in interface ReferenceTypeDelegate
public ResolvedType getOuterClass()
getOuterClass
in interface ReferenceTypeDelegate
public boolean isExposedToWeaver()
isExposedToWeaver
in interface ReferenceTypeDelegate
public boolean hasAnnotation(UnresolvedType ofType)
hasAnnotation
in interface ReferenceTypeDelegate
public AnnotationAJ[] getAnnotations()
getAnnotations
in interface ReferenceTypeDelegate
public boolean hasAnnotations()
hasAnnotations
in interface ReferenceTypeDelegate
public ResolvedType[] getAnnotationTypes()
getAnnotationTypes
in interface ReferenceTypeDelegate
public ResolvedMember[] getDeclaredFields()
getDeclaredFields
in interface ReferenceTypeDelegate
public ResolvedType[] getDeclaredInterfaces()
getDeclaredInterfaces
in interface ReferenceTypeDelegate
public boolean isCacheable()
ReferenceTypeDelegate
isCacheable
in interface ReferenceTypeDelegate
public ResolvedMember[] getDeclaredMethods()
getDeclaredMethods
in interface ReferenceTypeDelegate
public ResolvedMember[] getDeclaredPointcuts()
getDeclaredPointcuts
in interface ReferenceTypeDelegate
public TypeVariable[] getTypeVariables()
getTypeVariables
in interface ReferenceTypeDelegate
public PerClause getPerClause()
getPerClause
in interface ReferenceTypeDelegate
public java.util.Collection<Declare> getDeclares()
getDeclares
in interface ReferenceTypeDelegate
public java.util.Collection<ConcreteTypeMunger> getTypeMungers()
getTypeMungers
in interface ReferenceTypeDelegate
public java.util.Collection getPrivilegedAccesses()
getPrivilegedAccesses
in interface ReferenceTypeDelegate
public int getModifiers()
getModifiers
in interface ReferenceTypeDelegate
public ResolvedType getSuperclass()
getSuperclass
in interface ReferenceTypeDelegate
public WeaverStateInfo getWeaverState()
getWeaverState
in interface ReferenceTypeDelegate
public ReferenceType getResolvedTypeX()
getResolvedTypeX
in interface ReferenceTypeDelegate
public boolean doesNotExposeShadowMungers()
doesNotExposeShadowMungers
in interface ReferenceTypeDelegate
public java.lang.String getDeclaredGenericSignature()
getDeclaredGenericSignature
in interface ReferenceTypeDelegate
public ReflectionBasedResolvedMemberImpl createResolvedMemberFor(java.lang.reflect.Member aMember)
public java.lang.String getSourcefilename()
getSourcefilename
in interface ReferenceTypeDelegate
public ISourceContext getSourceContext()
getSourceContext
in interface ReferenceTypeDelegate
public boolean copySourceContext()
copySourceContext
in interface ReferenceTypeDelegate
public int getCompilerVersion()
ReferenceTypeDelegate
AjAttribute.WeaverVersionInfo
.getCompilerVersion
in interface ReferenceTypeDelegate
public void ensureConsistent()
ReferenceTypeDelegate
ensureConsistent
in interface ReferenceTypeDelegate
public boolean isWeavable()
isWeavable
in interface ReferenceTypeDelegate
public boolean hasBeenWoven()
hasBeenWoven
in interface ReferenceTypeDelegate