class JLessEqualOp extends JComparison
lhs, operator, rhs
isStatementExpression, type
compilationUnit, line
Constructor and Description |
---|
JLessEqualOp(int line,
JExpression lhs,
JExpression rhs)
Construct an AST node for a less-than-or-equal-to expression given its
line number, and the lhs and rhs operands.
|
Modifier and Type | Method and Description |
---|---|
void |
codegen(CLEmitter output,
String targetLabel,
boolean onTrue)
Branching code generation for <= operation.
|
analyze
codegen
writeToStdOut
isStatementExpression, type
line, partialCodegen
public JLessEqualOp(int line, JExpression lhs, JExpression rhs)
line
- line in which the less-than-or-equal-to expression occurs in
the source file.lhs
- lhs operand.rhs
- rhs operand.public void codegen(CLEmitter output, String targetLabel, boolean onTrue)
codegen
in class JExpression
output
- the code emitter (basically an abstraction for producing the
.class file).targetLabel
- target for generated branch instruction.onTrue
- should we branch on true?