Package iota

Class IComparisonExpression

Direct Known Subclasses:
IGreaterEqualOp, IGreaterThanOp, ILessEqualOp, ILessThanOp

abstract class IComparisonExpression extends IBooleanBinaryExpression
This abstract base class is the AST node for a comparison expression.
  • Constructor Details

    • IComparisonExpression

      protected IComparisonExpression(int line, String operator, IExpression lhs, IExpression rhs)
      Constructs an AST node for a comparison expression.
      Parameters:
      line - line in which the expression occurs in the source file.
      operator - the comparison operator.
      lhs - the lhs operand.
      rhs - the rhs operand.
  • Method Details

    • analyze

      public IExpression analyze(Context context)
      Analyzes and returns an IExpression.
      Specified by:
      analyze in class IExpression
      Parameters:
      context - context in which names are resolved.
      Returns:
      the analyzed (and possibly rewritten) AST subtree.