public class RemoveEnums extends ContextVisitor
context, outer, prune, rethrowMissingDependencies
error, job, nf, ts
bypass, bypassParent
Constructor and Description |
---|
RemoveEnums(Job job,
TypeSystem ts,
NodeFactory nf) |
Modifier and Type | Method and Description |
---|---|
protected NodeVisitor |
enterCall(Node n) |
protected Node |
leaveCall(Node n) |
static void |
prettyPrintClassDeclAsEnum(ClassDecl decl,
CodeWriter w,
PrettyPrinter tr)
Take a ClassDecl that is the translation of an enum declaration (as produced by this class)
and pretty prints it like a Java 1.5 enum.
|
addDecls, addDecls, begin, context, context, enter, enter, enterScope, leave, rethrowMissingDependencies, superEnter
catchErrors, enterCall, enterError, errorQueue, hasErrors, job, leaveCall, leaveCall, nodeFactory, typeSystem
bypass, bypass, bypassChildren, override, visitChildren
copy, finish, finish, lang, leave, override, toString, visitEdge, visitEdgeNoOverride
public RemoveEnums(Job job, TypeSystem ts, NodeFactory nf)
protected NodeVisitor enterCall(Node n) throws SemanticException
enterCall
in class ErrorHandlingVisitor
SemanticException
protected Node leaveCall(Node n) throws SemanticException
leaveCall
in class ErrorHandlingVisitor
SemanticException
public static void prettyPrintClassDeclAsEnum(ClassDecl decl, CodeWriter w, PrettyPrinter tr)