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>
AnnotationReaderimplementation that reads annotation inline from Annoation Processing.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Field Summary
Fields Modifier and Type Field Description static InlineAnnotationReaderImpltheInstanceThe singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringfullName(ExecutableElement m)Annotation[]getAllFieldAnnotations(VariableElement field, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)Annotation[]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)TypeMirror[]getClassArrayValue(Annotation a, String name)TypeMirrorgetClassValue(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)
-
-
-
Field Detail
-
theInstance
public static final InlineAnnotationReaderImpl theInstance
The singleton instance.
-
-
Method Detail
-
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
public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, VariableElement f)
-
hasClassAnnotation
public boolean hasClassAnnotation(TypeElement clazz, Class<? extends Annotation> annotationType)
-
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
public boolean hasMethodAnnotation(Class<? extends Annotation> a, ExecutableElement method)
-
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
public TypeMirror getClassValue(Annotation a, String name)
-
getClassArrayValue
public TypeMirror[] getClassArrayValue(Annotation a, String name)
-
fullName
protected String fullName(ExecutableElement m)
- Specified by:
fullNamein classcom.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<TypeMirror,TypeElement,VariableElement,ExecutableElement>
-
-