mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 18:46:12 +00:00
GraphTargetItem.src is readonly (field is private, getter added)
This commit is contained in:
@@ -70,7 +70,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
|
||||
|
||||
public static final int NOPRECEDENCE = 16;
|
||||
|
||||
public GraphSourceItem src;
|
||||
private GraphSourceItem src;
|
||||
|
||||
public int pos = -1;
|
||||
|
||||
@@ -118,6 +118,18 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
|
||||
this.precedence = precedence;
|
||||
}
|
||||
|
||||
public GraphSourceItem getSrc() {
|
||||
return src;
|
||||
}
|
||||
|
||||
protected HighlightData getSrcData() {
|
||||
if (srcData == null) {
|
||||
srcData = new HighlightData();
|
||||
}
|
||||
|
||||
return srcData;
|
||||
}
|
||||
|
||||
public List<GraphSourceItemPos> getNeededSources() {
|
||||
List<GraphSourceItemPos> ret = new ArrayList<>();
|
||||
ret.add(new GraphSourceItemPos(src, pos));
|
||||
@@ -313,12 +325,4 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
|
||||
public GraphTargetItem invert(GraphSourceItem src) {
|
||||
return new NotItem(src, this);
|
||||
}
|
||||
|
||||
protected HighlightData getSrcData() {
|
||||
if (srcData == null) {
|
||||
srcData = new HighlightData();
|
||||
}
|
||||
|
||||
return srcData;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user