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:
- AnnotationReader<TypeMirror,TypeElement,VariableElement,ExecutableElement>
public final class InlineAnnotationReaderImpl
- extends AbstractInlineAnnotationReaderImpl<TypeMirror,TypeElement,VariableElement,ExecutableElement>
AnnotationReader implementation that reads annotation inline from Annoation Processing.
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
|
Method Summary |
protected String |
fullName(ExecutableElement m)
|
Annotation[] |
getAllFieldAnnotations(VariableElement field,
Locatable srcPos)
|
Annotation[] |
getAllMethodAnnotations(ExecutableElement method,
Locatable srcPos)
|
|
getClassAnnotation(Class<A> a,
TypeElement clazz,
Locatable srcPos)
|
TypeMirror[] |
getClassArrayValue(Annotation a,
String name)
|
TypeMirror |
getClassValue(Annotation a,
String name)
|
|
getFieldAnnotation(Class<A> a,
VariableElement f,
Locatable srcPos)
|
|
getMethodAnnotation(Class<A> a,
ExecutableElement method,
Locatable srcPos)
|
|
getMethodParameterAnnotation(Class<A> a,
ExecutableElement m,
int paramIndex,
Locatable srcPos)
|
|
getPackageAnnotation(Class<A> a,
TypeElement clazz,
Locatable srcPos)
|
boolean |
hasClassAnnotation(TypeElement clazz,
Class<? extends Annotation> annotationType)
|
boolean |
hasFieldAnnotation(Class<? extends Annotation> annotationType,
VariableElement f)
|
boolean |
hasMethodAnnotation(Class<? extends Annotation> a,
ExecutableElement method)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theInstance
public static final InlineAnnotationReaderImpl theInstance
- The singleton instance.
getClassAnnotation
public <A extends Annotation> A getClassAnnotation(Class<A> a,
TypeElement clazz,
Locatable srcPos)
getFieldAnnotation
public <A extends Annotation> A getFieldAnnotation(Class<A> a,
VariableElement f,
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,
Locatable srcPos)
getMethodAnnotation
public <A extends Annotation> A getMethodAnnotation(Class<A> a,
ExecutableElement method,
Locatable srcPos)
hasMethodAnnotation
public boolean hasMethodAnnotation(Class<? extends Annotation> a,
ExecutableElement method)
getAllMethodAnnotations
public Annotation[] getAllMethodAnnotations(ExecutableElement method,
Locatable srcPos)
getMethodParameterAnnotation
public <A extends Annotation> A getMethodParameterAnnotation(Class<A> a,
ExecutableElement m,
int paramIndex,
Locatable srcPos)
getPackageAnnotation
public <A extends Annotation> A getPackageAnnotation(Class<A> a,
TypeElement clazz,
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:
fullName in class AbstractInlineAnnotationReaderImpl<TypeMirror,TypeElement,VariableElement,ExecutableElement>
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.