MCPcopy Index your code
hub / github.com/apache/groovy / forName

Method forName

src/main/java/org/codehaus/groovy/tools/shell/IO.java:248–265  ·  view source on GitHub ↗

Resolves a verbosity level by name. @param name the name to resolve @return the matching verbosity level @throws IllegalArgumentException if the name does not match a known level

(final String name)

Source from the content-addressed store, hash-verified

246 * level
247 */
248 public static Verbosity forName(final String name) {
249 assert name != null;
250
251 if (QUIET.name.equalsIgnoreCase(name)) {
252 return QUIET;
253 }
254 if (INFO.name.equalsIgnoreCase(name)) {
255 return INFO;
256 }
257 if (VERBOSE.name.equalsIgnoreCase(name)) {
258 return VERBOSE;
259 }
260 if (DEBUG.name.equalsIgnoreCase(name)) {
261 return DEBUG;
262 }
263
264 throw new IllegalArgumentException("Invalid verbosity name: " + name);
265 }
266 }
267}

Callers 15

expandGlobMethod · 0.80
classResolverMethod · 0.80
completeMethod · 0.80
evaluateClassMethod · 0.80
visitFileMethod · 0.80
classResolverMethod · 0.80
enableTablesMethod · 0.80
mainMethod · 0.80
nextMethod · 0.80
loadDriverMethod · 0.80

Calls 1

equalsIgnoreCaseMethod · 0.80