Class ReportTree

  • All Implemented Interfaces:
    java.lang.Iterable<RuleViolation>

    @Deprecated
    public class ReportTree
    extends java.lang.Object
    implements java.lang.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

      • iterator

        public java.util.Iterator<RuleViolation> iterator()
        Deprecated.
        Specified by:
        iterator in interface java.lang.Iterable<RuleViolation>
      • 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.