public final class SimpleAnnotationMirror extends Object implements AnnotationMirror
AnnotationMirror
interface.
This type implements equals(Object)
and hashCode()
using AnnotationMirrors.equivalence()
in accordance with the AnnotationMirror
spec. Some AnnotationMirror
s, however, do not correctly implement equals, you should always compare them
using AnnotationMirrors.equivalence()
anyway.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
DeclaredType |
getAnnotationType() |
Map<ExecutableElement,? extends AnnotationValue> |
getElementValues() |
int |
hashCode() |
static AnnotationMirror |
of(TypeElement annotationType)
An object representing an annotation instance.
|
static AnnotationMirror |
of(TypeElement annotationType,
Map<String,? extends AnnotationValue> namedValues)
An object representing an annotation instance.
|
String |
toString() |
public static AnnotationMirror of(TypeElement annotationType)
annotationType
has any annotation members, they must have default values.public static AnnotationMirror of(TypeElement annotationType, Map<String,? extends AnnotationValue> namedValues)
annotationType
has any annotation members, they must either be present in namedValues
or have default values.public DeclaredType getAnnotationType()
getAnnotationType
in interface AnnotationMirror
public Map<ExecutableElement,? extends AnnotationValue> getElementValues()
getElementValues
in interface AnnotationMirror
Copyright © 2019. All rights reserved.