com.sun.tools.jxc.apt

Class InlineAnnotationReaderImpl

public final class InlineAnnotationReaderImpl extends AbstractInlineAnnotationReaderImpl<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>

AnnotationReader implementation that reads annotation inline from APT.
Field Summary
static InlineAnnotationReaderImpltheInstance
The singleton instance.
Method Summary
protected StringfullName(MethodDeclaration m)
Annotation[]getAllFieldAnnotations(FieldDeclaration field, Locatable srcPos)
Annotation[]getAllMethodAnnotations(MethodDeclaration method, Locatable srcPos)
<A extends Annotation> AgetClassAnnotation(Class<A> a, TypeDeclaration clazz, Locatable srcPos)
TypeMirror[]getClassArrayValue(Annotation a, String name)
TypeMirrorgetClassValue(Annotation a, String name)
<A extends Annotation> AgetFieldAnnotation(Class<A> a, FieldDeclaration f, Locatable srcPos)
<A extends Annotation> AgetMethodAnnotation(Class<A> a, MethodDeclaration method, Locatable srcPos)
<A extends Annotation> AgetMethodParameterAnnotation(Class<A> a, MethodDeclaration m, int paramIndex, Locatable srcPos)
<A extends Annotation> AgetPackageAnnotation(Class<A> a, TypeDeclaration clazz, Locatable srcPos)
booleanhasClassAnnotation(TypeDeclaration clazz, Class<? extends Annotation> annotationType)
booleanhasFieldAnnotation(Class<? extends Annotation> annotationType, FieldDeclaration f)
booleanhasMethodAnnotation(Class<? extends Annotation> a, MethodDeclaration method)

Field Detail

theInstance

public static final InlineAnnotationReaderImpl theInstance
The singleton instance.

Method Detail

fullName

protected String fullName(MethodDeclaration m)

getAllFieldAnnotations

public Annotation[] getAllFieldAnnotations(FieldDeclaration field, Locatable srcPos)

getAllMethodAnnotations

public Annotation[] getAllMethodAnnotations(MethodDeclaration method, Locatable srcPos)

getClassAnnotation

public <A extends Annotation> A getClassAnnotation(Class<A> a, TypeDeclaration clazz, Locatable srcPos)

getClassArrayValue

public TypeMirror[] getClassArrayValue(Annotation a, String name)

getClassValue

public TypeMirror getClassValue(Annotation a, String name)

getFieldAnnotation

public <A extends Annotation> A getFieldAnnotation(Class<A> a, FieldDeclaration f, Locatable srcPos)

getMethodAnnotation

public <A extends Annotation> A getMethodAnnotation(Class<A> a, MethodDeclaration method, Locatable srcPos)

getMethodParameterAnnotation

public <A extends Annotation> A getMethodParameterAnnotation(Class<A> a, MethodDeclaration m, int paramIndex, Locatable srcPos)

getPackageAnnotation

public <A extends Annotation> A getPackageAnnotation(Class<A> a, TypeDeclaration clazz, Locatable srcPos)

hasClassAnnotation

public boolean hasClassAnnotation(TypeDeclaration clazz, Class<? extends Annotation> annotationType)

hasFieldAnnotation

public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, FieldDeclaration f)

hasMethodAnnotation

public boolean hasMethodAnnotation(Class<? extends Annotation> a, MethodDeclaration method)