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

Method getTokenMap

code/src/java/pcgen/persistence/lst/TokenStore.java:129–138  ·  view source on GitHub ↗

Get the token map @param tokInterface @return the token map

(Class<? extends LstToken> tokInterface)

Source from the content-addressed store, hash-verified

127 * @return the token map
128 */
129 public Map<String, LstToken> getTokenMap(Class<? extends LstToken> tokInterface)
130 {
131 Map<String, LstToken> tokenMap = tokenTypeMap.get(tokInterface);
132 if (tokenMap == null)
133 {
134 tokenMap = new HashMap<>();
135 tokenTypeMap.put(tokInterface, tokenMap);
136 }
137 return tokenMap;
138 }
139}

Callers 7

addToTokenMapMethod · 0.95
parseLineMethod · 0.80
parseLineMethod · 0.80
parseLineMethod · 0.80
parseLineMethod · 0.80
parseMiscGameInfoLineMethod · 0.80
parseLineMethod · 0.80

Calls 2

getMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected