|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.control.CompilerConfiguration
Compilation control flags and coordination stuff.
Field Summary | |
static CompilerConfiguration |
DEFAULT
|
protected static boolean |
DEFAULT_JSR_FLAG
Whether to use the JSR parser or not if no property is explicitly stated |
Constructor Summary | |
CompilerConfiguration()
Sets the Flags to defaults. |
|
CompilerConfiguration(Properties configuration)
Sets the Flags to the specified configuration, with defaults for those not supplied. |
Method Summary | |
List |
getClasspath()
Gets the classpath. |
boolean |
getDebug()
Returns true if debugging operation has been requested. |
protected static boolean |
getDefaultJsrFlag()
|
String |
getDefaultScriptExtension()
|
int |
getMinimumRecompilationInterval()
|
PrintWriter |
getOutput()
Gets the currently configured output writer. |
ParserPluginFactory |
getPluginFactory()
|
boolean |
getRecompileGroovySource()
|
String |
getScriptBaseClass()
Gets the name of the base class for scripts. |
String |
getSourceEncoding()
Gets the currently configured source file encoding. |
File |
getTargetDirectory()
Gets the target directory for writing classes. |
int |
getTolerance()
Returns the requested error tolerance. |
boolean |
getVerbose()
Returns true if verbose operation has been requested. |
int |
getWarningLevel()
Gets the currently configured warning level. |
static boolean |
isJsrGroovy()
Returns true if we are the JSR compatible Groovy language |
boolean |
isUseNewGroovy()
Returns true if the new groovy (JSR) parser is enabled |
void |
setClasspath(String classpath)
Sets the classpath. |
void |
setDebug(boolean debug)
Turns debugging operation on or off. |
void |
setDefaultScriptExtension(String defaultScriptExtension)
|
static void |
setJsrGroovy(boolean value)
Should only be called by the JSR parser |
void |
setMinimumRecompilationInterval(int time)
|
void |
setOutput(PrintWriter output)
Sets the output writer. |
void |
setPluginFactory(ParserPluginFactory pluginFactory)
|
void |
setRecompileGroovySource(boolean recompile)
|
void |
setScriptBaseClass(String scriptBaseClass)
Sets the name of the base class for scripts. |
void |
setSourceEncoding(String encoding)
Sets the encoding to be used when reading source files. |
void |
setTargetDirectory(File directory)
Sets the target directory. |
void |
setTargetDirectory(String directory)
Sets the target directory. |
void |
setTolerance(int tolerance)
Sets the error tolerance, which is the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted. |
void |
setUseNewGroovy(boolean useNewGroovy)
|
void |
setVerbose(boolean verbose)
Turns verbose operation on or off. |
void |
setWarningLevel(int level)
Sets the warning level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final CompilerConfiguration DEFAULT
protected static final boolean DEFAULT_JSR_FLAG
Constructor Detail |
public CompilerConfiguration()
public CompilerConfiguration(Properties configuration) throws ConfigurationException
Method Detail |
public int getWarningLevel()
public void setWarningLevel(int level)
public String getSourceEncoding()
public void setSourceEncoding(String encoding)
public PrintWriter getOutput()
public void setOutput(PrintWriter output)
public File getTargetDirectory()
public void setTargetDirectory(String directory)
public void setTargetDirectory(File directory)
public List getClasspath()
public void setClasspath(String classpath)
public boolean getVerbose()
public void setVerbose(boolean verbose)
public boolean getDebug()
public void setDebug(boolean debug)
public int getTolerance()
public void setTolerance(int tolerance)
public String getScriptBaseClass()
public void setScriptBaseClass(String scriptBaseClass)
public boolean isUseNewGroovy()
public void setUseNewGroovy(boolean useNewGroovy)
public ParserPluginFactory getPluginFactory()
public void setPluginFactory(ParserPluginFactory pluginFactory)
public static boolean isJsrGroovy()
public static void setJsrGroovy(boolean value)
protected static boolean getDefaultJsrFlag()
public String getDefaultScriptExtension()
public void setDefaultScriptExtension(String defaultScriptExtension)
public void setRecompileGroovySource(boolean recompile)
public boolean getRecompileGroovySource()
public void setMinimumRecompilationInterval(int time)
public int getMinimumRecompilationInterval()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |