Class LocalVariable
java.lang.Object
org.eolang.jeo.representation.bytecode.LocalVariable
- All Implemented Interfaces:
BytecodeAttribute
Local variable attribute.
Represents `LocalVariableTable` entry from bytecode attributes.
- Since:
- 0.6
-
Constructor Summary
ConstructorsConstructorDescriptionLocalVariable(int index, String name, String descriptor, String signature, BytecodeLabel start, BytecodeLabel end) Constructor.LocalVariable(org.objectweb.asm.tree.LocalVariableNode variable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionConverts to directives.voidwrite(org.objectweb.asm.ClassVisitor clazz) Write to class.voidWrite to method.
-
Constructor Details
-
LocalVariable
public LocalVariable(org.objectweb.asm.tree.LocalVariableNode variable) Constructor.- Parameters:
variable- Local variable node.
-
LocalVariable
public LocalVariable(int index, String name, String descriptor, String signature, BytecodeLabel start, BytecodeLabel end) Constructor.- Parameters:
index- Index of the local variable in the local variable array.name- Name of the local variable.descriptor- Descriptor of the local variable.signature- Signature of the local variable.start- Start label.end- End label.
-
-
Method Details
-
write
public void write(org.objectweb.asm.ClassVisitor clazz) Description copied from interface:BytecodeAttributeWrite to class.- Specified by:
writein interfaceBytecodeAttribute- Parameters:
clazz- Bytecode where to write.
-
write
Description copied from interface:BytecodeAttributeWrite to method.- Specified by:
writein interfaceBytecodeAttribute- Parameters:
method- Bytecode where to write.labels- Method labels.
-
directives
Description copied from interface:BytecodeAttributeConverts to directives.- Specified by:
directivesin interfaceBytecodeAttribute- Returns:
- Directives.
-