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
()
| 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. |
no outgoing calls