Module com.sun.xml.bind
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:
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()
-
Method Summary
-
Methods inherited from class org.glassfish.jaxb.runtime.v2.model.annotation.AbstractInlineAnnotationReaderImpl
getErrorHandler, getMethodAnnotation, hasMethodAnnotation, setErrorHandler
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader
getMethodAnnotation, hasMethodAnnotation, setErrorHandler
-
-
-
-
Method Detail
-
getFieldAnnotation
public <A extends Annotation> A getFieldAnnotation(Class<A> annotation, Field field, Locatable srcPos)
- Specified by:
getFieldAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
hasFieldAnnotation
public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, Field field)
- Specified by:
hasFieldAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
hasClassAnnotation
public boolean hasClassAnnotation(Class clazz, Class<? extends Annotation> annotationType)
- Specified by:
hasClassAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
getAllFieldAnnotations
public Annotation[] getAllFieldAnnotations(Field field, Locatable srcPos)
- Specified by:
getAllFieldAnnotationsin interfaceAnnotationReader<Type,Class,Field,Method>
-
getMethodAnnotation
public <A extends Annotation> A getMethodAnnotation(Class<A> annotation, Method method, Locatable srcPos)
- Specified by:
getMethodAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
hasMethodAnnotation
public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, Method method)
- Specified by:
hasMethodAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
getAllMethodAnnotations
public Annotation[] getAllMethodAnnotations(Method method, Locatable srcPos)
- Specified by:
getAllMethodAnnotationsin interfaceAnnotationReader<Type,Class,Field,Method>
-
getMethodParameterAnnotation
public <A extends Annotation> A getMethodParameterAnnotation(Class<A> annotation, Method method, int paramIndex, Locatable srcPos)
- Specified by:
getMethodParameterAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
getClassAnnotation
public <A extends Annotation> A getClassAnnotation(Class<A> a, Class clazz, Locatable srcPos)
- Specified by:
getClassAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
getPackageAnnotation
public <A extends Annotation> A getPackageAnnotation(Class<A> a, Class clazz, Locatable srcPos)
- Specified by:
getPackageAnnotationin interfaceAnnotationReader<Type,Class,Field,Method>
-
getClassValue
public Class getClassValue(Annotation a, String name)
- Specified by:
getClassValuein interfaceAnnotationReader<Type,Class,Field,Method>
-
getClassArrayValue
public Class[] getClassArrayValue(Annotation a, String name)
- Specified by:
getClassArrayValuein interfaceAnnotationReader<Type,Class,Field,Method>
-
fullName
protected String fullName(Method m)
Description copied from class:AbstractInlineAnnotationReaderImplGets the fully-qualified name of the method. Used for error messages.
-
-