Class BytecodeInstruction
java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeInstruction
- All Implemented Interfaces:
BytecodeEntry
Bytecode instruction.
- Since:
- 0.1
-
Constructor Summary
ConstructorsConstructorDescriptionBytecodeInstruction
(int opcode, Object... args) Constructor.BytecodeInstruction
(int opcode, List<Object> args) Constructor. -
Method Summary
-
Constructor Details
-
BytecodeInstruction
Constructor.- Parameters:
opcode
- Opcode.args
- Arguments.
-
BytecodeInstruction
Constructor.- Parameters:
opcode
- Opcode.args
- Arguments.
-
-
Method Details
-
writeTo
public void writeTo(org.objectweb.asm.MethodVisitor visitor) Description copied from interface:BytecodeEntry
Write instruction to the method visitor.- Specified by:
writeTo
in interfaceBytecodeEntry
- Parameters:
visitor
- Method visitor.
-
directives
- Specified by:
directives
in interfaceBytecodeEntry
-
isLabel
public boolean isLabel()- Specified by:
isLabel
in interfaceBytecodeEntry
-
isOpcode
public boolean isOpcode()- Specified by:
isOpcode
in interfaceBytecodeEntry
-
impact
public int impact()Impact of each instruction on the stack.- Specified by:
impact
in interfaceBytecodeEntry
- Returns:
- Stack impact.
-