public static final class AnnotationElement.Annotation extends AnnotationElement.Value
AnnotationElement.Annotation, AnnotationElement.Array, AnnotationElement.Attribute, AnnotationElement.Identifier, AnnotationElement.Literal, AnnotationElement.Value, AnnotationElement.Visitor| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,AnnotationElement.Attribute> |
attributes |
static java.lang.String |
DEFAULT_ATTRIBUTE
Name of default attribute.
|
private java.lang.String |
name |
position, UNKNOWN_POSITION| Constructor and Description |
|---|
Annotation(long pos,
java.lang.String name,
java.util.Map<java.lang.String,AnnotationElement.Attribute> attributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisitor(AnnotationElement.Visitor visitor) |
java.util.Map<java.lang.String,AnnotationElement.Attribute> |
getAttributes() |
AnnotationElement.Value |
getAttributeValue(java.lang.String attributeName) |
AnnotationElement.Value |
getDefaultAttributeValue() |
java.lang.String |
getName() |
AnnotationElement.Annotation |
getValue() |
column, line, makePosition, positionToStringpublic static final java.lang.String DEFAULT_ATTRIBUTE
private final java.lang.String name
private final java.util.Map<java.lang.String,AnnotationElement.Attribute> attributes
public Annotation(long pos,
java.lang.String name,
java.util.Map<java.lang.String,AnnotationElement.Attribute> attributes)
public java.lang.String getName()
public java.util.Map<java.lang.String,AnnotationElement.Attribute> getAttributes()
public AnnotationElement.Annotation getValue()
getValue in class AnnotationElement.Valuepublic AnnotationElement.Value getDefaultAttributeValue()
public AnnotationElement.Value getAttributeValue(java.lang.String attributeName)
public void acceptVisitor(AnnotationElement.Visitor visitor)
acceptVisitor in class AnnotationElement