Class AndExp

All Implemented Interfaces:
XMLSerializable

public final class AndExp extends AggregateConditionExp
"And" expression.
Since:
5.0
  • Constructor Details

    • AndExp

      public AndExp(Object... operands)
  • Method Details

    • evaluateNode

      protected Object evaluateNode(Object o) throws Exception
      Description copied from class: Expression
      Evaluates itself with object, pushing result on the stack.
      Specified by:
      evaluateNode in class Expression
      Throws:
      Exception
    • shallowCopy

      public Expression shallowCopy()
      Creates a copy of this expression node, without copying children.
      Specified by:
      shallowCopy in class Expression
    • setOperands

      public void setOperands(Object... operands)
      Description copied from class: Expression
      Replaces all the operands of this node with the given ones. Called by the constructor and by the parser once all the operands of a node are known, so a node that post-processes its operands overrides this method.
      Overrides:
      setOperands in class Expression
    • getExpressionOperator

      protected String getExpressionOperator(int index)
      Description copied from class: Expression
      Returns the operator printed between the operands, before the operand at the given index.
      Specified by:
      getExpressionOperator in class Expression