Class InternalApiBridge


  • @InternalApi
    public final class InternalApiBridge
    extends Object
    Internal API.

    Acts as a bridge between outer parts of PMD and the restricted access internal API of this package.

    None of this is published API, and compatibility can be broken anytime! Use this only at your own risk.

    API Note:
    Internal API
    • Method Detail

      • createRuleContext

        public static RuleContext createRuleContext​(FileAnalysisListener listener,
                                                    Rule rule)
        Create a new RuleContext. The listener must be closed by its creator.
      • createRuleViolation

        public static net.sourceforge.pmd.reporting.ParametricRuleViolation createRuleViolation​(Rule theRule,
                                                                                                FileLocation location,
                                                                                                String message,
                                                                                                Map<String,​String> additionalInfo)