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

Method lazyClassInit

src/main/java/org/codehaus/groovy/ast/ClassNode.java:176–187  ·  view source on GitHub ↗

Initializes the complete class structure.

()

Source from the content-addressed store, hash-verified

174 * Initializes the complete class structure.
175 */
176 private void lazyClassInit() {
177 if (lazyInitDone) return;
178 synchronized (lazyInitLock) {
179 if (redirect != null) {
180 throw new GroovyBugError("lazyClassInit called on a proxy ClassNode. " +
181 "A redirect() call is missing somewhere!");
182 }
183 if (lazyInitDone) return;
184 VMPluginFactory.getPlugin().configureClassNode(getCompileUnit(), this);
185 lazyInitDone = true;
186 }
187 }
188
189 // if not null then this instance is resolved
190 protected Class<?> clazz;

Callers 11

getInterfacesMethod · 0.95
getRecordComponentsMethod · 0.95
getFieldsMethod · 0.95
getMethodsMethod · 0.95
getDeclaredFieldMethod · 0.95
getDeclaredMethodsMethod · 0.95
getAnnotationsMethod · 0.95

Calls 3

getPluginMethod · 0.95
getCompileUnitMethod · 0.95
configureClassNodeMethod · 0.65

Tested by

no test coverage detected