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

Method setInterfaces

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

Sets the interfaces implemented by this ClassNode. If this ClassNode has a redirect, the interfaces are set on the redirect instead. Updates the generics usage indicator if any interface uses generics and this is a primary ClassNode. @param interfaces an array of ClassNode represent

(final ClassNode[] interfaces)

Source from the content-addressed store, hash-verified

598 * @see #isUsingGenerics()
599 */
600 public void setInterfaces(final ClassNode[] interfaces) {
601 if (redirect != null) {
602 redirect.setInterfaces(interfaces);
603 } else {
604 this.interfaces = interfaces;
605 // GROOVY-10763: update generics indicator
606 if (interfaces != null && !usesGenerics && isPrimaryNode) {
607 for (ClassNode anInterface : interfaces) {
608 usesGenerics |= anInterface.isUsingGenerics();
609 }
610 }
611 }
612 }
613
614 /**
615 * @return the mixins associated with this {@code ClassNode}

Callers 10

ClassNodeMethod · 0.95
addInterfaceMethod · 0.95
transformClassMethod · 0.95
visitClassDeclarationMethod · 0.95
testInterfacesMethod · 0.45
makeInterfaceTypesMethod · 0.45
reclassifyComponentsMethod · 0.45
configureClassMethod · 0.45
parseClassSignatureMethod · 0.45

Calls 1

isUsingGenericsMethod · 0.45

Tested by 1

testInterfacesMethod · 0.36