JavaDoq 1.0 API

com.javadoq.jjtree.ast
Class SuperTypeVisitor

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

public class SuperTypeVisitor
extends java.lang.Object
implements JJTreeParserVisitor

A JJTree visitor to collect super Java types extended 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 super types.
 
Constructor Summary
SuperTypeVisitor(SourceFile file)
          Constructs a SuperTypeVisitor.
 
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 super types.

Since:
1.0
Constructor Detail

SuperTypeVisitor

public SuperTypeVisitor(SourceFile file)

Constructs a SuperTypeVisitor.

Parameters:
file - The source file where this visitor is collecting super 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(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

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