mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 19:54:37 +00:00
Try for new getprecontinues method for for detection
This commit is contained in:
@@ -12,12 +12,15 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.graph;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -31,6 +34,8 @@ public class Loop implements Serializable {
|
||||
|
||||
public GraphPart loopPreContinue;
|
||||
|
||||
public Set<GraphPart> backEdges = new HashSet<>();
|
||||
|
||||
public List<GraphPart> breakCandidates = new ArrayList<>();
|
||||
|
||||
public List<Integer> breakCandidatesLevels = new ArrayList<>();
|
||||
@@ -53,7 +58,11 @@ public class Loop implements Serializable {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
public String toString() {
|
||||
Set<String> edgesAsStr = new HashSet<>();
|
||||
for (GraphPart p : backEdges) {
|
||||
edgesAsStr.add(p.toString());
|
||||
}
|
||||
return "loop(id:" + id + (loopPreContinue != null ? ",precontinue:" + loopPreContinue : "") + ",continue:" + loopContinue + ", break:" + loopBreak + ", phase:" + phase + ", backedges: " + String.join(",", edgesAsStr) + ")";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user