Class BinaryOperator

    • Constructor Detail

      • BinaryOperator

        public BinaryOperator()
        Constructor
    • Method Detail

      • getOperatorSymbol

        public abstract String getOperatorSymbol()
        Returns the symbol representing the operator
      • shouldEvaluate

        public boolean shouldEvaluate​(Object pLeft)
        Returns true if evaluation is necessary given the specified Left value. The And/OrOperators make use of this
      • shouldCoerceToBoolean

        public boolean shouldCoerceToBoolean()
        Returns true if the operator expects its arguments to be coerced to Booleans. The And/Or operators set this to true.