01: package com.jeantessier.dependency;
02:
03: import java.io.*;
04: import java.util.*;
05:
06: /**
07: * TODO Class comment
08: */
09: public class NodeNamePrinter implements Visitor {
10: private PrintWriter out;
11:
12: public NodeNamePrinter(PrintWriter out) {
13: this .out = out;
14: }
15:
16: public void traverseNodes(Collection<? extends Node> nodes) {
17: //To change body of implemented methods use File | Settings | File Templates.
18: }
19:
20: public void visitPackageNode(PackageNode node) {
21: out.print("package " + node);
22: }
23:
24: public void visitInboundPackageNode(PackageNode node) {
25: //To change body of implemented methods use File | Settings | File Templates.
26: }
27:
28: public void visitOutboundPackageNode(PackageNode node) {
29: //To change body of implemented methods use File | Settings | File Templates.
30: }
31:
32: public void visitClassNode(ClassNode node) {
33: //To change body of implemented methods use File | Settings | File Templates.
34: }
35:
36: public void visitInboundClassNode(ClassNode node) {
37: //To change body of implemented methods use File | Settings | File Templates.
38: }
39:
40: public void visitOutboundClassNode(ClassNode node) {
41: //To change body of implemented methods use File | Settings | File Templates.
42: }
43:
44: public void visitFeatureNode(FeatureNode node) {
45: //To change body of implemented methods use File | Settings | File Templates.
46: }
47:
48: public void visitInboundFeatureNode(FeatureNode node) {
49: //To change body of implemented methods use File | Settings | File Templates.
50: }
51:
52: public void visitOutboundFeatureNode(FeatureNode node) {
53: //To change body of implemented methods use File | Settings | File Templates.
54: }
55: }
|