Class IterLoopRewriter
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.opgraph.op3rewriters.IterLoopRewriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Pair<ConditionalExpression, ConditionalExpression> private static voidrewriteArrayForLoop(Op03SimpleStatement loop, List<Op03SimpleStatement> statements) static voidrewriteArrayForLoops(List<Op03SimpleStatement> statements) private static voidrewriteIteratorWhileLoop(Op03SimpleStatement loop, List<Op03SimpleStatement> statements) static voidrewriteIteratorWhileLoops(List<Op03SimpleStatement> statements)
-
Constructor Details
-
IterLoopRewriter
public IterLoopRewriter()
-
-
Method Details
-
getSplitAnd
private static Pair<ConditionalExpression, ConditionalExpression> getSplitAnd(ConditionalExpression cnd) -
rewriteArrayForLoop
private static void rewriteArrayForLoop(Op03SimpleStatement loop, List<Op03SimpleStatement> statements) -
rewriteArrayForLoops
-
rewriteIteratorWhileLoop
private static void rewriteIteratorWhileLoop(Op03SimpleStatement loop, List<Op03SimpleStatement> statements) -
rewriteIteratorWhileLoops
-