Package gnu.bytecode
Class AnnotationEntry.Value
- java.lang.Object
-
- gnu.bytecode.AnnotationEntry.Value
-
- All Implemented Interfaces:
javax.lang.model.element.AnnotationValue
- Enclosing class:
- AnnotationEntry
public static class AnnotationEntry.Value extends java.lang.Object implements javax.lang.model.element.AnnotationValue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(javax.lang.model.element.AnnotationValueVisitor<R,P> v, P p)java.lang.ObjectgetValue()Get an Object representing the annotation value.voidprint(int indentation, ClassTypeWriter out)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Value
public Value(char kind, Type type, java.lang.Object value)
-
-
Method Detail
-
getValue
public java.lang.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:
getValuein interfacejavax.lang.model.element.AnnotationValue
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejavax.lang.model.element.AnnotationValue- Overrides:
toStringin classjava.lang.Object
-
accept
public <R,P> R accept(javax.lang.model.element.AnnotationValueVisitor<R,P> v, P p)- Specified by:
acceptin interfacejavax.lang.model.element.AnnotationValue
-
print
public void print(int indentation, ClassTypeWriter out)
-
-