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
protected PostOptimizationCompoundAssignmentNormalizer()
public static void exec(JProgram program)
protected JExpression modifyResultOperation(JBinaryOperation op)
CompoundAssignmentNormalizer
lhs 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 CompoundAssignmentNormalizer
protected boolean shouldBreakUp(JBinaryOperation x)
shouldBreakUp
in class CompoundAssignmentNormalizer
protected boolean shouldBreakUp(JPostfixOperation x)
shouldBreakUp
in class CompoundAssignmentNormalizer
protected boolean shouldBreakUp(JPrefixOperation x)
shouldBreakUp
in class CompoundAssignmentNormalizer
Copyright © 2018. All rights reserved.