MCPcopy Create free account
hub / github.com/apache/groovy / loadClass

Method loadClass

src/main/java/org/codehaus/groovy/tools/RootLoader.java:142–161  ·  view source on GitHub ↗

{@inheritDoc}

(final String name, final boolean resolve)

Source from the content-addressed store, hash-verified

140 * {@inheritDoc}
141 */
142 @Override
143 protected synchronized Class<?> loadClass(final String name, final boolean resolve) throws ClassNotFoundException {
144 Class<?> c = findLoadedClass(name);
145 if (c != null) return c;
146 c = customClasses.get(name);
147 if (c != null) return c;
148
149 try {
150 c = super.findClass(name);
151 } catch (ClassNotFoundException e) {
152 // ignore
153 }
154 if (c == null)
155 c = super.loadClass(name, resolve);
156
157 if (resolve)
158 resolveClass(c);
159
160 return c;
161 }
162
163 /**
164 * {@inheritDoc}

Callers 15

createPluginMethod · 0.45
RootLoaderMethod · 0.45
rootLoaderMethod · 0.45
findByClassLoadingMethod · 0.45
resolveJvmClassMethod · 0.45
loadTransformClassMethod · 0.45
createBuilderStrategyMethod · 0.45
findHelpersMethod · 0.45
getSignaturesFromHintMethod · 0.45
resolveWithResolverMethod · 0.45

Calls 3

getMethod · 0.65
findClassMethod · 0.65
resolveClassMethod · 0.45

Tested by

no test coverage detected