Package org.codehaus.groovy.control
Interface CompilationUnit.IGroovyClassOperation
- All Known Implementing Classes:
CompilationUnit.GroovyClassOperation
- Enclosing class:
- CompilationUnit
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Performs an operation for each generated
GroovyClass.-
Method Summary
Modifier and TypeMethodDescriptionvoidcall(GroovyClass groovyClass) Performs the operation for one generated class.default voidApplies this operation to all generated classes in the compilation unit.
-
Method Details
-
call
Performs the operation for one generated class.- Parameters:
groovyClass- the generated class to process- Throws:
CompilationFailedException- if processing fails
-
doPhaseOperation
Applies this operation to all generated classes in the compilation unit.- Parameters:
unit- the compilation unit supplying generated classes- Throws:
CompilationFailedException- if processing fails
-