JavaDoq 1.0 API

com.javadoq.jjtree.ast
Class ImportNameVisitor

java.lang.Object
  extended by com.javadoq.jjtree.ast.ImportNameVisitor
All Implemented Interfaces:
JJTreeParserVisitor

public class ImportNameVisitor
extends java.lang.Object
implements JJTreeParserVisitor

A JJTree visitor to collect Java types imported to a source file.

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

Field Summary
 SourceFile file
          The source file where this visitor is collecting Java types.
 
Constructor Summary
ImportNameVisitor(SourceFile file)
          Constructs an ImportNameVisitor.
 
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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public final SourceFile file

The source file where this visitor is collecting Java types.

Since:
1.0
Constructor Detail

ImportNameVisitor

public ImportNameVisitor(SourceFile file)

Constructs an ImportNameVisitor.

Parameters:
file - The source file where this visitor is collecting imported Java types.
Since:
1.0
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(ASTName node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

This method simply throws an UnsupportedOperationException.

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(ASTNewName node,
                              java.lang.Object data)

Visits a JJTree node with the specific type.

This method simply throws an UnsupportedOperationException.

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.

This method simply throws an UnsupportedOperationException.

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.

This method simply throws an UnsupportedOperationException.

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.

This method simply throws an UnsupportedOperationException.

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.

This method simply throws an UnsupportedOperationException.

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

JavaDoq 1.0 API

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