public class ArAnnotation extends Object
Annotation
interface, except that it represents source-level annotations during annotation processing vs.
annotations on actual runtime types.Annotation,
AnnotationMirror| Modifier and Type | Method and Description |
|---|---|
ArClass |
annotationType()
Returns the annotation's type.
|
boolean |
equals(Object o) |
static ArAnnotation |
forAnnotationMirror(AnnotationMirror mirror)
Constructs a new annotation based on the specified mirror.
|
Map<String,?> |
getAnnotationAttributes()
Returns the annotation's attributes and values, including undeclared
attributes with their corresponding default value.
|
Map<String,?> |
getDeclaredAnnotationAttributes()
Returns the annotation's attributes and values.
|
int |
hashCode() |
String |
toString() |
public static ArAnnotation forAnnotationMirror(AnnotationMirror mirror)
mirror - the annotation mirrorpublic ArClass annotationType()
Annotation.annotationType()public Map<String,?> getAnnotationAttributes()
ArClass objects for methods whose return is a java.lang.Class.List<?> for methods whose return type is an array. The values
in this list will be one the other types described here.ArAnnotations for methods that return other annotation types.getDeclaredAnnotationAttributes()public Map<String,?> getDeclaredAnnotationAttributes()
getAnnotationAttributes() for more details.getAnnotationAttributes()