net.sourceforge.pmd.dcd
Class DumpNodeVisitor

java.lang.Object
  extended by net.sourceforge.pmd.dcd.graph.NodeVisitorAdapter
      extended by net.sourceforge.pmd.dcd.DumpNodeVisitor
All Implemented Interfaces:
NodeVisitor

public class DumpNodeVisitor
extends NodeVisitorAdapter

Dump a UsageGraph to System.out.


Constructor Summary
DumpNodeVisitor()
           
 
Method Summary
protected  void printMember(MemberNode memberNode)
           
 java.lang.Object visit(ClassNode classNode, java.lang.Object data)
           
 java.lang.Object visit(ConstructorNode constructorNode, java.lang.Object data)
           
 java.lang.Object visit(FieldNode fieldNode, java.lang.Object data)
           
 java.lang.Object visit(MethodNode methodNode, java.lang.Object data)
           
 java.lang.Object visit(UsageGraph usageGraph, java.lang.Object data)
           
 java.lang.Object visitConstructors(ClassNode classNode, java.lang.Object data)
           
 java.lang.Object visitFields(ClassNode classNode, java.lang.Object data)
           
 java.lang.Object visitMethods(ClassNode classNode, java.lang.Object data)
           
 java.lang.Object visitUse(MemberNode use, java.lang.Object data)
           
 java.lang.Object visitUser(MemberNode user, java.lang.Object data)
           
 java.lang.Object visitUsers(MemberNode memberNode, java.lang.Object data)
           
 java.lang.Object visitUses(MemberNode memberNode, java.lang.Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpNodeVisitor

public DumpNodeVisitor()
Method Detail

visit

public java.lang.Object visit(UsageGraph usageGraph,
                              java.lang.Object data)
Specified by:
visit in interface NodeVisitor
Overrides:
visit in class NodeVisitorAdapter

visit

public java.lang.Object visit(ClassNode classNode,
                              java.lang.Object data)
Specified by:
visit in interface NodeVisitor
Overrides:
visit in class NodeVisitorAdapter

visitFields

public java.lang.Object visitFields(ClassNode classNode,
                                    java.lang.Object data)
Specified by:
visitFields in interface NodeVisitor
Overrides:
visitFields in class NodeVisitorAdapter

visit

public java.lang.Object visit(FieldNode fieldNode,
                              java.lang.Object data)
Specified by:
visit in interface NodeVisitor
Overrides:
visit in class NodeVisitorAdapter

visitConstructors

public java.lang.Object visitConstructors(ClassNode classNode,
                                          java.lang.Object data)
Specified by:
visitConstructors in interface NodeVisitor
Overrides:
visitConstructors in class NodeVisitorAdapter

visit

public java.lang.Object visit(ConstructorNode constructorNode,
                              java.lang.Object data)
Specified by:
visit in interface NodeVisitor
Overrides:
visit in class NodeVisitorAdapter

visitMethods

public java.lang.Object visitMethods(ClassNode classNode,
                                     java.lang.Object data)
Specified by:
visitMethods in interface NodeVisitor
Overrides:
visitMethods in class NodeVisitorAdapter

visit

public java.lang.Object visit(MethodNode methodNode,
                              java.lang.Object data)
Specified by:
visit in interface NodeVisitor
Overrides:
visit in class NodeVisitorAdapter

visitUses

public java.lang.Object visitUses(MemberNode memberNode,
                                  java.lang.Object data)
Specified by:
visitUses in interface NodeVisitor
Overrides:
visitUses in class NodeVisitorAdapter

visitUse

public java.lang.Object visitUse(MemberNode use,
                                 java.lang.Object data)
Specified by:
visitUse in interface NodeVisitor
Overrides:
visitUse in class NodeVisitorAdapter

visitUsers

public java.lang.Object visitUsers(MemberNode memberNode,
                                   java.lang.Object data)
Specified by:
visitUsers in interface NodeVisitor
Overrides:
visitUsers in class NodeVisitorAdapter

visitUser

public java.lang.Object visitUser(MemberNode user,
                                  java.lang.Object data)
Specified by:
visitUser in interface NodeVisitor
Overrides:
visitUser in class NodeVisitorAdapter

printMember

protected void printMember(MemberNode memberNode)


Copyright © 2002-2011 InfoEther. All Rights Reserved.