Class MIntInsn

  • All Implemented Interfaces:
    Serializable, xyz.cofe.collection.ImTree<ByteCode>, xyz.cofe.collection.ImTreeWalk<ByteCode>, ByteCode, MethodByteCode, MethodWriter

    public class MIntInsn
    extends MAbstractBC
    implements MethodWriter
    Visits an instruction with a single int operand.
    opcode the opcode of the instruction to be visited. This opcode is either BIPUSH, SIPUSH or NEWARRAY.
    operand the operand of the instruction to be visited.
    When opcode is BIPUSH, operand value should be between Byte.MIN_VALUE and Byte.MAX_VALUE.
    When opcode is SIPUSH, operand value should be between Short.MIN_VALUE and Short.MAX_VALUE.
    When opcode is NEWARRAY, operand value should be one of Opcodes.T_BOOLEAN, Opcodes.T_CHAR, Opcodes.T_FLOAT, Opcodes.T_DOUBLE, Opcodes.T_BYTE, Opcodes.T_SHORT, Opcodes.T_INT or Opcodes.T_LONG.
    See Also:
    Serialized Form
    • Constructor Detail

      • MIntInsn

        public MIntInsn()
      • MIntInsn

        public MIntInsn​(int op,
                        int operand)
      • MIntInsn

        public MIntInsn​(MIntInsn sample)
    • Method Detail

      • getOpcode

        public int getOpcode()
      • setOpcode

        public void setOpcode​(int opcode)
      • getOperand

        public int getOperand()
      • setOperand

        public void setOperand​(int operand)