Class BytecodeAnnotationAnnotationValue
java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeAnnotationAnnotationValue
- All Implemented Interfaces:
BytecodeAnnotationValue
public final class BytecodeAnnotationAnnotationValue
extends Object
implements BytecodeAnnotationValue
An annotation value that is itself an annotation.
- Since:
- 0.6
-
Constructor Summary
ConstructorsConstructorDescriptionBytecodeAnnotationAnnotationValue(String name, String descriptor, List<BytecodeAnnotationValue> values) Constructor. -
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.
-
Constructor Details
-
BytecodeAnnotationAnnotationValue
public BytecodeAnnotationAnnotationValue(String name, String descriptor, List<BytecodeAnnotationValue> values) Constructor.- Parameters:
name- The name of the annotation property.descriptor- The descriptor of the annotation.values- The actual annotation values.
-
-
Method Details
-
writeTo
public void writeTo(org.objectweb.asm.AnnotationVisitor visitor) Description copied from interface:BytecodeAnnotationValueWrite the value to the given visitor.- Specified by:
writeToin interfaceBytecodeAnnotationValue- Parameters:
visitor- Visitor.
-
directives
Description copied from interface:BytecodeAnnotationValueConvert to directives.- Specified by:
directivesin interfaceBytecodeAnnotationValue- Parameters:
index- Index of the annotation in the list of annotations.format- Format of the directives.- Returns:
- Directives.
-