org.aspectj.weaver.reflect
Class Java15AnnotationFinder
java.lang.Object
org.aspectj.weaver.reflect.Java15AnnotationFinder
- All Implemented Interfaces:
- AnnotationFinder, ArgNameFinder
public class Java15AnnotationFinder
- extends java.lang.Object
- implements AnnotationFinder, ArgNameFinder
Find the given annotation (if present) on the given object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_PARAMETER_ANNOTATIONS
public static final ResolvedType[][] NO_PARAMETER_ANNOTATIONS
Java15AnnotationFinder
public Java15AnnotationFinder()
setClassLoader
public void setClassLoader(java.lang.ClassLoader aLoader)
- Specified by:
setClassLoader
in interface AnnotationFinder
setWorld
public void setWorld(World aWorld)
- Specified by:
setWorld
in interface AnnotationFinder
getAnnotation
public java.lang.Object getAnnotation(ResolvedType annotationType,
java.lang.Object onObject)
- Specified by:
getAnnotation
in interface AnnotationFinder
getAnnotationFromClass
public java.lang.Object getAnnotationFromClass(ResolvedType annotationType,
java.lang.Class aClass)
- Specified by:
getAnnotationFromClass
in interface AnnotationFinder
getAnnotationFromMember
public java.lang.Object getAnnotationFromMember(ResolvedType annotationType,
java.lang.reflect.Member aMember)
- Specified by:
getAnnotationFromMember
in interface AnnotationFinder
getAnnotationOfType
public AnnotationAJ getAnnotationOfType(UnresolvedType ofType,
java.lang.reflect.Member onMember)
- Specified by:
getAnnotationOfType
in interface AnnotationFinder
getAnnotationDefaultValue
public java.lang.String getAnnotationDefaultValue(java.lang.reflect.Member onMember)
- Specified by:
getAnnotationDefaultValue
in interface AnnotationFinder
getAnnotations
public java.util.Set getAnnotations(java.lang.reflect.Member onMember)
- Specified by:
getAnnotations
in interface AnnotationFinder
getAnnotations
public ResolvedType[] getAnnotations(java.lang.Class forClass,
World inWorld)
getParameterNames
public java.lang.String[] getParameterNames(java.lang.reflect.Member forMember)
- Description copied from interface:
ArgNameFinder
- Attempt to discover the parameter names for a reflectively obtained member
- Specified by:
getParameterNames
in interface ArgNameFinder
- Returns:
- null if names can't be determined
getParameterAnnotationTypes
public ResolvedType[][] getParameterAnnotationTypes(java.lang.reflect.Member onMember)
- Specified by:
getParameterAnnotationTypes
in interface AnnotationFinder