MCPcopy Create free account
hub / github.com/atas76/openengine / toString

Method toString

src/main/java/org/fgn/parser/State.java:54–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 }
53
54 @Override
55 public String toString() {
56
57 StringBuilder retVal = new StringBuilder();
58 retVal.append("{");
59 if (space != null) {
60 retVal.append("space: ").append(space.toString());
61 retVal.append(", ");
62 }
63 retVal.append("context: ").append(context.toString());
64 if (isSetPiece()) {
65 retVal.append(", ");
66 retVal.append("set piece");
67 }
68 if (isThrowIn()) {
69 retVal.append(", ");
70 retVal.append("throw in");
71 }
72 if (!isSamePossesion()) {
73 retVal.append(", ");
74 retVal.append("possession change");
75 }
76 retVal.append("}");
77
78 return retVal.toString();
79
80 }
81}

Callers 7

testParsedStatementMethod · 0.45
testUnknownStatesMethod · 0.45
scanMethod · 0.45
getNextTokenMethod · 0.45
getNextTokenMethod · 0.45

Calls 3

isSetPieceMethod · 0.95
isThrowInMethod · 0.95
isSamePossesionMethod · 0.95

Tested by 4

testParsedStatementMethod · 0.36
testUnknownStatesMethod · 0.36