mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-27 21:55:34 +00:00
41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
package com.jpexs.decompiler.graph.model;
|
|
|
|
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
|
|
import com.jpexs.decompiler.graph.GraphSourceItem;
|
|
import com.jpexs.decompiler.graph.GraphTargetItem;
|
|
import com.jpexs.decompiler.graph.SourceGenerator;
|
|
import java.util.List;
|
|
|
|
/**
|
|
*
|
|
* @author JPEXS
|
|
*/
|
|
public class ContinueItem extends GraphTargetItem {
|
|
|
|
public long loopId;
|
|
|
|
public ContinueItem(GraphSourceItem src, long loopId) {
|
|
super(src, NOPRECEDENCE);
|
|
this.loopId = loopId;
|
|
}
|
|
|
|
@Override
|
|
protected HilightedTextWriter appendTo(HilightedTextWriter writer, LocalData localData) {
|
|
writer.append("continue");
|
|
if (loopId != writer.getNonSwitchLoop()) {
|
|
writer.append(" loop" + loopId);
|
|
}
|
|
return writer;
|
|
}
|
|
|
|
@Override
|
|
public List<GraphSourceItem> toSource(List<Object> localData, SourceGenerator generator) {
|
|
return generator.generate(localData, this);
|
|
}
|
|
|
|
@Override
|
|
public boolean hasReturnValue() {
|
|
return false;
|
|
}
|
|
}
|