public final class RuntimeInlineAnnotationReader extends AbstractInlineAnnotationReaderImpl<Type,Class,Field,Method> implements RuntimeAnnotationReader
AnnotationReader that uses java.lang.reflect to
read annotations from class files.| Constructor and Description |
|---|
RuntimeInlineAnnotationReader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
fullName(Method m)
Gets the fully-qualified name of the method.
|
Annotation[] |
getAllFieldAnnotations(Field field,
Locatable srcPos) |
Annotation[] |
getAllMethodAnnotations(Method method,
Locatable srcPos) |
<A extends Annotation> |
getClassAnnotation(Class<A> a,
Class clazz,
Locatable srcPos) |
Class[] |
getClassArrayValue(Annotation a,
String name) |
Class |
getClassValue(Annotation a,
String name) |
<A extends Annotation> |
getFieldAnnotation(Class<A> annotation,
Field field,
Locatable srcPos) |
<A extends Annotation> |
getMethodAnnotation(Class<A> annotation,
Method method,
Locatable srcPos) |
<A extends Annotation> |
getMethodParameterAnnotation(Class<A> annotation,
Method method,
int paramIndex,
Locatable srcPos) |
<A extends Annotation> |
getPackageAnnotation(Class<A> a,
Class clazz,
Locatable srcPos) |
boolean |
hasClassAnnotation(Class clazz,
Class<? extends Annotation> annotationType) |
boolean |
hasFieldAnnotation(Class<? extends Annotation> annotationType,
Field field) |
boolean |
hasMethodAnnotation(Class<? extends Annotation> annotation,
Method method) |
getErrorHandler, getMethodAnnotation, hasMethodAnnotation, setErrorHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethodAnnotation, hasMethodAnnotation, setErrorHandlerpublic <A extends Annotation> A getFieldAnnotation(Class<A> annotation, Field field, Locatable srcPos)
getFieldAnnotation in interface AnnotationReader<Type,Class,Field,Method>public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, Field field)
hasFieldAnnotation in interface AnnotationReader<Type,Class,Field,Method>public boolean hasClassAnnotation(Class clazz, Class<? extends Annotation> annotationType)
hasClassAnnotation in interface AnnotationReader<Type,Class,Field,Method>public Annotation[] getAllFieldAnnotations(Field field, Locatable srcPos)
getAllFieldAnnotations in interface AnnotationReader<Type,Class,Field,Method>public <A extends Annotation> A getMethodAnnotation(Class<A> annotation, Method method, Locatable srcPos)
getMethodAnnotation in interface AnnotationReader<Type,Class,Field,Method>public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, Method method)
hasMethodAnnotation in interface AnnotationReader<Type,Class,Field,Method>public Annotation[] getAllMethodAnnotations(Method method, Locatable srcPos)
getAllMethodAnnotations in interface AnnotationReader<Type,Class,Field,Method>public <A extends Annotation> A getMethodParameterAnnotation(Class<A> annotation, Method method, int paramIndex, Locatable srcPos)
getMethodParameterAnnotation in interface AnnotationReader<Type,Class,Field,Method>public <A extends Annotation> A getClassAnnotation(Class<A> a, Class clazz, Locatable srcPos)
getClassAnnotation in interface AnnotationReader<Type,Class,Field,Method>public <A extends Annotation> A getPackageAnnotation(Class<A> a, Class clazz, Locatable srcPos)
getPackageAnnotation in interface AnnotationReader<Type,Class,Field,Method>public Class getClassValue(Annotation a, String name)
getClassValue in interface AnnotationReader<Type,Class,Field,Method>public Class[] getClassArrayValue(Annotation a, String name)
getClassArrayValue in interface AnnotationReader<Type,Class,Field,Method>protected String fullName(Method m)
AbstractInlineAnnotationReaderImplCopyright © 2015 Oracle Corporation. All Rights Reserved.