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

Method makeClassNode

src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java:522–532  ·  view source on GitHub ↗

Creates or reuses a class node for the supplied runtime and generic type information. @param cu the owning compile unit @param t the reflective type @param c the erased runtime class @return the resolved class node

(final CompileUnit cu, final Type t, final Class<?> c)

Source from the content-addressed store, hash-verified

520 * @return the resolved class node
521 */
522 protected ClassNode makeClassNode(final CompileUnit cu, final Type t, final Class<?> c) {
523 ClassNode back = null;
524 if (cu != null) back = cu.getClass(c.getName());
525 if (back == null) back = ClassHelper.make(c);
526 if (!(t instanceof Class)) {
527 ClassNode front = configureType(t);
528 front.setRedirect(back);
529 return front;
530 }
531 return back.getPlainNodeReference();
532 }
533
534 private Parameter[] makeParameters(final CompileUnit cu, final Type[] types, final Class<?>[] cls, final Annotation[][] parameterAnnotations, final Member member) {
535 Parameter[] params = Parameter.EMPTY_ARRAY;

Callers 6

configureClassNodeMethod · 0.95
makeInterfaceTypesMethod · 0.95
makeClassNodesMethod · 0.95
makeParametersMethod · 0.95
makeRecordComponentsMethod · 0.45

Calls 6

makeMethod · 0.95
configureTypeMethod · 0.95
setRedirectMethod · 0.95
getPlainNodeReferenceMethod · 0.95
getClassMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected