com.sun.xml.bind.v2.model.annotation

Class RuntimeInlineAnnotationReader

public final class RuntimeInlineAnnotationReader extends AbstractInlineAnnotationReaderImpl<Type,Class,Field,Method> implements RuntimeAnnotationReader

AnnotationReader that uses {@code java.lang.reflect} to read annotations from class files.
Method Summary
protected StringfullName(Method m)
Annotation[]getAllFieldAnnotations(Field field, Locatable srcPos)
Annotation[]getAllMethodAnnotations(Method method, Locatable srcPos)
<A extends Annotation> AgetClassAnnotation(Class<A> a, Class clazz, Locatable srcPos)
Class[]getClassArrayValue(Annotation a, String name)
ClassgetClassValue(Annotation a, String name)
<A extends Annotation> AgetFieldAnnotation(Class<A> annotation, Field field, Locatable srcPos)
<A extends Annotation> AgetMethodAnnotation(Class<A> annotation, Method method, Locatable srcPos)
<A extends Annotation> AgetMethodParameterAnnotation(Class<A> annotation, Method method, int paramIndex, Locatable srcPos)
<A extends Annotation> AgetPackageAnnotation(Class<A> a, Class clazz, Locatable srcPos)
booleanhasClassAnnotation(Class clazz, Class<? extends Annotation> annotationType)
booleanhasFieldAnnotation(Class<? extends Annotation> annotationType, Field field)
booleanhasMethodAnnotation(Class<? extends Annotation> annotation, Method method)

Method Detail

fullName

protected String fullName(Method m)

getAllFieldAnnotations

public Annotation[] getAllFieldAnnotations(Field field, Locatable srcPos)

getAllMethodAnnotations

public Annotation[] getAllMethodAnnotations(Method method, Locatable srcPos)

getClassAnnotation

public <A extends Annotation> A getClassAnnotation(Class<A> a, Class clazz, Locatable srcPos)

getClassArrayValue

public Class[] getClassArrayValue(Annotation a, String name)

getClassValue

public Class getClassValue(Annotation a, String name)

getFieldAnnotation

public <A extends Annotation> A getFieldAnnotation(Class<A> annotation, Field field, Locatable srcPos)

getMethodAnnotation

public <A extends Annotation> A getMethodAnnotation(Class<A> annotation, Method method, Locatable srcPos)

getMethodParameterAnnotation

public <A extends Annotation> A getMethodParameterAnnotation(Class<A> annotation, Method method, int paramIndex, Locatable srcPos)

getPackageAnnotation

public <A extends Annotation> A getPackageAnnotation(Class<A> a, Class clazz, Locatable srcPos)

hasClassAnnotation

public boolean hasClassAnnotation(Class clazz, Class<? extends Annotation> annotationType)

hasFieldAnnotation

public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, Field field)

hasMethodAnnotation

public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, Method method)