Class ExecutionContext.Operand

java.lang.Object
com.hypixel.hytale.server.npc.util.expression.ExecutionContext.Operand
Enclosing class:
ExecutionContext

public static class ExecutionContext.Operand extends Object
Typed operands/arguments/stack elements.

Operands are used as cells of stack machine when evaluating an expression instruction list. An operand should be able to hold any available type of an expression to eliminate the need to switch cells to a new type while (intermediate) results are pushed onto the stack.

  • Field Details

    • type

      public ValueType type
    • string

      public String string
    • number

      public double number
    • bool

      public boolean bool
    • numberArray

      @Nullable public double[] numberArray
    • stringArray

      @Nullable public String[] stringArray
    • boolArray

      @Nullable public boolean[] boolArray
  • Constructor Details

    • Operand

      public Operand()
  • Method Details