|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quattor.pan.CompilerOptions
public class CompilerOptions
Encapsulates the global options for the pan compiler. An instance of this
class must be passed to the Compiler itself. Instances of this
class are immutable and thread-safe.
| Field Summary | |
|---|---|
int |
activeThreadsPerQueue
The number of active threads per task queue to allow. |
java.io.File |
annotationBaseDirectory
Base directory of source files for generation of annotation output files. |
java.io.File |
annotationDirectory
Directory that will contain the annotation output files. |
int |
callDepthLimit
The call depth limit which is used to prevent infinite recursion in the compiler. |
int |
deprecationLevel
Define the deprecation level for compilation. |
boolean |
depWriteEnabled
Indicates whether or not the dependency files for produced machine profiles should be written. |
boolean |
failOnWarn
If set to true, then any warnings will cause the compilation to fail. |
boolean |
forceBuild
Force the build to be done even if no output files are to be written. |
Formatter |
formatter
The Formatter that will be used to format the machine
profiles. |
boolean |
gzipOutput
Indicate whether the produced machine profile should be gzipped. |
int |
iterationLimit
The iteration limit during the compilation to avoid infinite loops. |
java.io.File |
outputDirectory
The directory that will contain the produced machine profiles and dependency files (if any). |
SourceRepository |
sourceRepository
|
boolean |
xmlWriteEnabled
Flag to activate the writing of machine profiles to disk. |
| Constructor Summary | |
|---|---|
CompilerOptions(java.util.List<java.util.regex.Pattern> debugIncludePatterns,
java.util.List<java.util.regex.Pattern> debugExcludePatterns,
boolean xmlWriteEnabled,
boolean depWriteEnabled,
int iterationLimit,
int callDepthLimit,
Formatter formatter,
java.io.File outputDirectory,
java.io.File sessionDirectory,
java.util.List<java.io.File> includeDirectories,
int nthread,
boolean gzipOutput,
int deprecationLevel,
boolean forceBuild,
java.io.File annotationDirectory,
java.io.File annotationBaseDirectory,
boolean failOnWarn)
Construct a CompilerOptions instance to drive a Compiler run. |
|
| Method Summary | |
|---|---|
boolean |
checkDebugEnabled(java.lang.String tplName)
A utility function that checks a given template name against the list of debug include and exclude patterns. |
static CompilerOptions |
createCheckSyntaxOptions(int deprecationLevel,
boolean failOnWarn)
Create a CompilerOptions object that is appropriate for just doing a syntax check. |
java.util.Set<java.io.File> |
resolveFileList(java.util.List<java.lang.String> objectNames,
java.util.Collection<java.io.File> tplFiles)
Resolve a list of object template names and template Files to a set of files based on this instance's include directories and session directory. |
java.lang.String |
toString()
A verbose representation of all of the options in this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final boolean xmlWriteEnabled
Formatter can be used.
public final boolean depWriteEnabled
public final boolean forceBuild
public final int iterationLimit
public final int callDepthLimit
public final Formatter formatter
Formatter that will be used to format the machine
profiles.
public final java.io.File outputDirectory
public final int activeThreadsPerQueue
public final boolean gzipOutput
public final int deprecationLevel
public final boolean failOnWarn
public final SourceRepository sourceRepository
public final java.io.File annotationDirectory
public final java.io.File annotationBaseDirectory
| Constructor Detail |
|---|
public CompilerOptions(java.util.List<java.util.regex.Pattern> debugIncludePatterns,
java.util.List<java.util.regex.Pattern> debugExcludePatterns,
boolean xmlWriteEnabled,
boolean depWriteEnabled,
int iterationLimit,
int callDepthLimit,
Formatter formatter,
java.io.File outputDirectory,
java.io.File sessionDirectory,
java.util.List<java.io.File> includeDirectories,
int nthread,
boolean gzipOutput,
int deprecationLevel,
boolean forceBuild,
java.io.File annotationDirectory,
java.io.File annotationBaseDirectory,
boolean failOnWarn)
debugIncludePatterns - patterns to use to turn on debugging for matching templatesdebugExcludePatterns - patterns to use to turn off debugging for matching templatesxmlWriteEnabled - write machine configuration files (usually XML files)depWriteEnabled - write dependency informationiterationLimit - maximum number of iterations (<=0 unlimited)callDepthLimit - maximum call depth (<=0 unlimited)formatter - format for machine configuration files (cannot be null if
writeXmlEnabled is true)outputDirectory - output directory for machine configuration and dependency
files (cannot be null if either writeXmlEnable or
writeDepEnabled is true)sessionDirectory - session directoryincludeDirectories - list of directories to check for template files; directories
must exist and be absolutenthread - number of threads to use (<=0 uses default value)gzipOutput - gzip produced machine profilesdeprecationLevel - level for deprecation warnings (<0 off, =0 next release, >0
future releases)forceBuild - force build even if no output files are generated if trueannotationDirectory - directory that will contain annotation output filesannotationBaseDirectory - base directory of source files for annotation outputfailOnWarn - if set to true, all warnings will cause compilation to fail| Method Detail |
|---|
public static CompilerOptions createCheckSyntaxOptions(int deprecationLevel,
boolean failOnWarn)
deprecationLevel - set the deprecation level, the higher the level the fewer
deprecation warnings are produced; 0 produces all warningsfailOnWarn - if set to true, all warnings will cause compilation to fail
public java.util.Set<java.io.File> resolveFileList(java.util.List<java.lang.String> objectNames,
java.util.Collection<java.io.File> tplFiles)
objectNames - object template names to lookuptplFiles - template Files to process
public boolean checkDebugEnabled(java.lang.String tplName)
tplName - name of the template to check
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||