public final class AnnotationInfo extends Object
Annotation closest to the represented type (the overriding one) is kept.| Modifier and Type | Method and Description |
|---|---|
org.glassfish.hk2.classmodel.reflect.AnnotationModel |
getAnnotation(Class<? extends Annotation> annotationType)
Version of
Class.getAnnotation(Class) also considering
annotations "inherited" from super-types for this
getType(). |
org.glassfish.hk2.classmodel.reflect.AnnotationModel |
getAnnotation(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.AnnotatedElement element)
Version of
AnnotatedElement#getAnnotation(Class) also considering annotations "inherited" from
super-types. |
org.glassfish.hk2.classmodel.reflect.AnnotationModel |
getAnnotation(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.FieldModel field)
Version of
Field.getAnnotation(Class) also considering annotations "inherited" from overridden fields
of super-types. |
org.glassfish.hk2.classmodel.reflect.AnnotationModel |
getAnnotation(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.MethodModel method)
Version of
Method.getAnnotation(Class) also considering annotations "inherited" from overridden methods
of super-types. |
org.glassfish.hk2.classmodel.reflect.AnnotationModel |
getAnnotation(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.Parameter parameter)
Version of
Parameter#getAnnotation(Class) also considering annotations "inherited" from overridden
methods of super-types. |
int |
getAnnotationCount(org.glassfish.hk2.classmodel.reflect.Parameter parameter)
Counts the annotation on a
Parameter including those present on same parameter of an overridden method
should the method be overridden. |
String |
getAnnotationValue(Class<? extends Annotation> annotationType) |
String |
getAnnotationValue(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.AnnotatedElement parameter) |
org.glassfish.hk2.classmodel.reflect.ExtensibleType<? extends org.glassfish.hk2.classmodel.reflect.ExtensibleType> |
getType() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Version of
Class.isAnnotationPresent(Class) also considering annotations "inherited" from super-types. |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.AnnotatedElement element)
Version of
AnnotatedElement#isAnnotationPresent(Class) also considering annotations "inherited" from
super-types. |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.FieldModel field)
Version of
AccessibleObject.isAnnotationPresent(Class) also considering annotations "inherited" from super-types. |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.MethodModel method)
Version of
AccessibleObject.isAnnotationPresent(Class) also considering annotations "inherited" from super-types. |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType,
org.glassfish.hk2.classmodel.reflect.Parameter parameter)
Version of
Parameter#isAnnotationPresent(Class) also considering annotations "inherited" from super-types. |
boolean |
isAnyAnnotationPresent(org.glassfish.hk2.classmodel.reflect.AnnotatedElement element,
Class<? extends Annotation>... annotationTypes) |
static AnnotationInfo |
valueOf(org.glassfish.hk2.classmodel.reflect.ExtensibleType<? extends org.glassfish.hk2.classmodel.reflect.ExtensibleType> type) |
public static AnnotationInfo valueOf(org.glassfish.hk2.classmodel.reflect.ExtensibleType<? extends org.glassfish.hk2.classmodel.reflect.ExtensibleType> type)
public org.glassfish.hk2.classmodel.reflect.ExtensibleType<? extends org.glassfish.hk2.classmodel.reflect.ExtensibleType> getType()
public org.glassfish.hk2.classmodel.reflect.AnnotationModel getAnnotation(Class<? extends Annotation> annotationType)
Class.getAnnotation(Class) also considering
annotations "inherited" from super-types for this
getType().annotationType - annotation type to checknull
otherwisepublic org.glassfish.hk2.classmodel.reflect.AnnotationModel getAnnotation(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.FieldModel field)
Field.getAnnotation(Class) also considering annotations "inherited" from overridden fields
of super-types.public org.glassfish.hk2.classmodel.reflect.AnnotationModel getAnnotation(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.MethodModel method)
Method.getAnnotation(Class) also considering annotations "inherited" from overridden methods
of super-types.public org.glassfish.hk2.classmodel.reflect.AnnotationModel getAnnotation(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.Parameter parameter)
Parameter#getAnnotation(Class) also considering annotations "inherited" from overridden
methods of super-types.public String getAnnotationValue(Class<? extends Annotation> annotationType)
public String getAnnotationValue(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.AnnotatedElement parameter)
public org.glassfish.hk2.classmodel.reflect.AnnotationModel getAnnotation(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.AnnotatedElement element)
AnnotatedElement#getAnnotation(Class) also considering annotations "inherited" from
super-types.public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Class.isAnnotationPresent(Class) also considering annotations "inherited" from super-types.annotationType - annotation type to checkpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.FieldModel field)
AccessibleObject.isAnnotationPresent(Class) also considering annotations "inherited" from super-types.annotationType - annotation type to checkgetType() or any of its super-types.public boolean isAnnotationPresent(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.MethodModel method)
AccessibleObject.isAnnotationPresent(Class) also considering annotations "inherited" from super-types.annotationType - annotation type to checkmethod - the method checked for annotation. The method must be defined or inherited by this
getType() or any of its super-types.public boolean isAnnotationPresent(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.Parameter parameter)
Parameter#isAnnotationPresent(Class) also considering annotations "inherited" from super-types.annotationType - annotation type to checkparameter - the parameter checked for annotations. The parameter must belong to a method defined or
inherited by this getType()public boolean isAnnotationPresent(Class<? extends Annotation> annotationType, org.glassfish.hk2.classmodel.reflect.AnnotatedElement element)
AnnotatedElement#isAnnotationPresent(Class) also considering annotations "inherited" from
super-types.@SafeVarargs public final boolean isAnyAnnotationPresent(org.glassfish.hk2.classmodel.reflect.AnnotatedElement element, Class<? extends Annotation>... annotationTypes)
public int getAnnotationCount(org.glassfish.hk2.classmodel.reflect.Parameter parameter)
Parameter including those present on same parameter of an overridden method
should the method be overridden.parameter - the parameter of which to count annotations forParameter including annotations present on the same
parameter of an potentially overridden method.Copyright © 2020. All rights reserved.