Package org.aspectj.weaver.reflect
Class Java15ReflectionBasedReferenceTypeDelegate
java.lang.Object
org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegate
org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate
- All Implemented Interfaces:
ReferenceTypeDelegate
public class Java15ReflectionBasedReferenceTypeDelegate
extends ReflectionBasedReferenceTypeDelegate
Provides Java 5 behaviour in reflection based delegates (overriding 1.4 behaviour from superclass where
appropriate)
- Author:
- Adrian Colyer, Andy Clement
-
Field Summary
Fields inherited from class org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegate
classLoaderReference, myClass, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the generic type, regardless of the resolvedType we 'know about'boolean
hasAnnotation(UnresolvedType ofType)
boolean
void
initialize(ReferenceType aType, Class aClass, ClassLoader classLoader, World aWorld)
boolean
boolean
boolean
boolean
boolean
isAspect()
boolean
isEnum()
boolean
boolean
isNested()
Methods inherited from class org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegate
canAnnotationTargetType, copySourceContext, createResolvedMemberFor, doesNotExposeShadowMungers, ensureConsistent, getAnnotationTargetKinds, getBaseClass, getClazz, getCompilerVersion, getDeclares, getModifiers, getPerClause, getPrivilegedAccesses, getResolvedTypeX, getRetentionPolicy, getSourceContext, getSourcefilename, getTypeMungers, getWeaverState, getWorld, hasBeenWoven, isCacheable, isClass, isExposedToWeaver, isInterface, isWeavable
-
Constructor Details
-
Java15ReflectionBasedReferenceTypeDelegate
public Java15ReflectionBasedReferenceTypeDelegate()
-
-
Method Details
-
initialize
- Overrides:
initialize
in classReflectionBasedReferenceTypeDelegate
-
buildGenericType
- Overrides:
buildGenericType
in classReflectionBasedReferenceTypeDelegate
-
getAnnotations
- Specified by:
getAnnotations
in interfaceReferenceTypeDelegate
- Overrides:
getAnnotations
in classReflectionBasedReferenceTypeDelegate
-
getAnnotationTypes
- Specified by:
getAnnotationTypes
in interfaceReferenceTypeDelegate
- Overrides:
getAnnotationTypes
in classReflectionBasedReferenceTypeDelegate
-
hasAnnotations
public boolean hasAnnotations()- Specified by:
hasAnnotations
in interfaceReferenceTypeDelegate
- Overrides:
hasAnnotations
in classReflectionBasedReferenceTypeDelegate
-
hasAnnotation
- Specified by:
hasAnnotation
in interfaceReferenceTypeDelegate
- Overrides:
hasAnnotation
in classReflectionBasedReferenceTypeDelegate
-
getDeclaredFields
- Specified by:
getDeclaredFields
in interfaceReferenceTypeDelegate
- Overrides:
getDeclaredFields
in classReflectionBasedReferenceTypeDelegate
-
getDeclaredGenericSignature
- Specified by:
getDeclaredGenericSignature
in interfaceReferenceTypeDelegate
- Overrides:
getDeclaredGenericSignature
in classReflectionBasedReferenceTypeDelegate
-
getDeclaredInterfaces
- Specified by:
getDeclaredInterfaces
in interfaceReferenceTypeDelegate
- Overrides:
getDeclaredInterfaces
in classReflectionBasedReferenceTypeDelegate
-
getSuperclass
- Specified by:
getSuperclass
in interfaceReferenceTypeDelegate
- Overrides:
getSuperclass
in classReflectionBasedReferenceTypeDelegate
-
getTypeVariables
- Specified by:
getTypeVariables
in interfaceReferenceTypeDelegate
- Overrides:
getTypeVariables
in classReflectionBasedReferenceTypeDelegate
-
getDeclaredMethods
- Specified by:
getDeclaredMethods
in interfaceReferenceTypeDelegate
- Overrides:
getDeclaredMethods
in classReflectionBasedReferenceTypeDelegate
-
getGenericResolvedType
Returns the generic type, regardless of the resolvedType we 'know about' -
getDeclaredPointcuts
- Specified by:
getDeclaredPointcuts
in interfaceReferenceTypeDelegate
- Overrides:
getDeclaredPointcuts
in classReflectionBasedReferenceTypeDelegate
-
isAnnotation
public boolean isAnnotation()- Specified by:
isAnnotation
in interfaceReferenceTypeDelegate
- Overrides:
isAnnotation
in classReflectionBasedReferenceTypeDelegate
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()- Specified by:
isAnnotationStyleAspect
in interfaceReferenceTypeDelegate
- Overrides:
isAnnotationStyleAspect
in classReflectionBasedReferenceTypeDelegate
- Returns:
- true if the type is an annotation style aspect (a type marked @Aspect)
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()- Specified by:
isAnnotationWithRuntimeRetention
in interfaceReferenceTypeDelegate
- Overrides:
isAnnotationWithRuntimeRetention
in classReflectionBasedReferenceTypeDelegate
- Returns:
- true if this annotation type has a retention policy of RUNTIME
-
isAspect
public boolean isAspect()- Specified by:
isAspect
in interfaceReferenceTypeDelegate
- Overrides:
isAspect
in classReflectionBasedReferenceTypeDelegate
-
isEnum
public boolean isEnum()- Specified by:
isEnum
in interfaceReferenceTypeDelegate
- Overrides:
isEnum
in classReflectionBasedReferenceTypeDelegate
-
isGeneric
public boolean isGeneric()- Specified by:
isGeneric
in interfaceReferenceTypeDelegate
- Overrides:
isGeneric
in classReflectionBasedReferenceTypeDelegate
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymous
in interfaceReferenceTypeDelegate
- Overrides:
isAnonymous
in classReflectionBasedReferenceTypeDelegate
-
isNested
public boolean isNested()- Specified by:
isNested
in interfaceReferenceTypeDelegate
- Overrides:
isNested
in classReflectionBasedReferenceTypeDelegate
- Returns:
- true if this class is nested (this includes: member classes, local classes, anonymous classes)
-
getOuterClass
- Specified by:
getOuterClass
in interfaceReferenceTypeDelegate
- Overrides:
getOuterClass
in classReflectionBasedReferenceTypeDelegate
-