jltools.visit
Class Translator
java.lang.Object
|
+--jltools.frontend.AbstractPass
|
+--jltools.visit.Translator
- All Implemented Interfaces:
- Pass
- Direct Known Subclasses:
- JifTranslator
- public class Translator
- extends AbstractPass
A Translator generates output code from the processed AST.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jltools.frontend.Pass |
status |
job
protected Job job
context
protected Context context
appendSemicolon
protected boolean appendSemicolon
Translator
public Translator(Job job)
- Create a Translator. The output of the visitor is a collection of files
whose names are added to the collection
outputFiles
.
appendSemicolon
public boolean appendSemicolon()
appendSemicolon
public boolean appendSemicolon(boolean a)
context
public Context context()
typeSystem
public TypeSystem typeSystem()
nodeFactory
public NodeFactory nodeFactory()
run
public boolean run()
- Description copied from interface:
Pass
- Run the pass.
- Overrides:
run
in class AbstractPass
writeHeader
protected void writeHeader(SourceFile sfn,
CodeWriter w)
exports
protected java.util.List exports(SourceFile sfn)
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractPass