Class AddExp

All Implemented Interfaces:
XMLSerializable

public final class AddExp extends ArithmeticExp
"Add" Expression.
Since:
5.0
  • Constructor Details

    • AddExp

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

    • op

      protected BigDecimal op(BigDecimal result, BigDecimal arg)
      Specified by:
      op in class ArithmeticExp
    • shallowCopy

      public Expression shallowCopy()
      Creates a copy of this expression node, without copying children.
      Specified by:
      shallowCopy 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
    • 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