MCPcopy Create free account
hub / github.com/badvision/jace / apply

Method apply

src/main/java/jace/state/State.java:79–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 public void apply() {
80 Set<ObjectGraphNode> applied = new LinkedHashSet<>();
81 State current = this;
82 while (current != null) {
83 for (StateValue val : current.values()) {
84 if (!applied.contains(val.node)) {
85 System.out.print(val.node.parent.parent != null ? val.node.parent.parent.name + "." : "");
86 System.out.print(val.node.parent != null ? val.node.parent.name + "." : "");
87 System.out.print(val.node.name);
88 System.out.print("==");
89 System.out.println(val.value == null ? "NULL" : val.value.getClass().toString());
90 val.node.setCurrentValue(val.value);
91 applied.add(val.node);
92 }
93 }
94 if (!current.deltaState) {
95 current = null;
96 } else {
97 current = current.previousState;
98 }
99 }
100 }
101}

Callers 15

rewindMethod · 0.95
codemirror.jsFile · 0.80
operationFunction · 0.80
methodOpFunction · 0.80
docMethodOpFunction · 0.80
removeReadOnlyRangesFunction · 0.80
bndFunction · 0.80
bindFunction · 0.80
startServerFunction · 0.80
connectButtonsMethod · 0.80
whileSuspendedMethod · 0.80
withComputerMethod · 0.80

Calls 3

addMethod · 0.80
toStringMethod · 0.45
setCurrentValueMethod · 0.45

Tested by

no test coverage detected