Module org.glassfish.jaxb.runtime
Class RuntimeInlineAnnotationReader
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.model.annotation.AbstractInlineAnnotationReaderImpl<Type,Class,Field,Method>
-
- org.glassfish.jaxb.runtime.v2.model.annotation.RuntimeInlineAnnotationReader
-
- All Implemented Interfaces:
org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>,RuntimeAnnotationReader
public final class RuntimeInlineAnnotationReader extends AbstractInlineAnnotationReaderImpl<Type,Class,Field,Method> implements RuntimeAnnotationReader
AnnotationReaderthat usesjava.lang.reflectto read annotations from class files.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Constructor Summary
Constructors Constructor Description RuntimeInlineAnnotationReader()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringfullName(Method m)Gets the fully-qualified name of the method.Annotation[]getAllFieldAnnotations(Field field, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)Annotation[]getAllMethodAnnotations(Method method, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)<A extends Annotation>
AgetClassAnnotation(Class<A> a, Class clazz, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)Class[]getClassArrayValue(Annotation a, String name)ClassgetClassValue(Annotation a, String name)<A extends Annotation>
AgetFieldAnnotation(Class<A> annotation, Field field, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)<A extends Annotation>
AgetMethodAnnotation(Class<A> annotation, Method method, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)<A extends Annotation>
AgetMethodParameterAnnotation(Class<A> annotation, Method method, int paramIndex, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)<A extends Annotation>
AgetPackageAnnotation(Class<A> a, Class clazz, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)booleanhasClassAnnotation(Class clazz, Class<? extends Annotation> annotationType)booleanhasFieldAnnotation(Class<? extends Annotation> annotationType, Field field)booleanhasMethodAnnotation(Class<? extends Annotation> annotation, Method method)-
Methods inherited from class org.glassfish.jaxb.runtime.v2.model.annotation.AbstractInlineAnnotationReaderImpl
getErrorHandler, getMethodAnnotation, hasMethodAnnotation, setErrorHandler
-
-
-
-
Method Detail
-
getFieldAnnotation
public <A extends Annotation> A getFieldAnnotation(Class<A> annotation, Field field, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
-
hasFieldAnnotation
public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, Field field)
-
hasClassAnnotation
public boolean hasClassAnnotation(Class clazz, Class<? extends Annotation> annotationType)
-
getAllFieldAnnotations
public Annotation[] getAllFieldAnnotations(Field field, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
-
getMethodAnnotation
public <A extends Annotation> A getMethodAnnotation(Class<A> annotation, Method method, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
-
hasMethodAnnotation
public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, Method method)
-
getAllMethodAnnotations
public Annotation[] getAllMethodAnnotations(Method method, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
-
getMethodParameterAnnotation
public <A extends Annotation> A getMethodParameterAnnotation(Class<A> annotation, Method method, int paramIndex, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
-
getClassAnnotation
public <A extends Annotation> A getClassAnnotation(Class<A> a, Class clazz, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
-
getPackageAnnotation
public <A extends Annotation> A getPackageAnnotation(Class<A> a, Class clazz, org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
-
getClassValue
public Class getClassValue(Annotation a, String name)
-
getClassArrayValue
public Class[] getClassArrayValue(Annotation a, String name)
-
fullName
protected String fullName(Method m)
Description copied from class:AbstractInlineAnnotationReaderImplGets the fully-qualified name of the method. Used for error messages.
-
-