Package org.codehaus.groovy.control.customizers
package org.codehaus.groovy.control.customizers
Compiler customization framework. Allows modifying compilation behavior through customizers.
-
ClassDescriptionUsers wanting to customize the configuration process such as adding imports, restricting the language features or apply AST transformations by default should implement this class, then call the
CompilerConfiguration.addCompilationCustomizers(CompilationCustomizer...)method.Base class for compilation customizers which delegate to another customizer.This compilation customizer allows adding various types of imports to the compilation unit.Restricts the grammar available to the source being compiled, so that a shell or domain specific language (DSL) offers only a chosen subset of the Groovy language.This interface allows the user to provide a custom expression checker if the dis/allowed expression lists are not sufficientThis interface allows the user to provide a custom statement checker if the dis/allowed statement lists are not sufficientA base class for customizers which only have to be applied on specific source units.