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 ReflectionBasedReferenceTypeDelegate
classLoaderReference, myClass, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the generic type, regardless of the resolvedType we 'know about'booleanhasAnnotation(UnresolvedType ofType) booleanvoidinitialize(ReferenceType aType, Class aClass, ClassLoader classLoader, World aWorld) booleanbooleanbooleanbooleanbooleanisAspect()booleanisEnum()booleanbooleanisNested()Methods inherited from class 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:
initializein classReflectionBasedReferenceTypeDelegate
-
buildGenericType
- Overrides:
buildGenericTypein classReflectionBasedReferenceTypeDelegate
-
getAnnotations
- Specified by:
getAnnotationsin interfaceReferenceTypeDelegate- Overrides:
getAnnotationsin classReflectionBasedReferenceTypeDelegate
-
getAnnotationTypes
- Specified by:
getAnnotationTypesin interfaceReferenceTypeDelegate- Overrides:
getAnnotationTypesin classReflectionBasedReferenceTypeDelegate
-
hasAnnotations
public boolean hasAnnotations()- Specified by:
hasAnnotationsin interfaceReferenceTypeDelegate- Overrides:
hasAnnotationsin classReflectionBasedReferenceTypeDelegate
-
hasAnnotation
- Specified by:
hasAnnotationin interfaceReferenceTypeDelegate- Overrides:
hasAnnotationin classReflectionBasedReferenceTypeDelegate
-
getDeclaredFields
- Specified by:
getDeclaredFieldsin interfaceReferenceTypeDelegate- Overrides:
getDeclaredFieldsin classReflectionBasedReferenceTypeDelegate
-
getDeclaredGenericSignature
- Specified by:
getDeclaredGenericSignaturein interfaceReferenceTypeDelegate- Overrides:
getDeclaredGenericSignaturein classReflectionBasedReferenceTypeDelegate
-
getDeclaredInterfaces
- Specified by:
getDeclaredInterfacesin interfaceReferenceTypeDelegate- Overrides:
getDeclaredInterfacesin classReflectionBasedReferenceTypeDelegate
-
getSuperclass
- Specified by:
getSuperclassin interfaceReferenceTypeDelegate- Overrides:
getSuperclassin classReflectionBasedReferenceTypeDelegate
-
getTypeVariables
- Specified by:
getTypeVariablesin interfaceReferenceTypeDelegate- Overrides:
getTypeVariablesin classReflectionBasedReferenceTypeDelegate
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceReferenceTypeDelegate- Overrides:
getDeclaredMethodsin classReflectionBasedReferenceTypeDelegate
-
getGenericResolvedType
Returns the generic type, regardless of the resolvedType we 'know about' -
getDeclaredPointcuts
- Specified by:
getDeclaredPointcutsin interfaceReferenceTypeDelegate- Overrides:
getDeclaredPointcutsin classReflectionBasedReferenceTypeDelegate
-
isAnnotation
public boolean isAnnotation()- Specified by:
isAnnotationin interfaceReferenceTypeDelegate- Overrides:
isAnnotationin classReflectionBasedReferenceTypeDelegate
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()- Specified by:
isAnnotationStyleAspectin interfaceReferenceTypeDelegate- Overrides:
isAnnotationStyleAspectin classReflectionBasedReferenceTypeDelegate- Returns:
- true if the type is an annotation style aspect (a type marked @Aspect)
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()- Specified by:
isAnnotationWithRuntimeRetentionin interfaceReferenceTypeDelegate- Overrides:
isAnnotationWithRuntimeRetentionin classReflectionBasedReferenceTypeDelegate- Returns:
- true if this annotation type has a retention policy of RUNTIME
-
isAspect
public boolean isAspect()- Specified by:
isAspectin interfaceReferenceTypeDelegate- Overrides:
isAspectin classReflectionBasedReferenceTypeDelegate
-
isEnum
public boolean isEnum()- Specified by:
isEnumin interfaceReferenceTypeDelegate- Overrides:
isEnumin classReflectionBasedReferenceTypeDelegate
-
isGeneric
public boolean isGeneric()- Specified by:
isGenericin interfaceReferenceTypeDelegate- Overrides:
isGenericin classReflectionBasedReferenceTypeDelegate
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfaceReferenceTypeDelegate- Overrides:
isAnonymousin classReflectionBasedReferenceTypeDelegate
-
isNested
public boolean isNested()- Specified by:
isNestedin interfaceReferenceTypeDelegate- Overrides:
isNestedin classReflectionBasedReferenceTypeDelegate- Returns:
- true if this class is nested (this includes: member classes, local classes, anonymous classes)
-
getOuterClass
- Specified by:
getOuterClassin interfaceReferenceTypeDelegate- Overrides:
getOuterClassin classReflectionBasedReferenceTypeDelegate
-