com.sun.tools.jxc.apt
Class InlineAnnotationReaderImpl

java.lang.Object
  extended by com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration>
      extended by com.sun.tools.jxc.apt.InlineAnnotationReaderImpl
All Implemented Interfaces:
com.sun.xml.bind.v2.model.annotation.AnnotationReader<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration>

public final class InlineAnnotationReaderImpl
extends com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration>

AnnotationReader implementation that reads annotation inline from APT.


Field Summary
static InlineAnnotationReaderImpl theInstance
          The singleton instance.
 
Method Summary
protected  java.lang.String fullName(com.sun.mirror.declaration.MethodDeclaration m)
           
 java.lang.annotation.Annotation[] getAllFieldAnnotations(com.sun.mirror.declaration.FieldDeclaration field, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 java.lang.annotation.Annotation[] getAllMethodAnnotations(com.sun.mirror.declaration.MethodDeclaration method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
<A extends java.lang.annotation.Annotation>
A
getClassAnnotation(java.lang.Class<A> a, com.sun.mirror.declaration.TypeDeclaration clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 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, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
<A extends java.lang.annotation.Annotation>
A
getMethodAnnotation(java.lang.Class<A> a, com.sun.mirror.declaration.MethodDeclaration method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
<A extends java.lang.annotation.Annotation>
A
getMethodParameterAnnotation(java.lang.Class<A> a, com.sun.mirror.declaration.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, com.sun.mirror.declaration.TypeDeclaration clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 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 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
 

Field Detail

theInstance

public static final InlineAnnotationReaderImpl theInstance
The singleton instance.

Method Detail

getClassAnnotation

public <A extends java.lang.annotation.Annotation> A getClassAnnotation(java.lang.Class<A> a,
                                                                        com.sun.mirror.declaration.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,
                                                                        com.sun.mirror.declaration.FieldDeclaration f,
                                                                        com.sun.xml.bind.v2.model.annotation.Locatable srcPos)

hasFieldAnnotation

public boolean hasFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                                  com.sun.mirror.declaration.FieldDeclaration f)

getAllFieldAnnotations

public java.lang.annotation.Annotation[] getAllFieldAnnotations(com.sun.mirror.declaration.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,
                                                                         com.sun.mirror.declaration.MethodDeclaration method,
                                                                         com.sun.xml.bind.v2.model.annotation.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,
                                                                 com.sun.xml.bind.v2.model.annotation.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,
                                                                                  com.sun.xml.bind.v2.model.annotation.Locatable srcPos)

getPackageAnnotation

public <A extends java.lang.annotation.Annotation> A getPackageAnnotation(java.lang.Class<A> a,
                                                                          com.sun.mirror.declaration.TypeDeclaration clazz,
                                                                          com.sun.xml.bind.v2.model.annotation.Locatable srcPos)

getClassValue

public com.sun.mirror.type.TypeMirror getClassValue(java.lang.annotation.Annotation a,
                                                    java.lang.String name)

fullName

protected java.lang.String fullName(com.sun.mirror.declaration.MethodDeclaration m)
Specified by:
fullName in class com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<com.sun.mirror.type.TypeMirror,com.sun.mirror.declaration.TypeDeclaration,com.sun.mirror.declaration.FieldDeclaration,com.sun.mirror.declaration.MethodDeclaration>