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

Method parseToken

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

Source from the content-addressed store, hash-verified

26public final class PointBuy extends BonusObj
27{
28 @Override
29 protected boolean parseToken(LoadContext context, final String token)
30 {
31 if ("POINTS".equals(token))
32 {
33 addBonusInfo(token);
34 return true;
35 }
36 else if ("SPENT".equals(token))
37 {
38 addBonusInfo(token);
39 return true;
40 }
41
42 return false;
43 }
44
45 @Override
46 protected String unparseToken(final Object obj)

Callers

nothing calls this directly

Calls 2

addBonusInfoMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected