Package gnu.bytecode
Class AnnotationEntry.Value
- java.lang.Object
-
- gnu.bytecode.AnnotationEntry.Value
-
- All Implemented Interfaces:
AnnotationValue
- Enclosing class:
- AnnotationEntry
public static class AnnotationEntry.Value extends Object implements AnnotationValue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(AnnotationValueVisitor<R,P> v, P p)
Object
getValue()
Get an Object representing the annotation value.void
print(int indentation, ClassTypeWriter out)
String
toString()
-
-
-
Method Detail
-
getValue
public Object getValue()
Get an Object representing the annotation value. If the kind is 'e', the value is *either* a Field or an 2-element array [ClassName, EnumName] or the actual Enum value. If kind is 'c', the value is *either* a ClassType or a String.- Specified by:
getValue
in interfaceAnnotationValue
-
toString
public String toString()
- Specified by:
toString
in interfaceAnnotationValue
- Overrides:
toString
in classObject
-
accept
public <R,P> R accept(AnnotationValueVisitor<R,P> v, P p)
- Specified by:
accept
in interfaceAnnotationValue
-
print
public void print(int indentation, ClassTypeWriter out)
-
-