MCPcopy Create free account
hub / github.com/PCGen/pcgen / unparseToken

Method unparseToken

code/src/java/plugin/bonustokens/Save.java:86–98  ·  view source on GitHub ↗

Unparse the bonus token. @param obj The object to unparse @return The unparsed string.

(final Object obj)

Source from the content-addressed store, hash-verified

84 * @return The unparsed string.
85 */
86 @Override
87 protected String unparseToken(final Object obj)
88 {
89
90 if (obj.equals(listCheck))
91 {
92 return Constants.LST_PERCENT_LIST;
93 }
94
95 String token = ((CheckInfo) obj).isBase() ? "BASE." : Constants.EMPTY_STRING;
96
97 return token + ((CheckInfo) obj).getPobj().getLSTformat(false);
98 }
99
100 /**
101 * Deals with the CheckInfo.

Callers

nothing calls this directly

Calls 4

isBaseMethod · 0.80
getPobjMethod · 0.80
equalsMethod · 0.65
getLSTformatMethod · 0.65

Tested by

no test coverage detected