Class ReportTree

  • All Implemented Interfaces:
    Iterable<RuleViolation>

    @Deprecated
    public class ReportTree
    extends Object
    implements Iterable<RuleViolation>
    Deprecated.
    This class will be removed with PMD 7.0.0 without replacement. It is very specific for Java as it tries to recreate the package hierarchy of the analyzed classes and put the found violations in there. So it is of limited use for any other language.
    • Constructor Detail

      • ReportTree

        public ReportTree()
        Deprecated.
    • Method Detail

      • size

        public int size()
        Deprecated.
      • addRuleViolation

        public void addRuleViolation​(RuleViolation violation)
        Deprecated.
        Adds the RuleViolation to the tree. Splits the package name. Each package, class and violation gets there own tree node.