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

Method getConstant

code/src/java/pcgen/cdom/enumeration/AspectName.java:95–105  ·  view source on GitHub ↗

Returns the constant for the given String (the search for the constant is case insensitive). If the constant does not already exist, a new Constant is created with the given String as the name of the Constant. @param name The name of the constant to be returned @return The Constant for

(String name)

Source from the content-addressed store, hash-verified

93 * @return The Constant for the given name
94 */
95 public static AspectName getConstant(String name)
96 {
97 initializeNameMap();
98 AspectName aspect = nameMap.get(name);
99 if (aspect == null)
100 {
101 aspect = new AspectName(name);
102 nameMap.put(name, aspect);
103 }
104 return aspect;
105 }
106
107 /**
108 * Thread safe construction of typeMap.

Callers 8

setUpMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
AspectMethod · 0.95
abilityMatchesAspectMethod · 0.95
getRetStringMethod · 0.95
getAspectStringMethod · 0.95
acceptMethod · 0.95

Calls 3

initializeNameMapMethod · 0.95
getMethod · 0.65
putMethod · 0.65

Tested by 3

setUpMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76