View Javadoc

1   package net.sourceforge.pmd.dfa.report;
2   
3   
4   public class ClassNode extends AbstractReportNode {
5   
6       private String className;
7   
8       public ClassNode(String className) {
9           this.className = className;
10      }
11  
12      public String 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  }