Class DelegatingCustomizer
java.lang.Object
org.codehaus.groovy.control.customizers.CompilationCustomizer
org.codehaus.groovy.control.customizers.DelegatingCustomizer
- All Implemented Interfaces:
CompilationUnitAware
,CompilationUnit.IPrimaryClassNodeOperation
- Direct Known Subclasses:
SourceAwareCustomizer
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.
- Since:
- 2.1.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
call
(SourceUnit source, GeneratorContext context, ClassNode classNode) void
setCompilationUnit
(CompilationUnit compilationUnit) Methods inherited from class org.codehaus.groovy.control.customizers.CompilationCustomizer
getPhase
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.groovy.control.CompilationUnit.IPrimaryClassNodeOperation
doPhaseOperation, needSortedInput
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingCustomizer
-
-
Method Details
-
setCompilationUnit
- Specified by:
setCompilationUnit
in interfaceCompilationUnitAware
-
call
public void call(SourceUnit source, GeneratorContext context, ClassNode classNode) throws CompilationFailedException - Specified by:
call
in interfaceCompilationUnit.IPrimaryClassNodeOperation
- Throws:
CompilationFailedException
-