Class OpcodeName
- java.lang.Object
-
- org.eolang.jeo.representation.directives.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
-
-
Constructor Summary
Constructors Constructor Description OpcodeName(int opcode)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
Get string representation of a bytecode.int
code()
Opcode.String
simplified()
Get simplified opcode name without counter.
-
-
-
Method Detail
-
simplified
public String simplified()
Get simplified opcode name without counter.- Returns:
- Simplified opcode name.
-
code
public int code()
Opcode.- Returns:
- Opcode
- To do:
- #770:35min Get rid of code() method. This method looks like a getter. For now this method should be used by opeo in it/AgentsIT.java. Let's remove code() method, so this class will be getter-free.
-
asString
public String asString()
Get string representation of a bytecode.- Returns:
- String representation of a bytecode.
-
-