com.sun.tools.jxc.apt
Class InlineAnnotationReaderImpl
java.lang.Object
com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>
com.sun.tools.jxc.apt.InlineAnnotationReaderImpl
- All Implemented Interfaces:
- com.sun.xml.bind.v2.model.annotation.AnnotationReader<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>
public final class InlineAnnotationReaderImpl
- extends com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>
AnnotationReader implementation that reads annotation inline from APT.
|
Method Summary |
protected java.lang.String |
fullName(MethodDeclaration m)
|
java.lang.annotation.Annotation[] |
getAllFieldAnnotations(FieldDeclaration field,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
java.lang.annotation.Annotation[] |
getAllMethodAnnotations(MethodDeclaration method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getClassAnnotation(java.lang.Class<A> a,
TypeDeclaration clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
TypeMirror[] |
getClassArrayValue(java.lang.annotation.Annotation a,
java.lang.String name)
|
TypeMirror |
getClassValue(java.lang.annotation.Annotation a,
java.lang.String name)
|
<A extends java.lang.annotation.Annotation>
A |
|
getFieldAnnotation(java.lang.Class<A> a,
FieldDeclaration f,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getMethodAnnotation(java.lang.Class<A> a,
MethodDeclaration method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getMethodParameterAnnotation(java.lang.Class<A> a,
MethodDeclaration m,
int paramIndex,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getPackageAnnotation(java.lang.Class<A> a,
TypeDeclaration clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
boolean |
hasClassAnnotation(TypeDeclaration clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
boolean |
hasFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
FieldDeclaration f)
|
boolean |
hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> a,
MethodDeclaration method)
|
| Methods inherited from class com.sun.xml.bind.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 |
theInstance
public static final InlineAnnotationReaderImpl theInstance
- The singleton instance.
getClassAnnotation
public <A extends java.lang.annotation.Annotation> A getClassAnnotation(java.lang.Class<A> a,
TypeDeclaration clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
getFieldAnnotation
public <A extends java.lang.annotation.Annotation> A getFieldAnnotation(java.lang.Class<A> a,
FieldDeclaration f,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
hasFieldAnnotation
public boolean hasFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
FieldDeclaration f)
hasClassAnnotation
public boolean hasClassAnnotation(TypeDeclaration clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAllFieldAnnotations
public java.lang.annotation.Annotation[] getAllFieldAnnotations(FieldDeclaration field,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
getMethodAnnotation
public <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.Class<A> a,
MethodDeclaration method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
hasMethodAnnotation
public boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> a,
MethodDeclaration method)
getAllMethodAnnotations
public java.lang.annotation.Annotation[] getAllMethodAnnotations(MethodDeclaration method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
getMethodParameterAnnotation
public <A extends java.lang.annotation.Annotation> A getMethodParameterAnnotation(java.lang.Class<A> a,
MethodDeclaration m,
int paramIndex,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
getPackageAnnotation
public <A extends java.lang.annotation.Annotation> A getPackageAnnotation(java.lang.Class<A> a,
TypeDeclaration clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
getClassValue
public TypeMirror getClassValue(java.lang.annotation.Annotation a,
java.lang.String name)
getClassArrayValue
public TypeMirror[] getClassArrayValue(java.lang.annotation.Annotation a,
java.lang.String name)
fullName
protected java.lang.String fullName(MethodDeclaration m)
- Specified by:
fullName in class com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>