org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader that uses java.lang.reflect to
read annotations from class files.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | packageCache
Cache for package-level annotations. |
| Access | Constructor and Description |
|---|---|
| public |
| packageCache | back to summary |
|---|---|
| private final Map<Class<? extends Annotation>, Map<Package, Annotation>> packageCache Cache for package-level annotations. | |
| RuntimeInlineAnnotationReader | back to summary |
|---|---|
| public RuntimeInlineAnnotationReader() Default constructor. | |
| fullName | back to summary |
|---|---|
| protected String fullName(Method m) Implements abstract org. Doc from org. Gets the fully-qualified name of the method. Used for error messages.
| |
| getAllFieldAnnotations | back to summary |
|---|---|
| public Annotation[] getAllFieldAnnotations(Field field, Locatable srcPos) Implements org. Doc from org. Gets all the annotations on a field.
| |
| getAllMethodAnnotations | back to summary |
|---|---|
| public Annotation[] getAllMethodAnnotations(Method method, Locatable srcPos) Implements org. Doc from org. Gets all the annotations on a method.
| |
| getClassAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getClassAnnotation(Class<A> a, Class<T> clazz, Locatable srcPos) Implements org. Doc from org. Reads an annotation on a class.
| |
| getClassArrayValue | back to summary |
|---|---|
| public Class Implements org. Doc from org. Similar to
| |
| getClassValue | back to summary |
|---|---|
| public Class Implements org. Doc from org. Reads a value of an annotation that returns a Class object.
Depending on the underlying reflection library, you can't always
obtain the
| |
| getFieldAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getFieldAnnotation(Class<A> annotation, Field field, Locatable srcPos) Implements org. Doc from org. Reads an annotation on a property that consists of a field.
| |
| getMethodAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getMethodAnnotation(Class<A> annotation, Method method, Locatable srcPos) Implements org.
| |
| getMethodParameterAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getMethodParameterAnnotation(Class<A> annotation, Method method, int paramIndex, Locatable srcPos) Implements org. Doc from org. Reads an annotation on a parameter of the method.
| |
| getPackageAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getPackageAnnotation(Class<A> a, Class<T> clazz, Locatable srcPos) Implements org. Doc from org. Reads an annotation on the package that the given class belongs to.
| |
| hasClassAnnotation | back to summary |
|---|---|
| public boolean hasClassAnnotation(Class<T> clazz, Class<? extends Annotation> annotationType) Implements org. Doc from org. Checks if a class has the annotation.
| |
| hasFieldAnnotation | back to summary |
|---|---|
| public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, Field field) Implements org. Doc from org. Checks if the given field has an annotation.
| |
| hasMethodAnnotation | back to summary |
|---|---|
| public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, Method method) Implements org.
| |