View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.dfa.report;
5   
6   
7   public class ClassNode extends AbstractReportNode {
8   
9       private String className;
10  
11      public ClassNode(String className) {
12          this.className = className;
13      }
14  
15      public String getClassName() {
16          return className;
17      }
18  
19      public boolean equalsNode(AbstractReportNode arg0) {
20          if (!(arg0 instanceof ClassNode)) {
21              return false;
22          }
23          return ((ClassNode) arg0).getClassName().equals(className);
24      }
25  
26  }