com.sun.tools.jxc.apt
Class InlineAnnotationReaderImpl
java.lang.Object
com.sun.tools.jxc.apt.InlineAnnotationReaderImpl
public final class InlineAnnotationReaderImpl
- extends
AnnotationReader implementation that reads annotation inline from APT.
|
Method Summary |
protected java.lang.String |
fullName(com.sun.mirror.declaration.MethodDeclaration m)
|
java.lang.annotation.Annotation[] |
getAllFieldAnnotations(com.sun.mirror.declaration.FieldDeclaration field,
Locatable srcPos)
|
java.lang.annotation.Annotation[] |
getAllMethodAnnotations(com.sun.mirror.declaration.MethodDeclaration method,
Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getClassAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.TypeDeclaration clazz,
Locatable srcPos)
|
com.sun.mirror.type.TypeMirror[] |
getClassArrayValue(java.lang.annotation.Annotation a,
java.lang.String name)
|
com.sun.mirror.type.TypeMirror |
getClassValue(java.lang.annotation.Annotation a,
java.lang.String name)
|
<A extends java.lang.annotation.Annotation>
A |
|
getFieldAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.FieldDeclaration f,
Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getMethodAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.MethodDeclaration method,
Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getMethodParameterAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.MethodDeclaration m,
int paramIndex,
Locatable srcPos)
|
<A extends java.lang.annotation.Annotation>
A |
|
getPackageAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.TypeDeclaration clazz,
Locatable srcPos)
|
boolean |
hasClassAnnotation(com.sun.mirror.declaration.TypeDeclaration clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
boolean |
hasFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
com.sun.mirror.declaration.FieldDeclaration f)
|
boolean |
hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> a,
com.sun.mirror.declaration.MethodDeclaration 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 java.lang.annotation.Annotation> A getClassAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.TypeDeclaration clazz,
Locatable srcPos)
getFieldAnnotation
public <A extends java.lang.annotation.Annotation> A getFieldAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.FieldDeclaration f,
Locatable srcPos)
hasFieldAnnotation
public boolean hasFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
com.sun.mirror.declaration.FieldDeclaration f)
hasClassAnnotation
public boolean hasClassAnnotation(com.sun.mirror.declaration.TypeDeclaration clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAllFieldAnnotations
public java.lang.annotation.Annotation[] getAllFieldAnnotations(com.sun.mirror.declaration.FieldDeclaration field,
Locatable srcPos)
getMethodAnnotation
public <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.MethodDeclaration method,
Locatable srcPos)
hasMethodAnnotation
public boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> a,
com.sun.mirror.declaration.MethodDeclaration method)
getAllMethodAnnotations
public java.lang.annotation.Annotation[] getAllMethodAnnotations(com.sun.mirror.declaration.MethodDeclaration method,
Locatable srcPos)
getMethodParameterAnnotation
public <A extends java.lang.annotation.Annotation> A getMethodParameterAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.MethodDeclaration m,
int paramIndex,
Locatable srcPos)
getPackageAnnotation
public <A extends java.lang.annotation.Annotation> A getPackageAnnotation(java.lang.Class<A> a,
com.sun.mirror.declaration.TypeDeclaration clazz,
Locatable srcPos)
getClassValue
public com.sun.mirror.type.TypeMirror getClassValue(java.lang.annotation.Annotation a,
java.lang.String name)
getClassArrayValue
public com.sun.mirror.type.TypeMirror[] getClassArrayValue(java.lang.annotation.Annotation a,
java.lang.String name)
fullName
protected java.lang.String fullName(com.sun.mirror.declaration.MethodDeclaration m)