class JLessEqualOp extends JComparison
lhs, operator, rhsisStatementExpression, typecompilationUnit, 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.
|
analyzecodegenwriteToStdOutisStatementExpression, typeline, partialCodegenpublic 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 JExpressionoutput - the code emitter (basically an abstraction for producing the
.class file).targetLabel - target for generated branch instruction.onTrue - should we branch on true?