|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teatrove.tea.compiler.CompilationUnit
public abstract class CompilationUnit
| Constructor Summary | |
|---|---|
CompilationUnit(String name,
Compiler compiler)
|
|
| Method Summary | |
|---|---|
void |
compileError(ErrorEvent e)
Called when there is an error when compiling this CompilationUnit. |
Compiler |
getCompiler()
|
int |
getErrorCount()
Returns the number of errors generated while compiling this CompilationUnit. |
String[] |
getImportedPackages()
Current implementation returns only the same packages as the compiler. |
String |
getName()
|
abstract OutputStream |
getOutputStream()
|
Template |
getParseTree()
|
abstract Reader |
getReader()
|
Class<?> |
getRuntimeContext()
The retrieves the runtime context. |
String |
getShortName()
|
abstract String |
getSourceFileName()
|
String |
getTargetPackage()
Return the package name that this CompilationUnit should be compiled into. |
abstract void |
resetOutputStream()
Reset the output stream cleaning up or removing any files created as part of the output stream. |
void |
setParseTree(Template tree)
|
boolean |
shouldCompile()
|
boolean |
signatureEquals(String templateName,
TypeDesc[] params,
TypeDesc returnType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompilationUnit(String name,
Compiler compiler)
| Method Detail |
|---|
public String getName()
public String getShortName()
public Compiler getCompiler()
public Class<?> getRuntimeContext()
public void compileError(ErrorEvent e)
compileError in interface ErrorListenerpublic int getErrorCount()
public Template getParseTree()
public void setParseTree(Template tree)
public final String[] getImportedPackages()
Compiler.getImportedPackages()public String getTargetPackage()
public abstract String getSourceFileName()
public abstract Reader getReader()
throws IOException
IOException
public boolean shouldCompile()
throws IOException
IOException
public boolean signatureEquals(String templateName,
TypeDesc[] params,
TypeDesc returnType)
throws IOException
IOException
public abstract OutputStream getOutputStream()
throws IOException
IOExceptionpublic abstract void resetOutputStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||