abstract class JBooleanBinaryExpression extends JBinaryExpression
lhs, operator, rhs
isStatementExpression, type
compilationUnit, line
Modifier | Constructor and Description |
---|---|
protected |
JBooleanBinaryExpression(int line,
String operator,
JExpression lhs,
JExpression rhs)
Construct an AST node for a boolean binary expression.
|
Modifier and Type | Method and Description |
---|---|
void |
codegen(CLEmitter output)
Generate code for the case where we actually want a boolean value (true
or false) computed onto the stack, eg for assignment to a boolean
variable.
|
writeToStdOut
analyze, codegen, isStatementExpression, type
line, partialCodegen
protected JBooleanBinaryExpression(int line, String operator, JExpression lhs, JExpression rhs)
line
- line in which the boolean binary expression occurs in the
source file.operator
- the boolean binary operator.lhs
- lhs operand.rhs
- rhs operand.public void codegen(CLEmitter output)