MCPcopy Create free account
hub / github.com/BaseXdb/basex / forName

Method forName

basex-core/src/main/java/org/basex/util/Reflect.java:60–68  ·  view source on GitHub ↗

Caches and returns a reference to the specified class, or throws an exception. @param name fully qualified class name @return class reference @throws ClassNotFoundException any exception or error

(final String name)

Source from the content-addressed store, hash-verified

58 * @throws ClassNotFoundException any exception or error
59 */
60 public static Class<?> forName(final String name) throws ClassNotFoundException {
61 Class<?> c = CLASSES.get(name);
62 if(c == null) {
63 c = Class.forName(name);
64 if(!Modifier.isPublic(c.getModifiers())) throw new ClassNotFoundException(name);
65 CLASSES.put(name, c);
66 }
67 return c;
68 }
69
70 /**
71 * Caches and returns a reference to the specified field or {@code null}.

Callers 15

availableMethod · 0.95
findMethod · 0.95
responseWithCharsetMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls 2

getMethod · 0.65
putMethod · 0.45

Tested by 8

responseWithCharsetMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64