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 Details

    • OpcodeName

      public OpcodeName(int opcode)
      Constructor.
      Parameters:
      opcode - Bytecode operation code.
    • OpcodeName

      public OpcodeName(int opcode, AtomicInteger counter)
      Constructor.
      Parameters:
      opcode - Bytecode operation code.
      counter - Opcode counter.
  • Method Details

    • simplified

      public String simplified()
      Get simplified opcode name without counter.
      Returns:
      Simplified opcode name.
    • asString

      public String asString()
      Get string representation of a bytecode.
      Returns:
      String representation of a bytecode.