hasSideEffects

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@428 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent d485db68bb
commit 217df2f36a
  1. 10
      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.
*/

Loading…
Cancel
Save