MCPcopy
hub / github.com/apache/groovy / getClass

Method getClass

src/main/java/org/codehaus/groovy/ast/CompileUnit.java:163–168  ·  view source on GitHub ↗

Looks up a class by its fully qualified name, checking both compiled classes and classes pending compilation. Returns null if the name does not exist in the current compilation unit (does not check .class files on classpath). @param name the fully qualified class name @return the {@link Cla

(final String name)

Source from the content-addressed store, hash-verified

161 * @return the {@link ClassNode} or {@code null} if not found in this unit
162 */
163 public ClassNode getClass(final String name) {
164 ClassNode cn = classes.get(name);
165 if (cn == null)
166 cn = classesToCompile.get(name);
167 return cn;
168 }
169
170 /**
171 * Returns the map of classes pending compilation.

Callers 15

getClassNodeMethod · 0.95
getTargetDirectoryMethod · 0.80
ensureNotPresentMethod · 0.80
testClasspath_missingMethod · 0.80
AntBuilderClass · 0.80
doForkCommandLineListMethod · 0.80
runCompilerMethod · 0.80
buildClassLoaderForMethod · 0.80
execGroovyMethod · 0.80

Calls 1

getMethod · 0.65

Tested by 15

getTargetDirectoryMethod · 0.64
ensureNotPresentMethod · 0.64
testClasspath_missingMethod · 0.64
evaluateOutcomeMethod · 0.64
executeMethod · 0.64
shouldFailWithCauseMethod · 0.64
buildExceptionListMethod · 0.64
notYetImplementedMethod · 0.64
setUpTestCaseMethod · 0.64
getDescriptorMethod · 0.64