public static class Attribute.Enum extends Attribute
Attribute.Array, Attribute.Class, Attribute.Compound, Attribute.Constant, Attribute.Enum, Attribute.Error, Attribute.RetentionPolicy, Attribute.TypeCompound, Attribute.UnresolvedClass, Attribute.Visitor
Modifier and Type | Field and Description |
---|---|
Symbol.VarSymbol |
value |
Constructor and Description |
---|
Enum(Type type,
Symbol.VarSymbol value) |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(AnnotationValueVisitor<R,P> v,
P p)
Applies a visitor to this value.
|
void |
accept(Attribute.Visitor v) |
Symbol.VarSymbol |
getValue()
Returns the value.
|
String |
toString()
Returns a string representation of this value.
|
getPosition, isSynthesized
public Symbol.VarSymbol value
public Enum(Type type, Symbol.VarSymbol value)
public void accept(Attribute.Visitor v)
public String toString()
AnnotationValue
toString
in interface AnnotationValue
toString
in class Object
public Symbol.VarSymbol getValue()
AnnotationValue
getValue
in interface AnnotationValue
getValue
in class Attribute
public <R,P> R accept(AnnotationValueVisitor<R,P> v, P p)
AnnotationValue
accept
in interface AnnotationValue
accept
in class Attribute
R
- the return type of the visitor's methodsP
- the type of the additional parameter to the visitor's methodsv
- the visitor operating on this valuep
- additional parameter to the visitorCopyright © 2015. All rights reserved.