All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----epp.Emitter
Emitter
class is the super class of all
Emitter
objects.
Within the code-emitting pass, abstract syntax trees are converted into
character strings and are written to output files.
The Emitter
object is the object that converts each node of the
absrtact syntax tree into character strings.
For each type of node, a corresponding Emitter
object will be
defined. For example, the class that generates a "for" statement is
ForEmitter
class.
Plug-in programmers normally should not use this class.
Tree
recursively.
public Emitter()
public abstract void call(OutputStream out, Tree tree) throws IOException
public static void emitTree(OutputStream out, Tree tree)
Tree
recursively.
This method searches the emitterTable
and retrieves an
Emitter
object that matches the specified tree and then
calls the call
method.
This method can be used to generate a subtree recursively from
within the call
method.
public static void emitString(OutputStream out, String str) throws IOExceptioncheckArgsLength
public static void checkArgsLength(Tree tree, int argc)outputNewlineAndIndent
public static void outputNewlineAndIndent(OutputStream out) throws IOExceptionoutputNewlineForReadability
public static void outputNewlineForReadability(OutputStream out) throws IOExceptionerror
public static Error error(String str)
All Packages Class Hierarchy This Package Previous Next Index