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

Method process

code/src/java/plugin/lsttokens/choose/NoChoiceToken.java:226–237  ·  view source on GitHub ↗
(LoadContext context, CDOMObject obj)

Source from the content-addressed store, hash-verified

224 }
225
226 @Override
227 public boolean process(LoadContext context, CDOMObject obj)
228 {
229 ChooseInformation<?> ci = obj.get(ObjectKey.CHOOSE_INFO);
230 if ((ci == this) && !obj.getSafe(ObjectKey.STACKS))
231 {
232 Logging.errorPrint("CHOOSE:NOCHOICE requires both MULT:YES and STACK:YES, was STACK:NO on "
233 + obj.getClass().getSimpleName() + ' ' + obj.getKeyName(), obj.getSourceURI());
234 return false;
235 }
236 return true;
237 }
238
239 @Override
240 public Class<CDOMObject> getDeferredTokenClass()

Callers

nothing calls this directly

Calls 6

errorPrintMethod · 0.95
getSafeMethod · 0.80
getSimpleNameMethod · 0.80
getMethod · 0.65
getKeyNameMethod · 0.65
getSourceURIMethod · 0.65

Tested by

no test coverage detected