Package jminusminus

Class JComparisonExpression

Direct Known Subclasses:
JGreaterEqualOp, JGreaterThanOp, JLessEqualOp, JLessThanOp

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

    • JComparisonExpression

      protected JComparisonExpression(int line, String operator, JExpression lhs, JExpression 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 JExpression analyze(Context context)
      Analyzes and returns a JExpression.
      Specified by:
      analyze in class JExpression
      Parameters:
      context - context in which names are resolved.
      Returns:
      the analyzed (and possibly rewritten) AST subtree.