Package com.sun.tools.jxc.ap
Class InlineAnnotationReaderImpl
java.lang.Object
com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<TypeMirror,TypeElement,VariableElement,ExecutableElement>
com.sun.tools.jxc.ap.InlineAnnotationReaderImpl
- All Implemented Interfaces:
com.sun.xml.bind.v2.model.annotation.AnnotationReader<TypeMirror,TypeElement, VariableElement, ExecutableElement>
public final class InlineAnnotationReaderImpl
extends com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<TypeMirror,TypeElement,VariableElement,ExecutableElement>
AnnotationReader implementation that reads annotation inline from Annoation Processing.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAllFieldAnnotations(VariableElement field, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) getAllMethodAnnotations(ExecutableElement method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) <A extends Annotation>
AgetClassAnnotation(Class<A> a, TypeElement clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) getClassArrayValue(Annotation a, String name) getClassValue(Annotation a, String name) <A extends Annotation>
AgetFieldAnnotation(Class<A> a, VariableElement f, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) <A extends Annotation>
AgetMethodAnnotation(Class<A> a, ExecutableElement method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) <A extends Annotation>
AgetMethodParameterAnnotation(Class<A> a, ExecutableElement m, int paramIndex, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) <A extends Annotation>
AgetPackageAnnotation(Class<A> a, TypeElement clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) booleanhasClassAnnotation(TypeElement clazz, Class<? extends Annotation> annotationType) booleanhasFieldAnnotation(Class<? extends Annotation> annotationType, VariableElement f) booleanhasMethodAnnotation(Class<? extends Annotation> a, ExecutableElement method) Methods inherited from class com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl
getErrorHandler, getMethodAnnotation, hasMethodAnnotation, setErrorHandler
-
Field Details
-
theInstance
The singleton instance.
-
-
Method Details
-
getClassAnnotation
public <A extends Annotation> A getClassAnnotation(Class<A> a, TypeElement clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) -
getFieldAnnotation
public <A extends Annotation> A getFieldAnnotation(Class<A> a, VariableElement f, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) -
hasFieldAnnotation
-
hasClassAnnotation
-
getAllFieldAnnotations
public Annotation[] getAllFieldAnnotations(VariableElement field, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) -
getMethodAnnotation
public <A extends Annotation> A getMethodAnnotation(Class<A> a, ExecutableElement method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) -
hasMethodAnnotation
-
getAllMethodAnnotations
public Annotation[] getAllMethodAnnotations(ExecutableElement method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) -
getMethodParameterAnnotation
public <A extends Annotation> A getMethodParameterAnnotation(Class<A> a, ExecutableElement m, int paramIndex, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) -
getPackageAnnotation
public <A extends Annotation> A getPackageAnnotation(Class<A> a, TypeElement clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos) -
getClassValue
-
getClassArrayValue
-
fullName
- Specified by:
fullNamein classcom.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-