public static final class AnnotationElement.Annotation extends AnnotationElement.Value
AnnotationElement.Annotation, AnnotationElement.AnnotationTarget, AnnotationElement.Array, AnnotationElement.Attribute, AnnotationElement.AttributeType, AnnotationElement.Identifier, AnnotationElement.Literal, AnnotationElement.Value, AnnotationElement.Visitor
Modifier and Type | Field and Description |
---|---|
static String |
VALUE_DEFAULT_ATTRIBUTE
The name of the default attribute.
|
position, UNKNOWN_POSITION
Constructor and Description |
---|
Annotation(long pos,
String name,
Map<String,AnnotationElement.Attribute> attributes) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(AnnotationElement.Visitor visitor) |
Map<String,AnnotationElement.Attribute> |
getAttributes() |
AnnotationElement.Value |
getAttributeValue(String attributeName) |
AnnotationElement.Value |
getDefaultAttributeValue() |
String |
getName() |
AnnotationElement.Annotation |
getValue() |
String |
toString()
All
Values must override toString() in a sensible manner. |
column, line, makePosition, positionToString
public static final String VALUE_DEFAULT_ATTRIBUTE
public Annotation(long pos, String name, Map<String,AnnotationElement.Attribute> attributes)
public String getName()
public Map<String,AnnotationElement.Attribute> getAttributes()
public AnnotationElement.Annotation getValue()
getValue
in class AnnotationElement.Value
public String toString()
AnnotationElement.Value
Values
must override toString()
in a sensible manner.toString
in class AnnotationElement.Value
public AnnotationElement.Value getDefaultAttributeValue()
public AnnotationElement.Value getAttributeValue(String attributeName)
public void acceptVisitor(AnnotationElement.Visitor visitor)
acceptVisitor
in class AnnotationElement
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.