public final class SimpleAnnotationMirror
extends java.lang.Object
implements javax.lang.model.element.AnnotationMirror
AnnotationMirror interface.
This type implements equals(Object) and hashCode() using AnnotationMirrors.equivalence() in accordance with the AnnotationMirror spec. Some AnnotationMirrors, however, do not correctly implement equals, you should always compare them
using AnnotationMirrors.equivalence() anyway.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable java.lang.Object other) |
javax.lang.model.type.DeclaredType |
getAnnotationType() |
java.util.Map<javax.lang.model.element.ExecutableElement,? extends javax.lang.model.element.AnnotationValue> |
getElementValues() |
int |
hashCode() |
static javax.lang.model.element.AnnotationMirror |
of(javax.lang.model.element.TypeElement annotationType)
An object representing an annotation instance.
|
static javax.lang.model.element.AnnotationMirror |
of(javax.lang.model.element.TypeElement annotationType,
java.util.Map<java.lang.String,? extends javax.lang.model.element.AnnotationValue> namedValues)
An object representing an annotation instance.
|
java.lang.String |
toString() |
public static javax.lang.model.element.AnnotationMirror of(javax.lang.model.element.TypeElement annotationType)
annotationType has any annotation members, they must have default values.public static javax.lang.model.element.AnnotationMirror of(javax.lang.model.element.TypeElement annotationType,
java.util.Map<java.lang.String,? extends javax.lang.model.element.AnnotationValue> namedValues)
annotationType has any annotation members, they must either be present in namedValues or have default values.public javax.lang.model.type.DeclaredType getAnnotationType()
getAnnotationType in interface javax.lang.model.element.AnnotationMirrorpublic java.util.Map<javax.lang.model.element.ExecutableElement,? extends javax.lang.model.element.AnnotationValue> getElementValues()
getElementValues in interface javax.lang.model.element.AnnotationMirrorpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2021 Google LLC. All Rights Reserved.