Class InvokeOperator

All Implemented Interfaces:
Comparable<Item>, Iterable<Item>, Debug, Display

public final class InvokeOperator extends Operator
  • Constructor Details

    • InvokeOperator

      public InvokeOperator(Value func, Value args)
  • Method Details

    • func

      public Value func()
    • args

      public Value args()
    • state

      public Object state()
    • setState

      public void setState(Object state)
    • isConstant

      public boolean isConstant()
      Description copied from class: Item
      Returns true if this Item always evaluates to the same Item.
      Specified by:
      isConstant in class Item
    • precedence

      public int precedence()
      precedence in class Item
    • evaluate

      public Item evaluate(Interpreter interpreter)
      Specified by:
      evaluate in class Operator
    • substitute

      public Item substitute(Interpreter interpreter)
      substitute in class Item
    • typeOrder

      public int typeOrder()
      Description copied from class: Item
      Returns the heterogeneous sort order of this Item. Used to impose a total order on the set of all items. When comparing two items of different types, the items order according to their typeOrder.
      Specified by:
      typeOrder in class Item
    • compareTo

      protected int compareTo(Operator that)
      Specified by:
      compareTo in class Operator
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class Operator
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Operator
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      Specified by:
      debug in class Item
      the continuation of the output.