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)
| 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. |