Class AnnotationElement.Annotation
- java.lang.Object
-
- org.infinispan.protostream.descriptors.AnnotationElement
-
- org.infinispan.protostream.descriptors.AnnotationElement.Value
-
- org.infinispan.protostream.descriptors.AnnotationElement.Annotation
-
- Enclosing class:
- AnnotationElement
public static final class AnnotationElement.Annotation extends AnnotationElement.Value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.infinispan.protostream.descriptors.AnnotationElement
AnnotationElement.Annotation, AnnotationElement.AnnotationTarget, AnnotationElement.Array, AnnotationElement.Attribute, AnnotationElement.AttributeType, AnnotationElement.Identifier, AnnotationElement.Literal, AnnotationElement.Value, AnnotationElement.Visitor
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_DEFAULT_ATTRIBUTE
The name of the default attribute.-
Fields inherited from class org.infinispan.protostream.descriptors.AnnotationElement
position, UNKNOWN_POSITION
-
-
Constructor Summary
Constructors Constructor Description Annotation(long pos, String name, Map<String,AnnotationElement.Attribute> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(AnnotationElement.Visitor visitor)
Map<String,AnnotationElement.Attribute>
getAttributes()
AnnotationElement.Value
getAttributeValue(String attributeName)
AnnotationElement.Value
getDefaultAttributeValue()
String
getName()
String
getPackageName()
AnnotationElement.Annotation
getValue()
String
toString()
AllValues
must overridetoString()
in a sensible manner.-
Methods inherited from class org.infinispan.protostream.descriptors.AnnotationElement
column, line, makePosition, positionToString
-
-
-
-
Field Detail
-
VALUE_DEFAULT_ATTRIBUTE
public static final String VALUE_DEFAULT_ATTRIBUTE
The name of the default attribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Annotation
public Annotation(long pos, String name, Map<String,AnnotationElement.Attribute> attributes)
-
-
Method Detail
-
getName
public String getName()
-
getPackageName
public String getPackageName()
-
getAttributes
public Map<String,AnnotationElement.Attribute> getAttributes()
-
getValue
public AnnotationElement.Annotation getValue()
- Specified by:
getValue
in classAnnotationElement.Value
-
toString
public String toString()
Description copied from class:AnnotationElement.Value
AllValues
must overridetoString()
in a sensible manner.- Specified by:
toString
in classAnnotationElement.Value
-
getDefaultAttributeValue
public AnnotationElement.Value getDefaultAttributeValue()
-
getAttributeValue
public AnnotationElement.Value getAttributeValue(String attributeName)
-
acceptVisitor
public void acceptVisitor(AnnotationElement.Visitor visitor)
- Overrides:
acceptVisitor
in classAnnotationElement
-
-