Class LocalVariable
- java.lang.Object
-
- org.eolang.jeo.representation.bytecode.LocalVariable
-
- All Implemented Interfaces:
BytecodeAttribute
public final class LocalVariable extends Object implements BytecodeAttribute
Local variable attribute. Represents `LocalVariableTable` entry from bytecode attributes.- Since:
- 0.6
-
-
Constructor Summary
Constructors Constructor Description LocalVariable(int index, String name, String descriptor, String signature, BytecodeLabel start, BytecodeLabel end)
Constructor.LocalVariable(org.objectweb.asm.tree.LocalVariableNode variable)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectivesAttribute
directives()
Converts to directives.void
write(org.objectweb.asm.ClassVisitor clazz)
Write to class.void
write(org.objectweb.asm.MethodVisitor method, AsmLabels labels)
Write to method.
-
-
-
Constructor Detail
-
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.- Suppressed Checkstyle violations:
- ParameterNumberCheck (10 lines)
-
-
Method Detail
-
write
public void write(org.objectweb.asm.ClassVisitor clazz)
Description copied from interface:BytecodeAttribute
Write to class.- Specified by:
write
in interfaceBytecodeAttribute
- Parameters:
clazz
- Bytecode where to write.
-
write
public void write(org.objectweb.asm.MethodVisitor method, AsmLabels labels)
Description copied from interface:BytecodeAttribute
Write to method.- Specified by:
write
in interfaceBytecodeAttribute
- Parameters:
method
- Bytecode where to write.labels
- Method labels.
-
directives
public DirectivesAttribute directives()
Description copied from interface:BytecodeAttribute
Converts to directives.- Specified by:
directives
in interfaceBytecodeAttribute
- Returns:
- Directives.
-
-