Interface BytecodeAnnotationValue
- All Known Implementing Classes:
BytecodeAnnotation,BytecodeAnnotationAnnotationValue,BytecodeArrayAnnotationValue,BytecodeEnumAnnotationValue,BytecodePlainAnnotationValue
public interface BytecodeAnnotationValue
Bytecode annotation value.
All the instances of this class know how to write themselves to the given
AnnotationVisitor. Since the annotation values are not always plain
values, this interface is used to abstract the writing process.- Since:
- 0.3
-
Method Summary
Modifier and TypeMethodDescriptionIterable<org.xembly.Directive>directives(int index, Format format) Convert to directives.voidwriteTo(org.objectweb.asm.AnnotationVisitor visitor) Write the value to the given visitor.
-
Method Details
-
writeTo
void writeTo(org.objectweb.asm.AnnotationVisitor visitor) Write the value to the given visitor.- Parameters:
visitor- Visitor.
-
directives
Convert to directives.- Parameters:
index- Index of the annotation in the list of annotations.format- Format of the directives.- Returns:
- Directives.
-