
public class PostOptimizationCompoundAssignmentNormalizer extends CompoundAssignmentNormalizer
| Modifier | Constructor and Description |
|---|---|
protected |
PostOptimizationCompoundAssignmentNormalizer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exec(JProgram program) |
protected JExpression |
modifyResultOperation(JBinaryOperation op)
Decide what expression to return when breaking up a compound assignment of
the form
lhs op= rhs. |
protected boolean |
shouldBreakUp(JBinaryOperation x) |
protected boolean |
shouldBreakUp(JPostfixOperation x) |
protected boolean |
shouldBreakUp(JPrefixOperation x) |
accept, expressionToReturn, newTemporaryLocalNameprotected PostOptimizationCompoundAssignmentNormalizer()
public static void exec(JProgram program)
protected JExpression modifyResultOperation(JBinaryOperation op)
CompoundAssignmentNormalizerlhs op= rhs. The breakup creates an expression of the
form lhs = lhs op rhs, and the right hand side of the newly
created expression is passed to this method.modifyResultOperation in class CompoundAssignmentNormalizerprotected boolean shouldBreakUp(JBinaryOperation x)
shouldBreakUp in class CompoundAssignmentNormalizerprotected boolean shouldBreakUp(JPostfixOperation x)
shouldBreakUp in class CompoundAssignmentNormalizerprotected boolean shouldBreakUp(JPrefixOperation x)
shouldBreakUp in class CompoundAssignmentNormalizerCopyright © 2018. All rights reserved.