com.sun.xml.bind.v2.model.annotation
Class RuntimeInlineAnnotationReader

java.lang.Object
  extended by com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
      extended by com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader
All Implemented Interfaces:
com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>, RuntimeAnnotationReader

public final class RuntimeInlineAnnotationReader
extends AbstractInlineAnnotationReaderImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
implements RuntimeAnnotationReader

AnnotationReader that uses java.lang.reflect to read annotations from class files.


Constructor Summary
RuntimeInlineAnnotationReader()
           
 
Method Summary
 java.lang.annotation.Annotation[] getAllFieldAnnotations(java.lang.reflect.Field field, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 java.lang.annotation.Annotation[] getAllMethodAnnotations(java.lang.reflect.Method method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
<A extends java.lang.annotation.Annotation>
A
getClassAnnotation(java.lang.Class<A> a, java.lang.Class clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 java.lang.Class[] getClassArrayValue(java.lang.annotation.Annotation a, java.lang.String name)
           
 java.lang.Class getClassValue(java.lang.annotation.Annotation a, java.lang.String name)
           
<A extends java.lang.annotation.Annotation>
A
getFieldAnnotation(java.lang.Class<A> annotation, java.lang.reflect.Field field, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
<A extends java.lang.annotation.Annotation>
A
getMethodAnnotation(java.lang.Class<A> annotation, java.lang.reflect.Method method, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
<A extends java.lang.annotation.Annotation>
A
getMethodParameterAnnotation(java.lang.Class<A> annotation, java.lang.reflect.Method method, int paramIndex, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
<A extends java.lang.annotation.Annotation>
A
getPackageAnnotation(java.lang.Class<A> a, java.lang.Class clazz, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 boolean hasClassAnnotation(java.lang.Class clazz, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 boolean hasFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.reflect.Field field)
           
 boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.reflect.Method method)
           
 
Methods inherited from class com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl
getErrorHandler, getMethodAnnotation, hasMethodAnnotation, setErrorHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.AnnotationReader
getMethodAnnotation, hasMethodAnnotation, setErrorHandler
 

Constructor Detail

RuntimeInlineAnnotationReader

public RuntimeInlineAnnotationReader()
Method Detail

getFieldAnnotation

public <A extends java.lang.annotation.Annotation> A getFieldAnnotation(java.lang.Class<A> annotation,
                                                                        java.lang.reflect.Field field,
                                                                        com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getFieldAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

hasFieldAnnotation

public boolean hasFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                                  java.lang.reflect.Field field)
Specified by:
hasFieldAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

hasClassAnnotation

public boolean hasClassAnnotation(java.lang.Class clazz,
                                  java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
hasClassAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getAllFieldAnnotations

public java.lang.annotation.Annotation[] getAllFieldAnnotations(java.lang.reflect.Field field,
                                                                com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getAllFieldAnnotations in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getMethodAnnotation

public <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.Class<A> annotation,
                                                                         java.lang.reflect.Method method,
                                                                         com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getMethodAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

hasMethodAnnotation

public boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                                   java.lang.reflect.Method method)
Specified by:
hasMethodAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getAllMethodAnnotations

public java.lang.annotation.Annotation[] getAllMethodAnnotations(java.lang.reflect.Method method,
                                                                 com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getAllMethodAnnotations in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getMethodParameterAnnotation

public <A extends java.lang.annotation.Annotation> A getMethodParameterAnnotation(java.lang.Class<A> annotation,
                                                                                  java.lang.reflect.Method method,
                                                                                  int paramIndex,
                                                                                  com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getMethodParameterAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getClassAnnotation

public <A extends java.lang.annotation.Annotation> A getClassAnnotation(java.lang.Class<A> a,
                                                                        java.lang.Class clazz,
                                                                        com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getClassAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getPackageAnnotation

public <A extends java.lang.annotation.Annotation> A getPackageAnnotation(java.lang.Class<A> a,
                                                                          java.lang.Class clazz,
                                                                          com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getPackageAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getClassValue

public java.lang.Class getClassValue(java.lang.annotation.Annotation a,
                                     java.lang.String name)
Specified by:
getClassValue in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>

getClassArrayValue

public java.lang.Class[] getClassArrayValue(java.lang.annotation.Annotation a,
                                            java.lang.String name)
Specified by:
getClassArrayValue in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>