|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.go.tea.compiler.Compiler
|
+--com.go.tea.util.StringCompiler
Simple compiler implementation that compiles a Tea template whose source
is in a String. Call setTemplateSource to
supply source code for templates before calling compile.
| Constructor Summary | |
StringCompiler(ClassInjector injector)
|
|
| Method Summary | |
protected CompilationUnit |
createCompilationUnit(java.lang.String name)
|
void |
setTemplateSource(java.lang.String name,
java.lang.String source)
|
boolean |
sourceExists(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringCompiler(ClassInjector injector)
injector - ClassInjector to feed generated classes into| Method Detail |
public boolean sourceExists(java.lang.String name)
sourceExists in class Compilercom.go.tea.compiler.Compilerprotected CompilationUnit createCompilationUnit(java.lang.String name)
createCompilationUnit in class Compiler
public void setTemplateSource(java.lang.String name,
java.lang.String source)
name - The name of the templatesource - The source code for the template
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||