Class InlinedASTCustomizerFactory

java.lang.Object
groovy.util.AbstractFactory
org.codehaus.groovy.control.customizers.builder.InlinedASTCustomizerFactory
All Implemented Interfaces:
Factory, PostCompletionFactory

public class InlinedASTCustomizerFactory extends AbstractFactory implements PostCompletionFactory
This factory lets a user define a compilation customizer without having to define an anonymous inner class.

Here is an example, which only logs the class name during compilation:

 inline(phase:'CONVERSION') { source, context, classNode ->
     println "visiting $classNode"
 }
 
Since:
2.1.0