cetus.treewalker
Class TreeWalker

java.lang.Object
  extended by cetus.treewalker.TreeWalker
Direct Known Subclasses:
CCTreeWalker, CTreeWalker

public abstract class TreeWalker
extends java.lang.Object

Base class for all tree walkers.


Field Summary
protected  int anonymous_count
           
protected  Declaration saved_decl
           
protected  TranslationUnit tunit
           
 
Constructor Summary
protected TreeWalker(java.lang.String filename)
           
 
Method Summary
protected  Expression action_assignment_expression(TreeNode root)
           
protected  CompoundStatement action_compound_statement(TreeNode root)
           
protected  Expression action_conditional_expression(TreeNode root)
           
protected  java.util.List<Declaration> action_declaration_list(TreeNode root)
           
protected  java.util.List<Specifier> action_declaration_specifiers(TreeNode root)
           
protected  Declaration action_declaration(TreeNode root)
           
protected  Declarator action_enumerator(TreeNode root)
           
protected  Expression action_expression(TreeNode root)
           
protected  Statement action_jump_statement(TreeNode root)
           
protected  CompoundStatement action_labeled_statement(TreeNode root)
           
protected  Statement action_selection_statement(TreeNode root)
           
protected  Specifier action_specifier(TreeNode root)
           
protected  Statement action_statement(TreeNode root)
           
protected  java.util.List<java.lang.String> action_string_literal_list(TreeNode root)
           
protected  TranslationUnit action_translation_unit(TreeNode root)
           
protected  Expression defaultBinaryExpressionAction(TreeNode root)
           
protected  java.util.List defaultCompactListAction(TreeNode root)
           
protected  java.util.List defaultListAction(TreeNode root)
           
protected  java.lang.Object defaultNotImplemented(TreeNode root)
           
protected abstract  java.lang.Object doAction(TreeNode root)
           
abstract  TranslationUnit run(TreeNode root)
           
 Declaration symbolLookup(IDExpression id_expr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anonymous_count

protected int anonymous_count

saved_decl

protected Declaration saved_decl

tunit

protected TranslationUnit tunit
Constructor Detail

TreeWalker

protected TreeWalker(java.lang.String filename)
Method Detail

action_assignment_expression

protected Expression action_assignment_expression(TreeNode root)

action_compound_statement

protected CompoundStatement action_compound_statement(TreeNode root)

action_conditional_expression

protected Expression action_conditional_expression(TreeNode root)

action_declaration

protected Declaration action_declaration(TreeNode root)

action_declaration_list

protected java.util.List<Declaration> action_declaration_list(TreeNode root)

action_declaration_specifiers

protected java.util.List<Specifier> action_declaration_specifiers(TreeNode root)

action_enumerator

protected Declarator action_enumerator(TreeNode root)

action_expression

protected Expression action_expression(TreeNode root)

action_jump_statement

protected Statement action_jump_statement(TreeNode root)

action_labeled_statement

protected CompoundStatement action_labeled_statement(TreeNode root)

action_selection_statement

protected Statement action_selection_statement(TreeNode root)

action_specifier

protected Specifier action_specifier(TreeNode root)

action_statement

protected Statement action_statement(TreeNode root)

action_string_literal_list

protected java.util.List<java.lang.String> action_string_literal_list(TreeNode root)

action_translation_unit

protected TranslationUnit action_translation_unit(TreeNode root)

defaultBinaryExpressionAction

protected Expression defaultBinaryExpressionAction(TreeNode root)

defaultCompactListAction

protected java.util.List defaultCompactListAction(TreeNode root)

defaultListAction

protected java.util.List defaultListAction(TreeNode root)

defaultNotImplemented

protected java.lang.Object defaultNotImplemented(TreeNode root)

doAction

protected abstract java.lang.Object doAction(TreeNode root)

run

public abstract TranslationUnit run(TreeNode root)

symbolLookup

public Declaration symbolLookup(IDExpression id_expr)