Package jminusminus

Class JBooleanBinaryExpression

Direct Known Subclasses:
JComparisonExpression, JEqualOp, JLogicalAndOp, JLogicalOrOp, JNotEqualOp

abstract class JBooleanBinaryExpression extends JBinaryExpression
This abstract base class is the AST node for binary expressions that return booleans.
  • Constructor Details

    • JBooleanBinaryExpression

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

    • codegen

      public void codegen(CLEmitter output)
      Performs code generation for this AST.
      Specified by:
      codegen in class JAST
      Parameters:
      output - the code emitter.