JavaDoq 1.0 API

com.javadoq.jjtree.ast
Class NewTypeVisitor

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

public class NewTypeVisitor
extends java.lang.Object
implements JJTreeParserVisitor

A JJTree visitor to collect new Java types defined in 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 new Java types.
 
Constructor Summary
NewTypeVisitor(SourceFile file)
          Constructs a NewTypeVisitor.
 
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 new Java types.

Since:
1.0
Constructor Detail

NewTypeVisitor

public NewTypeVisitor(SourceFile file)

Constructs a NewTypeVisitor.

Parameters:
file - The source file where this visitor is collecting new Java types.
Since:
1.0
Method Detail

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(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.

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(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(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.