final class Mirrors
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Mirrors() |
Modifier and Type | Method and Description |
---|---|
(package private) static com.google.common.base.Optional<javax.lang.model.element.AnnotationMirror> |
getAnnotationMirror(javax.lang.model.element.Element element,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Get the
AnnotationMirror for the type annotationType present on the given
Element if it exists. |
(package private) static javax.lang.model.element.Name |
getQualifiedName(javax.lang.model.type.DeclaredType type) |
(package private) static com.google.common.collect.ImmutableMap<java.lang.String,javax.lang.model.element.AnnotationValue> |
simplifyAnnotationValueMap(java.util.Map<? extends javax.lang.model.element.ExecutableElement,? extends javax.lang.model.element.AnnotationValue> annotationValueMap)
Returns an annotation value map with
String keys instead of ExecutableElement
instances. |
static javax.lang.model.element.Name getQualifiedName(javax.lang.model.type.DeclaredType type)
static com.google.common.collect.ImmutableMap<java.lang.String,javax.lang.model.element.AnnotationValue> simplifyAnnotationValueMap(java.util.Map<? extends javax.lang.model.element.ExecutableElement,? extends javax.lang.model.element.AnnotationValue> annotationValueMap)
String
keys instead of ExecutableElement
instances.static com.google.common.base.Optional<javax.lang.model.element.AnnotationMirror> getAnnotationMirror(javax.lang.model.element.Element element, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotationMirror
for the type annotationType
present on the given
Element
if it exists.