Package org.aspectj.weaver.reflect
Class Java15AnnotationFinder
java.lang.Object
org.aspectj.weaver.reflect.Java15AnnotationFinder
- All Implemented Interfaces:
AnnotationFinder
,ArgNameFinder
- Author:
- Adrian Colyer, Andy Clement
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(ResolvedType annotationType, Object onObject) getAnnotationDefaultValue
(Member onMember) getAnnotationFromClass
(ResolvedType annotationType, Class aClass) getAnnotationFromMember
(ResolvedType annotationType, Member aMember) getAnnotationOfType
(UnresolvedType ofType, Member onMember) getAnnotations
(Class forClass, World inWorld) getAnnotations
(Member onMember, boolean areRuntimeAnnotationsSufficient) ResolvedType[][]
getParameterAnnotationTypes
(Member onMember) String[]
getParameterNames
(Member forMember) Attempt to discover the parameter names for a reflectively obtained member.void
setClassLoader
(ClassLoader aLoader) void
-
Field Details
-
NO_PARAMETER_ANNOTATIONS
-
useSingleInstances
public static boolean useSingleInstances
-
-
Constructor Details
-
Java15AnnotationFinder
public Java15AnnotationFinder()
-
-
Method Details
-
setClassLoader
- Specified by:
setClassLoader
in interfaceAnnotationFinder
-
setWorld
- Specified by:
setWorld
in interfaceAnnotationFinder
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotationFinder
-
getAnnotationFromClass
- Specified by:
getAnnotationFromClass
in interfaceAnnotationFinder
-
getAnnotationFromMember
- Specified by:
getAnnotationFromMember
in interfaceAnnotationFinder
-
getAnnotationOfType
- Specified by:
getAnnotationOfType
in interfaceAnnotationFinder
-
getAnnotationDefaultValue
- Specified by:
getAnnotationDefaultValue
in interfaceAnnotationFinder
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotationFinder
-
getAnnotations
-
getParameterNames
Description copied from interface:ArgNameFinder
Attempt to discover the parameter names for a reflectively obtained member.- Specified by:
getParameterNames
in interfaceArgNameFinder
- Parameters:
forMember
- the member for which parameter names are being looked up- Returns:
- parameter names or null if names can't be determined
-
getParameterAnnotationTypes
- Specified by:
getParameterAnnotationTypes
in interfaceAnnotationFinder
-