| java.lang.Object xtc.tree.Visitor xtc.lang.jeannie.AstSimplifier
AstSimplifier | public class AstSimplifier extends Visitor (Code) | | A visitor that simplifies Jeannie ASTs. Uses JavaAstSimplifier on the Java
parts of the AST, while leaving the C part of the AST untouched.
|
Constructor Summary | |
public | AstSimplifier(String language) Create a new jeannie.AstSimplifier, and specify the initial language with "Java" or "C". |
Method Summary | |
final public LineMarker | visit(LineMarker m) | final public Node | visit(Node n) Dispatch the node in C or in Java depending on the current language, and
depending on whether the node itself indicates a language transition. |
AstSimplifier | public AstSimplifier(String language)(Code) | | Create a new jeannie.AstSimplifier, and specify the initial language with "Java" or "C".
|
visit | final public Node visit(Node n)(Code) | | Dispatch the node in C or in Java depending on the current language, and
depending on whether the node itself indicates a language transition.
Transitions from Java to C are handled indirectly by
JeannieJAstSimplifier.visit(GNode).
|
|
|