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

Method parseNonEmptyToken

code/src/java/plugin/lsttokens/ModifyLst.java:59–74  ·  view source on GitHub ↗
(LoadContext context, VarHolder obj, String value)

Source from the content-addressed store, hash-verified

57 }
58
59 @Override
60 public ParseResult parseNonEmptyToken(LoadContext context, VarHolder obj, String value)
61 {
62 try
63 {
64 PCGenScope scope = context.getActiveScope();
65 VarModifier<?> varModifier = parseModifyInfo(context, value, scope,
66 generateFormulaManager(context, scope), getTokenName(), 0);
67 obj.addModifier(varModifier);
68 }
69 catch (ModifyException e)
70 {
71 return new ParseResult.Fail(e.getMessage());
72 }
73 return ParseResult.SUCCESS;
74 }
75
76 /**
77 * Parses the 3 arguments plus associations that are part of a token doing a

Callers

nothing calls this directly

Calls 6

parseModifyInfoMethod · 0.95
getTokenNameMethod · 0.95
getActiveScopeMethod · 0.65
addModifierMethod · 0.65
getMessageMethod · 0.65

Tested by

no test coverage detected