public abstract class DelegatingCustomizer
extends CompilationCustomizer
implements CompilationUnitAware
Base class for compilation customizers which delegate to another customizer. The phase this customizer runs at is retrieved from the phase of the delegate.
| Modifiers | Name | Description |
|---|---|---|
protected CompilationCustomizer |
delegate |
Customizer that receives delegated callbacks. |
| Constructor and description |
|---|
DelegatingCustomizer(CompilationCustomizer delegate)Creates a delegating customizer backed by another customizer. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
call(SourceUnit source, GeneratorContext context, ClassNode classNode)Delegates customization of the supplied class node. |
|
public void |
setCompilationUnit(CompilationUnit compilationUnit)Forwards the compilation unit to the delegate when it supports the callback. |
| Methods inherited from class | Name |
|---|---|
class CompilationCustomizer |
getPhase |
Customizer that receives delegated callbacks.
Creates a delegating customizer backed by another customizer.
delegate - the customizer to delegate toDelegates customization of the supplied class node.
source - the source unit being compiledcontext - the current generator contextclassNode - the class node being customizedForwards the compilation unit to the delegate when it supports the callback.
compilationUnit - the active compilation unitCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.