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

Method setSuperClass

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

Sets the super class of this ClassNode. If this ClassNode has a redirect, the super class is set on the redirect instead. Updates the generics usage indicator if the super class uses generics and this is a primary ClassNode. @param superClass the ClassNode representing the super cla

(final ClassNode superClass)

Source from the content-addressed store, hash-verified

552 * @see #isUsingGenerics()
553 */
554 public void setSuperClass(final ClassNode superClass) {
555 if (redirect != null) {
556 redirect.setSuperClass(superClass);
557 } else {
558 this.superClass = superClass;
559 // GROOVY-10763: update generics indicator
560 if (superClass != null && !usesGenerics && isPrimaryNode) {
561 usesGenerics = superClass.isUsingGenerics();
562 }
563 }
564 }
565
566 /**
567 * @return the interfaces implemented by this {@code ClassNode}

Callers 9

ClassNodeMethod · 0.95
transformClassMethod · 0.95
makeEnumNodeMethod · 0.95
visitClassDeclarationMethod · 0.95
testSuperClassMethod · 0.45
reclassifyComponentsMethod · 0.45
configureClassMethod · 0.45
finishedMethod · 0.45

Calls 1

isUsingGenericsMethod · 0.45

Tested by 1

testSuperClassMethod · 0.36