Package org.eolang.opeo.ast
Class OpcodeName
- java.lang.Object
-
- org.eolang.opeo.ast.OpcodeName
-
public final class OpcodeName extends Object
Opcode name. The name of bytecode instruction. The name combined with unique number in order to avoid name collisions.- Since:
- 0.1.0
- To do:
- #65:30min Code duplication with jeo-maven-plugin. This class is a copy of org.eolang.jeo.representation.directives.OpcodeName. It should be moved to jeo-maven-plugin and used from there.
-
-
Constructor Summary
Constructors Constructor Description OpcodeName(int opcode)
Constructor.OpcodeName(String name)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
Get opcode.String
simplified()
Get simplified opcode name without counter.
-
-
-
Constructor Detail
-
OpcodeName
public OpcodeName(String name)
Constructor.- Parameters:
name
- Opcode name.
-
OpcodeName
public OpcodeName(int opcode)
Constructor.- Parameters:
opcode
- Bytecode operation code.
-
-
Method Detail
-
simplified
public String simplified()
Get simplified opcode name without counter.- Returns:
- Simplified opcode name.
-
code
public int code()
Get opcode.- Returns:
- Opcode.
-
-