Package jminusminus
Class JBooleanBinaryExpression
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JExpression
jminusminus.JBinaryExpression
jminusminus.JBooleanBinaryExpression
- Direct Known Subclasses:
JComparisonExpression
,JEqualOp
,JLogicalAndOp
,JLogicalOrOp
,JNotEqualOp
This abstract base class is the AST node for binary expressions that return booleans.
-
Field Summary
Fields inherited from class jminusminus.JBinaryExpression
lhs, operator, rhs
Fields inherited from class jminusminus.JExpression
isStatementExpression, type
Fields inherited from class jminusminus.JAST
compilationUnit, line
-
Constructor Summary
ModifierConstructorDescriptionprotected
JBooleanBinaryExpression
(int line, String operator, JExpression lhs, JExpression rhs) Constructs an AST node for a boolean binary expression. -
Method Summary
Methods inherited from class jminusminus.JBinaryExpression
toJSON
Methods inherited from class jminusminus.JExpression
analyze, codegen, isStatementExpression, type
Methods inherited from class jminusminus.JAST
line, partialCodegen, unescape
-
Constructor Details
-
JBooleanBinaryExpression
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