View Javadoc

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