Class IntVal

  • All Implemented Interfaces:
    HostResult

    public class IntVal
    extends Val
    Val to hold an int number used in StackMachine operations.

    This val will be never used out of the stack machine.

    • Constructor Detail

      • IntVal

        public IntVal​(Vm vm,
                      int num)
        Constructs an int val.
        Parameters:
        vm - the vm.
        num - the int num.
    • Method Detail

      • getInt

        public int getInt()
        Returns the int number.
        Returns:
        the int num.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object