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

Method parse

code/src/java/plugin/lsttokens/gamemode/BasediceToken.java:24–38  ·  view source on GitHub ↗
(GameMode gameMode, String value, URI source)

Source from the content-addressed store, hash-verified

22 }
23
24 @Override
25 public boolean parse(GameMode gameMode, String value, URI source)
26 {
27 try
28 {
29 SimpleLoader<BaseDice> baseDiceLoader = new SimpleLoader<>(BaseDice.class);
30 baseDiceLoader.parseLine(gameMode.getModeContext(), value, source);
31 return true;
32 }
33 catch (PersistenceLayerException e)
34 {
35 Logging.errorPrint(e.getMessage());
36 return false;
37 }
38 }
39}

Callers

nothing calls this directly

Calls 4

parseLineMethod · 0.95
errorPrintMethod · 0.95
getModeContextMethod · 0.80
getMessageMethod · 0.65

Tested by

no test coverage detected