Class BinaryOperator

    • Constructor Detail

      • BinaryOperator

        public BinaryOperator​(Item lhs,
                              Item rhs)
    • Method Detail

      • lhs

        public final Item lhs()
      • operator

        public abstract String operator()
        Returns the token that identifiers this Operator's operation. Used to uniquely identify the type of operation, and to aid serialization.
      • rhs

        public final Item rhs()
      • 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