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

Method parseToken

code/src/java/plugin/bonustokens/SkillPool.java:29–50  ·  view source on GitHub ↗
(LoadContext context, final String token)

Source from the content-addressed store, hash-verified

27public final class SkillPool extends BonusObj
28{
29 @Override
30 protected boolean parseToken(LoadContext context, final String token)
31 {
32 if (token.startsWith(Constants.LST_CLASS))
33 {
34 addBonusInfo(token.replace('=', '.'));
35 }
36 else if (token.startsWith("LEVEL"))
37 {
38 addBonusInfo(token.replace('=', '.'));
39 }
40 else if ("NUMBER".equals(token))
41 {
42 addBonusInfo(token);
43 }
44 else
45 {
46 return false;
47 }
48
49 return true;
50 }
51
52 @Override
53 protected String unparseToken(final Object obj)

Callers

nothing calls this directly

Calls 3

addBonusInfoMethod · 0.80
equalsMethod · 0.65
replaceMethod · 0.45

Tested by

no test coverage detected