MCPcopy
hub / github.com/cinit/QAuxiliary / loadClass

Method loadClass

app/src/main/java/io/github/qauxv/util/Initiator.java:103–110  ·  view source on GitHub ↗

Load a class, if the class is not found, a ClassNotFoundException will be thrown. @param className The class name. @return The class. @throws ClassNotFoundException If the class is not found.

(String className)

Source from the content-addressed store, hash-verified

101 * @throws ClassNotFoundException If the class is not found.
102 */
103 @NonNull
104 public static Class<?> loadClass(String className) throws ClassNotFoundException {
105 Class<?> ret = load(className);
106 if (ret == null) {
107 throw new ClassNotFoundException(className);
108 }
109 return ret;
110 }
111
112 @NonNull
113 public static Class<?> loadClassEither(@NonNull String... classNames) throws ClassNotFoundException {

Callers 15

getServerTimeMethod · 0.95
getTroopNameMethod · 0.95
sendReplyMsgMethod · 0.95
sendMixedMsgMethod · 0.95
getMsgServiceMethod · 0.95
initLifecycleHooksMethod · 0.95
requireClassMethod · 0.95
initOnceMethod · 0.95
initOnceMethod · 0.95
initOnceMethod · 0.95
initOnceMethod · 0.95

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected