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 t
(String name)
| 171 | * @return The Constant for the given name |
| 172 | */ |
| 173 | public static Type getConstant(String name) |
| 174 | { |
| 175 | Type type = TYPE_MAP.get(name); |
| 176 | if (type == null) |
| 177 | { |
| 178 | type = new Type(name); |
| 179 | TYPE_MAP.put(name, type); |
| 180 | } |
| 181 | return type; |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Returns the constant for the given String (the search for the constant is |