Class BinaryOperExpression

Direct Known Subclasses:
ArithmeticExpression, AssignExpression, BitExpression, BooleanExpression, PlusExpression, ShiftExpression, StringPlusExpression

public abstract class BinaryOperExpression extends OperExpression
binary operators includes arithmetic and comparison operators
  • Field Details

  • Constructor Details

  • Method Details

    • bind

      public void bind() throws TypeException
      verify that variables mentioned in this expression are actually available in the supplied bindings list and infer/validate the type of this expression or its subexpressions where possible
      Specified by:
      bind in class Expression
      Throws:
      TypeException - if any variable is missing or has the wrong type
    • getOperand

      public Expression getOperand(int index)
      return the operand with the given index or null if the index is out of range
      Specified by:
      getOperand in class OperExpression
      Parameters:
      index - the index
      Returns:
      the operand with the given index