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

Method parseToken

code/src/java/plugin/bonustokens/ItemCost.java:28–41  ·  view source on GitHub ↗
(LoadContext context, final String token)

Source from the content-addressed store, hash-verified

26public final class ItemCost extends BonusObj
27{
28 @Override
29 protected boolean parseToken(LoadContext context, final String token)
30 {
31 if (token.startsWith("TYPE="))
32 {
33 addBonusInfo(token.replace('=', '.'));
34 }
35 else
36 {
37 addBonusInfo(token);
38 }
39
40 return true;
41 }
42
43 @Override
44 protected String unparseToken(final Object obj)

Callers

nothing calls this directly

Calls 2

addBonusInfoMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected