MCPcopy Create free account
hub / github.com/apache/groovy / getOuterClass

Method getOuterClass

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

Returns the outer class of this ClassNode, or null if this is not an inner class. If this ClassNode has a redirect, returns the outer class from the redirect. This method traverses the class hierarchy upward to find the immediately enclosing class. @return the outer {@link ClassNode

()

Source from the content-addressed store, hash-verified

2001 * @see #getOuterClasses()
2002 */
2003 public ClassNode getOuterClass() {
2004 if (redirect != null) {
2005 return redirect.getOuterClass();
2006 }
2007 return null;
2008 }
2009
2010 /**
2011 * Returns a list of all outer classes enclosing this {@link ClassNode} in hierarchical order.

Calls

no outgoing calls

Tested by 1

testOuterClassMethod · 0.36