public class InnerClassCompletionVisitor
extends InnerClassVisitorHelper
Completes the transformation of inner classes by adding synthetic fields and constructor parameters needed to maintain references to outer class instances. This visitor is run after InnerClassVisitor to finalize inner class construction.
| Constructor and description |
|---|
InnerClassCompletionVisitor(CompilationUnit cu, SourceUnit su)Creates a new inner class completion visitor. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected SourceUnit |
getSourceUnit()* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
|
|
public void |
visitClass(ClassNode node)* Visits a ClassNode, processing its annotations, package, imports, contents, and object initializers. * *
|
|
public void |
visitConstructor(ConstructorNode node)* Visits a ConstructorNode, processing its annotations, parameter annotations, and code block. * *
|
Creates a new inner class completion visitor.
cu - the compilation unit (currently unused but kept for API compatibility)su - the source unit for error reporting* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
* Visits a ClassNode, processing its annotations, package, imports, contents, and object initializers. * *
node - the class node to visit* Visits a ConstructorNode, processing its annotations, parameter annotations, and code block. * *
node - the constructor node to visitCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.