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   public class PackageNode extends AbstractReportNode {
7   
8       private String packageName;
9   
10      public PackageNode(String packageName) {
11          this.packageName = packageName;
12      }
13  
14      public String getPackageName() {
15          return this.packageName;
16      }
17  
18      public boolean equalsNode(AbstractReportNode arg0) {
19          if (!(arg0 instanceof PackageNode)) {
20              return false;
21          }
22  
23          return ((PackageNode) arg0).getPackageName().equals(this.packageName);
24      }
25  
26  }