KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > dfa > report > ClassNode


1 package net.sourceforge.pmd.dfa.report;
2
3
4 public class ClassNode extends AbstractReportNode {
5
6     private String JavaDoc className;
7
8     public ClassNode(String JavaDoc className) {
9         this.className = className;
10     }
11
12     public String JavaDoc getClassName() {
13         return this.className;
14     }
15
16     public boolean equalsNode(AbstractReportNode arg0) {
17         if (!(arg0 instanceof ClassNode)) {
18             return false;
19         }
20         return ((ClassNode) arg0).getClassName().equals(this.className);
21     }
22
23 }
24
Popular Tags