Class BitwiseXorOperator

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

public final class BitwiseXorOperator extends BinaryOperator
  • Constructor Details

    • BitwiseXorOperator

      public BitwiseXorOperator(Item lhs, Item rhs)
  • Method Details

    • operator

      public String operator()
      Description copied from class: BinaryOperator
      Returns the token that identifiers this Operator's operation. Used to uniquely identify the type of operation, and to aid serialization.
      Specified by:
      operator in class BinaryOperator
    • precedence

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

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

      public Item substitute(Interpreter interpreter)
      Overrides:
      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
      Returns:
      the continuation of the output.