openjava.ptree.util
Class ParseTreeVisitor

java.lang.Object
  |
  +--openjava.ptree.util.ParseTreeVisitor
Direct Known Subclasses:
EvaluationShuttle, GenericVisitor, SourceCodeWriter

public abstract class ParseTreeVisitor
extends Object

The class ParseTreeVisitor is a Visitor role in the Visitor pattern and visits ParseTree objects as the role of Element.

For example

 

Since:
%SOFTWARE% 1.0
Version:
1.0
Author:
Michiaki Tatsubori
See Also:
ParseTree

Constructor Summary
ParseTreeVisitor()
           
 
Method Summary
abstract  void visit(AliasedExpression p)
           
abstract  void visit(AllocationExpression p)
           
abstract  void visit(ArrayAccess p)
           
abstract  void visit(ArrayAllocationExpression p)
           
abstract  void visit(ArrayInitializer p)
           
abstract  void visit(AssignmentExpression p)
           
abstract  void visit(BinaryExpression p)
           
abstract  void visit(Block p)
           
abstract  void visit(BreakStatement p)
           
abstract  void visit(CaseGroup p)
           
abstract  void visit(CaseGroupList p)
           
abstract  void visit(CaseLabel p)
           
abstract  void visit(CaseLabelList p)
           
abstract  void visit(CastExpression p)
           
abstract  void visit(CatchBlock p)
           
abstract  void visit(CatchList p)
           
abstract  void visit(ClassDeclaration p)
           
abstract  void visit(ClassDeclarationList p)
           
abstract  void visit(ClassLiteral p)
           
abstract  void visit(CompilationUnit p)
           
abstract  void visit(ConditionalExpression p)
           
abstract  void visit(ConstructorDeclaration p)
           
abstract  void visit(ConstructorInvocation p)
           
abstract  void visit(ContinueStatement p)
           
abstract  void visit(DoWhileStatement p)
           
abstract  void visit(EmptyStatement p)
           
 void visit(Expression p)
           
abstract  void visit(ExpressionList p)
           
abstract  void visit(ExpressionStatement p)
           
abstract  void visit(FieldAccess p)
           
abstract  void visit(FieldDeclaration p)
           
abstract  void visit(ForStatement p)
           
abstract  void visit(IfStatement p)
           
abstract  void visit(InsertExpression p)
           
abstract  void visit(InstanceofExpression p)
           
abstract  void visit(JoinExpression p)
           
abstract  void visit(LabeledStatement p)
           
 void visit(Leaf p)
           
 void visit(List p)
           
abstract  void visit(Literal p)
           
 void visit(MemberDeclaration p)
           
abstract  void visit(MemberDeclarationList p)
           
abstract  void visit(MemberInitializer p)
           
abstract  void visit(MethodCall p)
           
abstract  void visit(MethodDeclaration p)
           
abstract  void visit(ModifierList p)
           
 void visit(NonLeaf p)
           
abstract  void visit(Parameter p)
           
abstract  void visit(ParameterList p)
           
 void visit(ParseTree p)
           
 void visit(ParseTreeObject p)
           
abstract  void visit(QueryExpression p)
           
abstract  void visit(ReturnStatement p)
           
abstract  void visit(SelfAccess p)
           
 void visit(Statement p)
           
abstract  void visit(StatementList p)
           
abstract  void visit(SwitchStatement p)
           
abstract  void visit(SynchronizedStatement p)
           
abstract  void visit(ThrowStatement p)
           
abstract  void visit(TryStatement p)
           
abstract  void visit(TypeName p)
           
abstract  void visit(UnaryExpression p)
           
abstract  void visit(Variable p)
           
abstract  void visit(VariableDeclaration p)
           
abstract  void visit(VariableDeclarator p)
           
 void visit(VariableInitializer p)
           
abstract  void visit(WhileStatement p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseTreeVisitor

public ParseTreeVisitor()
Method Detail

visit

public void visit(ParseTree p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(ParseTreeObject p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(NonLeaf p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(Leaf p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(MemberDeclaration p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(Statement p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(Expression p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(VariableInitializer p)
           throws ParseTreeException
ParseTreeException

visit

public void visit(List p)
           throws ParseTreeException
ParseTreeException

visit

public abstract void visit(AllocationExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ArrayAccess p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ArrayAllocationExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ArrayInitializer p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(AssignmentExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(BinaryExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(Block p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(BreakStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CaseGroup p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CaseGroupList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CaseLabel p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CaseLabelList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CastExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CatchBlock p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CatchList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ClassDeclaration p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ClassDeclarationList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ClassLiteral p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(CompilationUnit p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ConditionalExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ConstructorDeclaration p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ConstructorInvocation p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ContinueStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(DoWhileStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(EmptyStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ExpressionList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ExpressionStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(FieldAccess p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(FieldDeclaration p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ForStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(IfStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(InstanceofExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(LabeledStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(Literal p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(MemberDeclarationList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(MemberInitializer p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(MethodCall p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(MethodDeclaration p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ModifierList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(Parameter p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ParameterList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ReturnStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(SelfAccess p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(StatementList p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(SwitchStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(SynchronizedStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(ThrowStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(TryStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(TypeName p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(UnaryExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(Variable p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(VariableDeclaration p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(VariableDeclarator p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(WhileStatement p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(QueryExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(AliasedExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(JoinExpression p)
                    throws ParseTreeException
ParseTreeException

visit

public abstract void visit(InsertExpression p)
                    throws ParseTreeException
ParseTreeException

SourceForge.net_Logo