Class LambdaFunc

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

public class LambdaFunc extends Func
  • Constructor Details

    • LambdaFunc

      public LambdaFunc(Value bindings, Value template)
  • Method Details

    • bindings

      public final Value bindings()
    • template

      public final Value template()
    • precedence

      public int precedence()
      Overrides:
      precedence in class Item
    • invoke

      public Item invoke(Value args, Interpreter interpreter, InvokeOperator operator)
      Specified by:
      invoke in class Func
    • 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

      public int compareTo(Item other)
      Specified by:
      compareTo in interface Comparable<Item>
      Specified by:
      compareTo in class Item
    • equals

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

      public int hashCode()
      Specified by:
      hashCode in class Item
    • 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
      Returns:
      the continuation of the output.