Class 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 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.