JavaDoq 1.0 API

com.javadoq.jjtree.ast
Class TokenVisitor

java.lang.Object
  extended by com.javadoq.jjtree.ast.TokenVisitor
All Implemented Interfaces:
JJTreeParserVisitor
Direct Known Subclasses:
TokenTransformVisitor

public abstract class TokenVisitor
extends java.lang.Object
implements JJTreeParserVisitor

An abstract base class for JJTree visitor to visit JJTree nodes and tokens.

Author:
J.J.Liu (Jianjun Liu) at http://www.javadoq.com

Constructor Summary
TokenVisitor()
           
 
Method Summary
 java.lang.Object visit(ASTCompilationUnit node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(ASTGrammar node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(ASTImportName node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(ASTName node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(ASTNewName node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(ASTNewType node, java.lang.Object data)
          Visits a JJTree node with the specific type.
protected  java.lang.Object visit(ASTNode node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(ASTPackageName node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(ASTSuperList node, java.lang.Object data)
          Visits a JJTree node with the specific type.
 java.lang.Object visit(SimpleNode node, java.lang.Object data)
          Visits a JJTree node with the specific type.
protected abstract  void visit(Token t)
          Visits a token.
protected  java.lang.Object visitChildren(ASTNode node, java.lang.Object data)
          Visits all children nodes and tokens of a JJTree node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenVisitor

public TokenVisitor()
Method Detail

visit

public java.lang.Object visit(SimpleNode node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTCompilationUnit node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTGrammar node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTImportName node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTName node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTNewType node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTNewName node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTPackageName node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

public java.lang.Object visit(ASTSuperList node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

Specified by:
visit in interface JJTreeParserVisitor
Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

protected java.lang.Object visit(ASTNode node,
                                 java.lang.Object data)

Visits a JJTree node with the specific type.

Parameters:
node - The JJTree node to visit.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visitChildren

protected java.lang.Object visitChildren(ASTNode node,
                                         java.lang.Object data)

Visits all children nodes and tokens of a JJTree node.

Parameters:
node - The JJTree node to visit children and tokens.
data - Visitor data.
Returns:
A visitor data.
Since:
1.0

visit

protected abstract void visit(Token t)

Visits a token.

Parameters:
t - The JJTree token to visit.
Since:
1.0

JavaDoq 1.0 API

Copyright © 2008-2011 J.J.Liu (www.javadoq.com). All Rights Reserved.