diff --git a/jode/jode/expr/PrePostFixOperator.java b/jode/jode/expr/PrePostFixOperator.java index e26084d..822e272 100644 --- a/jode/jode/expr/PrePostFixOperator.java +++ b/jode/jode/expr/PrePostFixOperator.java @@ -47,6 +47,16 @@ public class PrePostFixOperator extends Operator { return store.getLValueOperandCount(); } + /** + * Checks if the value of the given expression can change, due to + * side effects in this expression. If this returns false, the + * expression can safely be moved behind the current expresion. + * @param expr the expression that should not change. + */ + public boolean hasSideEffects(Expression expr) { + return store.hasSideEffects(expr); + } + /** * Sets the return type of this operator. */