AnnotationMirror instances.
| Modifier and Type | Field and Description |
|---|---|
| private static final Equivalence |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Equivalence | equivalence()
Returns an |
| public static ImmutableSet | getAnnotatedAnnotations(Element element, Class<? extends Annotation> annotationClass)
Returns all annotations that are present on the given |
| public static ImmutableSet | getAnnotatedAnnotations(Element element, TypeElement annotation)
Returns all annotations that are present on the given |
| public static ImmutableSet | getAnnotatedAnnotations(Element element, String annotationName)
Returns all annotations that are present on the given |
| public static Map. | getAnnotationElementAndValue(AnnotationMirror annotationMirror, final String elementName)
Returns a |
| public static AnnotationValue | getAnnotationValue(AnnotationMirror annotationMirror, String elementName)
Returns an |
| public static ImmutableMap | getAnnotationValuesWithDefaults(AnnotationMirror annotation)
Returns the |
| public static String | toString(AnnotationMirror annotationMirror)
Returns a string representation of the given annotation mirror, suitable for inclusion in a Java source file to reproduce the annotation in source form. |
| ANNOTATION_MIRROR_EQUIVALENCE | back to summary |
|---|---|
| private static final Equivalence<AnnotationMirror> ANNOTATION_MIRROR_EQUIVALENCE | |
| AnnotationMirrors | back to summary |
|---|---|
| private AnnotationMirrors() | |
| equivalence | back to summary |
|---|---|
| public static Equivalence Returns an | |
| getAnnotatedAnnotations | back to summary |
|---|---|
| public static ImmutableSet Returns all annotations that are present on the given | |
| getAnnotatedAnnotations | back to summary |
|---|---|
| public static ImmutableSet Returns all annotations that are present on the given | |
| getAnnotatedAnnotations | back to summary |
|---|---|
| public static ImmutableSet Returns all annotations that are present on the given | |
| getAnnotationElementAndValue | back to summary |
|---|---|
| public static Map. Returns a
| |
| getAnnotationValue | back to summary |
|---|---|
| public static AnnotationValue getAnnotationValue(AnnotationMirror annotationMirror, String elementName) Returns an
| |
| getAnnotationValuesWithDefaults | back to summary |
|---|---|
| public static ImmutableMap Returns the The iteration order of elements of the returned map will be the order in which the | |
| toString | back to summary |
|---|---|
| public static String toString(AnnotationMirror annotationMirror) Returns a string representation of the given annotation mirror, suitable for inclusion in a Java source file to reproduce the annotation in source form. Fully qualified names are used for types in annotations, class literals, and enum constants, ensuring that the source form will compile without requiring additional imports. | |