Uses of Class
net.sourceforge.pmd.RuleContext
-
Packages that use RuleContext Package Description net.sourceforge.pmd This is the PMD programming mistake detector.net.sourceforge.pmd.lang.rule net.sourceforge.pmd.lang.rule.stat net.sourceforge.pmd.lang.rule.xpath net.sourceforge.pmd.processor -
-
Uses of RuleContext in net.sourceforge.pmd
Methods in net.sourceforge.pmd that return RuleContext Modifier and Type Method Description static RuleContextPMD. newRuleContext(java.lang.String sourceCodeFilename, java.io.File sourceCodeFile)Creates a new rule context, initialized with a new, empty report.Methods in net.sourceforge.pmd with parameters of type RuleContext Modifier and Type Method Description voidRule. apply(java.util.List<? extends Node> nodes, RuleContext ctx)Apply this rule to the given collection of nodes, using the given context.voidRuleChain. apply(java.util.List<Node> nodes, RuleContext ctx, Language language)Apply the RuleChain to the given Nodes using the given RuleContext, for those rules using the given Language.voidRuleSet. apply(java.util.List<? extends Node> acuList, RuleContext ctx)Executes the rules in this ruleset against each of the given nodes.voidRuleSets. apply(java.util.List<Node> acuList, RuleContext ctx, Language language)Apply all applicable rules to the compilation units.static ReportReport. createReport(RuleContext ctx, java.lang.String fileName)Creates a new, initialized, empty report for the given file name.voidRule. end(RuleContext ctx)End processing.voidRuleSet. end(RuleContext ctx)Triggers the end lifecycle event on each rule in the ruleset.voidRuleSets. end(RuleContext ctx)Notify all rules of the end of processing.static voidPMD. processFiles(PMDConfiguration configuration, RuleSetFactory ruleSetFactory, java.util.List<DataSource> files, RuleContext ctx, java.util.List<Renderer> renderers)Run PMD on a list of files using multiple threads - if more than one is availablevoidSourceCodeProcessor. processSourceCode(java.io.InputStream sourceCode, RuleSets ruleSets, RuleContext ctx)Processes the input stream against a rule set using the given input encoding.voidSourceCodeProcessor. processSourceCode(java.io.Reader sourceCode, RuleSets ruleSets, RuleContext ctx)Processes the input stream against a rule set using the given input encoding.voidRule. start(RuleContext ctx)Start processing.voidRuleSet. start(RuleContext ctx)Triggers that start lifecycle event on each rule in this ruleset.voidRuleSets. start(RuleContext ctx)Notify all rules of the start of processing.Constructors in net.sourceforge.pmd with parameters of type RuleContext Constructor Description RuleContext(RuleContext ruleContext)Constructor which shares attributes and report listeners with the given RuleContext. -
Uses of RuleContext in net.sourceforge.pmd.lang.rule
Methods in net.sourceforge.pmd.lang.rule with parameters of type RuleContext Modifier and Type Method Description voidAbstractRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, int beginLine, int endLine, java.lang.Object[] args)voidAbstractRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, java.lang.Object[] args)voidRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, int beginLine, int endLine, java.lang.Object[] args)voidRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, java.lang.Object[] args)Adds a violation to the report.voidAbstractDelegateRule. apply(java.util.List<? extends Node> nodes, RuleContext ctx)Deprecated.voidMockRule. apply(java.util.List<? extends Node> nodes, RuleContext ctx)voidXPathRule. apply(java.util.List<? extends Node> nodes, RuleContext ctx)Apply the rule to all nodes.protected abstract RuleViolationAbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, java.lang.String message)protected abstract RuleViolationAbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, java.lang.String message, int beginLine, int endLine)voidAbstractDelegateRule. end(RuleContext ctx)Deprecated.voidAbstractRule. end(RuleContext ctx)voidXPathRule. evaluate(Node node, RuleContext data)Evaluate the XPath query with the AST node.protected abstract voidAbstractRuleChainVisitor. indexNodes(java.util.List<Node> nodes, RuleContext ctx)Index all nodes for visitation by rules.voidAbstractDelegateRule. start(RuleContext ctx)Deprecated.voidAbstractRule. start(RuleContext ctx)protected abstract voidAbstractRuleChainVisitor. visit(Rule rule, Node node, RuleContext ctx)Visit the given rule to the given node.voidAbstractRuleChainVisitor. visitAll(java.util.List<Node> nodes, RuleContext ctx)voidRuleChainVisitor. visitAll(java.util.List<Node> nodes, RuleContext ctx)Visit all the given Nodes provided using the given RuleContext.Constructors in net.sourceforge.pmd.lang.rule with parameters of type RuleContext Constructor Description ParametricRuleViolation(Rule theRule, RuleContext ctx, T node, java.lang.String message) -
Uses of RuleContext in net.sourceforge.pmd.lang.rule.stat
Methods in net.sourceforge.pmd.lang.rule.stat with parameters of type RuleContext Modifier and Type Method Description voidStatisticalRuleHelper. apply(RuleContext ctx)Deprecated. -
Uses of RuleContext in net.sourceforge.pmd.lang.rule.xpath
Methods in net.sourceforge.pmd.lang.rule.xpath with parameters of type RuleContext Modifier and Type Method Description abstract java.util.List<Node>AbstractXPathRuleQuery. evaluate(Node node, RuleContext data)java.util.List<Node>JaxenXPathRuleQuery. evaluate(Node node, RuleContext data)java.util.List<Node>SaxonXPathRuleQuery. evaluate(Node node, RuleContext data)java.util.List<Node>XPathRuleQuery. evaluate(Node node, RuleContext data)Evaluate the XPath query against the given Node. -
Uses of RuleContext in net.sourceforge.pmd.processor
Methods in net.sourceforge.pmd.processor with parameters of type RuleContext Modifier and Type Method Description voidAbstractPMDProcessor. processFiles(RuleSetFactory ruleSetFactory, java.util.List<DataSource> files, RuleContext ctx, java.util.List<Renderer> renderers)Constructors in net.sourceforge.pmd.processor with parameters of type RuleContext Constructor Description PmdRunnable(DataSource dataSource, java.lang.String fileName, java.util.List<Renderer> renderers, RuleContext ruleContext, RuleSets ruleSets, SourceCodeProcessor sourceCodeProcessor)
-