org.codehaus.groovy.control.customizers
Class CompilationCustomizer

java.lang.Object
  extended by org.codehaus.groovy.control.CompilationUnit.PrimaryClassNodeOperation
      extended by org.codehaus.groovy.control.customizers.CompilationCustomizer
Direct Known Subclasses:
ImportCustomizer, SecureASTCustomizer

public abstract class CompilationCustomizer
extends CompilationUnit.PrimaryClassNodeOperation

Users 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.

Since:
1.8.0
Author:
Cedric Champeau

Constructor Summary
CompilationCustomizer(CompilePhase phase)
           
 
Method Summary
 CompilePhase getPhase()
           
 
Methods inherited from class org.codehaus.groovy.control.CompilationUnit.PrimaryClassNodeOperation
call, needSortedInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilationCustomizer

public CompilationCustomizer(CompilePhase phase)
Method Detail

getPhase

public CompilePhase getPhase()

Copyright © 2003-2012 The Codehaus. All rights reserved.