Package org.eolang.jeo.representation
Class OpcodeDictionary
java.lang.Object
org.eolang.jeo.representation.OpcodeDictionary
Opcode dictionary.
This class provides a mapping between opcode numbers and their corresponding names,
allowing for easy retrieval of opcode names by their numbers and vice versa.
- Since:
- 0.12.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for creating an instance with default opcode names and codes. -
Method Summary
-
Constructor Details
-
OpcodeDictionary
public OpcodeDictionary()Constructor for creating an instance with default opcode names and codes.
-
-
Method Details
-
name
Retrieves the opcode name for a given opcode number.- Parameters:
opcode
- Opcode number- Returns:
- Name of the opcode
-
code
Retrieves the opcode name for a given opcode number.- Parameters:
name
- Name of the opcode- Returns:
- Opcode number corresponding to the name
-