org.teatrove.tea.util
Class AbstractCompiler
java.lang.Object
org.teatrove.tea.compiler.Compiler
org.teatrove.tea.util.AbstractCompiler
- Direct Known Subclasses:
- FileCompiler, ResourceCompiler, StringCompiler
public abstract class AbstractCompiler
- extends Compiler
|
Constructor Summary |
AbstractCompiler(ClassInjector injector)
|
AbstractCompiler(ClassInjector injector,
String rootPackage)
|
AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir)
|
AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir,
String encoding)
|
AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir,
String encoding,
long precompiledTolerance,
Map<String,Template> parseTreeMap)
|
AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir,
String encoding,
Map<String,Template> parseTreeMap)
|
AbstractCompiler(ClassInjector injector,
String rootPackage,
Map<String,Template> parseTreeMap)
|
| Methods inherited from class org.teatrove.tea.compiler.Compiler |
addErrorListener, addImportedPackage, addImportedPackages, addStatusListener, compile, createCodeGenerator, createCompilationUnit, createParser, createScanner, createSourceReader, createTypeChecker, getClassLoader, getCompilationUnit, getErrorCount, getImportedPackages, getParseTree, getRuntimeContext, getRuntimeContextMethods, getRuntimeReceiver, getRuntimeStringConverter, getStringConverterMethods, isCodeGenerationEnabled, isExceptionGuardianEnabled, loadClass, preserveParseTree, removeErrorListener, removeStatusListener, setClassLoader, setCodeGenerationEnabled, setExceptionGuardianEnabled, setRuntimeContext, sourceExists |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mRootPackage
protected String mRootPackage
mRootDestDir
protected File mRootDestDir
mInjector
protected ClassInjector mInjector
mEncoding
protected String mEncoding
mForce
protected boolean mForce
mPrecompiledTolerance
protected long mPrecompiledTolerance
AbstractCompiler
public AbstractCompiler(ClassInjector injector)
AbstractCompiler
public AbstractCompiler(ClassInjector injector,
String rootPackage)
AbstractCompiler
public AbstractCompiler(ClassInjector injector,
String rootPackage,
Map<String,Template> parseTreeMap)
AbstractCompiler
public AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir)
AbstractCompiler
public AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir,
String encoding)
AbstractCompiler
public AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir,
String encoding,
Map<String,Template> parseTreeMap)
AbstractCompiler
public AbstractCompiler(ClassInjector injector,
String rootPackage,
File rootDestDir,
String encoding,
long precompiledTolerance,
Map<String,Template> parseTreeMap)
setForceCompile
public void setForceCompile(boolean force)
- Parameters:
force - When true, compile all source, even if up-to-date
getRootPackage
public String getRootPackage()
- Get the root target package for all templates. All templates will be
based on this root package and extended from it.
- Returns:
- The root or base package to use for templates
compile
public String[] compile(String[] names)
throws IOException
- Overrides Compiler class implementation (TemplateRepository integration).
- Overrides:
compile in class Compiler
- Parameters:
names - an array of fully qualified template names
- Returns:
- The names of all the sources compiled by this compiler
- Throws:
IOException
compileAll
public String[] compileAll()
throws IOException
- Recursively compiles all files in the source directory.
- Returns:
- The names of all the compiled sources
- Throws:
IOException
getAllTemplateNames
public abstract String[] getAllTemplateNames()
throws IOException
- Returns all sources (template names) available from the source
directory and in all sub-directories.
- Throws:
IOException
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.