openjava.ptree.util
Class GenericVisitor
java.lang.Object
|
+--openjava.ptree.util.ParseTreeVisitor
|
+--openjava.ptree.util.GenericVisitor
- public abstract class GenericVisitor
- extends ParseTreeVisitor
The class GenericVisitor
is a Visitor role in the Visitor
pattern and visits ParseTree
objects as the role of Element.
All of the visit
methods of the base class, ParseTreeVisitor
, redirect to a the ParseTreeVisitor.visit(ParseTree)
method. A
derived class can override this method to treat all nodes uniformly.
- Since:
- %SOFTWARE% 1.0
- Version:
- 1.0
- Author:
- Julian Hyde
- See Also:
ParseTree
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericVisitor
public GenericVisitor()
visitGeneric
public void visitGeneric(ParseTree p)
throws ParseTreeException
- Processes a
ParseTree
node. All other visit
methods call this one.
ParseTreeException
visit
public void visit(ParseTreeObject p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(NonLeaf p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(Leaf p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(MemberDeclaration p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(Statement p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(Expression p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(VariableInitializer p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(List p)
throws ParseTreeException
- Overrides:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(AllocationExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ArrayAccess p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ArrayAllocationExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ArrayInitializer p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(AssignmentExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(BinaryExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(Block p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(BreakStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CaseGroup p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CaseGroupList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CaseLabel p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CaseLabelList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CastExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CatchBlock p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CatchList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ClassDeclaration p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ClassDeclarationList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ClassLiteral p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(CompilationUnit p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ConditionalExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ConstructorDeclaration p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ConstructorInvocation p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ContinueStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(DoWhileStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(EmptyStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ExpressionList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ExpressionStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(FieldAccess p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(FieldDeclaration p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ForStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(IfStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(InstanceofExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(LabeledStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(Literal p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(MemberDeclarationList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(MemberInitializer p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(MethodCall p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(MethodDeclaration p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ModifierList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(Parameter p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ParameterList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ReturnStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(SelfAccess p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(StatementList p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(SwitchStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(SynchronizedStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(ThrowStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(TryStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(TypeName p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(UnaryExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(Variable p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(VariableDeclaration p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(VariableDeclarator p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(WhileStatement p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(QueryExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(AliasedExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(JoinExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException
visit
public void visit(InsertExpression p)
throws ParseTreeException
- Specified by:
visit
in class ParseTreeVisitor
ParseTreeException