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

Method addToTokenMap

code/src/java/pcgen/io/ExportHandler.java:340–347  ·  view source on GitHub ↗

Add to the token map, called mainly by the plugin loader @param newToken the token to add

(Token newToken)

Source from the content-addressed store, hash-verified

338 * @param newToken the token to add
339 */
340 public static void addToTokenMap(Token newToken)
341 {
342 Token test = TOKEN_MAP.put(newToken.getTokenName(), newToken);
343 if (test != null)
344 {
345 Logging.errorPrint("More than one Output Token has the same Token Name: '" + newToken.getTokenName() + "'");
346 }
347 }
348
349 public static PluginLoader getPluginLoader()
350 {

Callers 3

loadPluginMethod · 0.95
populateTokenMapMethod · 0.95
registerMethod · 0.95

Calls 3

errorPrintMethod · 0.95
putMethod · 0.65
getTokenNameMethod · 0.65

Tested by 1

registerMethod · 0.76