| Modifier and Type | Field and Description |
|---|---|
protected List<JAXXCompilerFile> |
compilingFiles
Files to compile
|
protected CompilerConfiguration |
configuration
configuration of the launchor and underlines compilers
|
protected JAXXEngineTask |
currentTask
current pass of the engine
|
protected List<String> |
errors
Errors detected while running.
|
protected JAXXCompilerFile[] |
incomingFiles
original list of files to compile (says the detected modfied files)
|
protected JAXXProfile |
profiler
profile attached to the engine (can be null)
|
protected JAXXEngineTask[] |
tasks
tasks to launch
|
protected List<String> |
warnings
Warnings detected while running.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JAXXEngine(CompilerConfiguration configuration,
File base,
String... relativePaths) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String error)
Add an error to the engine.
|
void |
addFileToCompile(File jaxxFile,
String jaxxClassName)
Adds a
JAXXCompilerFile given the jaxx file and the
corresponding class fully qualified name. |
void |
addFileToCompile(JAXXCompilerFile file)
Adds a
file to be compiled. |
void |
addProfileTime(JAXXCompiler compiler,
String key)
Add a profile time for the given compiler and key.
|
void |
addWarning(String warning)
Add a warning to the engine.
|
void |
clearReports() |
boolean |
containsJaxxFileClassName(String className) |
void |
flushI18nGetterFile() |
JAXXCompilerFile[] |
getCompiledFiles() |
CompilerConfiguration |
getConfiguration() |
CompiledObjectDecorator |
getDecorator(Class<?> type)
Obtain the decorator of the given type.
|
CompiledObjectDecorator |
getDecorator(String name)
Obtain the decorator of the given name.
|
List<String> |
getErrors() |
JAXXCompilerFile[] |
getFilesToCompile() |
JAXXCompiler |
getJAXXCompiler(String className)
Obtain the jaxx compiler of the given class name.
|
JAXXCompilerFile |
getJAXXCompilerFile(String className)
Obtain the jaxx compiler of the given class name.
|
JAXXProfile |
getProfiler() |
JAXXEngineTask[] |
getTasks() |
Class<?> |
getValidatorFactory() |
ClassDescriptor |
getValidatorFactoryClass() |
String |
getVersion() |
List<String> |
getWarnings() |
boolean |
isCompileFirstPassTask() |
boolean |
isVerbose() |
JAXXCompiler |
newCompiler(JAXXCompilerFile jaxxFile)
Create a new compiler and attach it to the given
jaxxFile. |
void |
registerI18nKey(String key) |
protected void |
reset(boolean cleanReports)
Resets all state in preparation for a new compilation session.
|
int |
run()
Compiled a set of files.
|
protected final CompilerConfiguration configuration
protected final JAXXCompilerFile[] incomingFiles
protected final List<JAXXCompilerFile> compilingFiles
protected JAXXEngineTask[] tasks
protected JAXXEngineTask currentTask
protected JAXXProfile profiler
protected JAXXEngine(CompilerConfiguration configuration, File base, String... relativePaths)
public JAXXEngineTask[] getTasks()
public JAXXProfile getProfiler()
public CompilerConfiguration getConfiguration()
public JAXXCompilerFile[] getFilesToCompile()
public JAXXCompilerFile[] getCompiledFiles()
public boolean containsJaxxFileClassName(String className)
public boolean isCompileFirstPassTask()
protected void reset(boolean cleanReports)
public void clearReports()
public String getVersion()
public JAXXCompilerFile getJAXXCompilerFile(String className)
className - the name of the class to usepublic JAXXCompiler getJAXXCompiler(String className)
className - the name of the class to usepublic CompiledObjectDecorator getDecorator(String name) throws IllegalArgumentException
name - the name of the decoratorIllegalArgumentException - if decorator not found for the given name.public CompiledObjectDecorator getDecorator(Class<?> type)
type - the type of the decorator (syas his fqn)public void addWarning(String warning)
warning - the warning to addpublic void addError(String error)
error - the error to addpublic int run()
-1 if errors appears, the number of generated files
otherwise.public void addFileToCompile(JAXXCompilerFile file)
file to be compiled.file - the JAXXCompilerFile to add.public void addFileToCompile(File jaxxFile, String jaxxClassName)
JAXXCompilerFile given the jaxx file and the
corresponding class fully qualified name.jaxxFile - the jaxx file locationjaxxClassName - the fully qualified name of the jaxx classpublic JAXXCompiler newCompiler(JAXXCompilerFile jaxxFile) throws Exception
jaxxFile.jaxxFile - the definition of jaxx file to compileException - if any pb while creating of compilerpublic boolean isVerbose()
public void addProfileTime(JAXXCompiler compiler, String key)
Note: if profiler is null, do nothing
compiler - the compiler to profilekey - the key of profilingpublic void registerI18nKey(String key)
public void flushI18nGetterFile()
throws IOException
IOExceptionpublic Class<?> getValidatorFactory()
public ClassDescriptor getValidatorFactoryClass()
Copyright © 2008–2019 Ultreia.io. All rights reserved.