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

Method addImport

src/main/java/org/codehaus/groovy/ast/ModuleNode.java:212–214  ·  view source on GitHub ↗

Registers a regular import (e.g., import java.util.List). The alias name will be used to reference the imported class. @param name the alias name for this import @param type the ClassNode to import @throws SyntaxException if the name conflicts with an existing declaration

(final String name, final ClassNode type)

Source from the content-addressed store, hash-verified

210 * @throws SyntaxException if the name conflicts with an existing declaration
211 */
212 public void addImport(final String name, final ClassNode type) {
213 addImport(name, type, Collections.emptyList());
214 }
215
216 /**
217 * Registers a regular import with optional annotations.

Callers 2

callMethod · 0.95

Calls 5

checkUsageMethod · 0.95
addMethod · 0.65
removeNodeMetaDataMethod · 0.65
addAnnotationsMethod · 0.45

Tested by

no test coverage detected