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(String sourceCodeFilename, File sourceCodeFile)Deprecated.Not usefulMethods in net.sourceforge.pmd with parameters of type RuleContext Modifier and Type Method Description voidRule. apply(List<? extends Node> nodes, RuleContext ctx)Apply this rule to the given collection of nodes, using the given context.voidRuleChain. apply(List<Node> nodes, RuleContext ctx, Language language)Deprecated.Apply the RuleChain to the given Nodes using the given RuleContext, for those rules using the given Language.voidRuleSet. apply(List<? extends Node> acuList, RuleContext ctx)Deprecated.This is internal API, removed in PMD 7.voidRuleSets. apply(List<Node> acuList, RuleContext ctx, Language language)Deprecated.Apply all applicable rules to the compilation units.static ReportReport. createReport(RuleContext ctx, String fileName)Deprecated.Is internal APIvoidRule. end(RuleContext ctx)End processing.voidRuleSet. end(RuleContext ctx)Deprecated.This is internal API, removed in PMD 7.voidRuleSets. end(RuleContext ctx)Deprecated.Notify all rules of the end of processing.static voidPMD. processFiles(PMDConfiguration configuration, RuleSetFactory ruleSetFactory, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)Deprecated.UsePMD.processFiles(PMDConfiguration, List, Collection, List)so as not to depend onRuleSetFactory.voidSourceCodeProcessor. processSourceCode(InputStream sourceCode, RuleSets ruleSets, RuleContext ctx)Deprecated.Processes the input stream against a rule set using the given input encoding.voidSourceCodeProcessor. processSourceCode(Reader sourceCode, RuleSets ruleSets, RuleContext ctx)Deprecated.Processes the input stream against a rule set using the given input encoding.voidRule. start(RuleContext ctx)Start processing.voidRuleSet. start(RuleContext ctx)Deprecated.This is internal API, removed in PMD 7.voidRuleSets. start(RuleContext ctx)Deprecated.Notify all rules of the start of processing.Constructors in net.sourceforge.pmd with parameters of type RuleContext Constructor Description RuleContext(RuleContext ruleContext)Deprecated.Internal API, removed in PMD 7 -
Uses of RuleContext in net.sourceforge.pmd.lang.rule
Methods in net.sourceforge.pmd.lang.rule that return RuleContext Modifier and Type Method Description protected RuleContextAbstractRule. asCtx(Object ctx)Cast the argument to aRuleContext.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, String message, int beginLine, int endLine, Object[] args)voidAbstractRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, String message, Object[] args)voidRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, String message, int beginLine, int endLine, Object[] args)voidRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, String message, Object[] args)Adds a violation to the report.voidAbstractDelegateRule. apply(List<? extends Node> nodes, RuleContext ctx)Deprecated.voidMockRule. apply(List<? extends Node> nodes, RuleContext ctx)Deprecated.voidXPathRule. apply(List<? extends Node> nodes, RuleContext ctx)protected abstract RuleViolationAbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message)protected abstract RuleViolationAbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message, int beginLine, int endLine)voidAbstractDelegateRule. end(RuleContext ctx)Deprecated.voidAbstractRule. end(RuleContext ctx)voidXPathRule. evaluate(Node node, RuleContext data)Deprecated.protected abstract voidAbstractRuleChainVisitor. indexNodes(List<Node> nodes, RuleContext ctx)Deprecated.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)Deprecated.Visit the given rule to the given node.voidAbstractRuleChainVisitor. visitAll(List<Node> nodes, RuleContext ctx)Deprecated.voidRuleChainVisitor. visitAll(List<Node> nodes, RuleContext ctx)Deprecated.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, String message)Deprecated. -
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 List<Node>AbstractXPathRuleQuery. evaluate(Node node, RuleContext data)Deprecated.List<Node>JaxenXPathRuleQuery. evaluate(Node node, RuleContext data)Deprecated.List<Node>SaxonXPathRuleQuery. evaluate(Node node, RuleContext data)Deprecated.List<Node>XPathRuleQuery. evaluate(Node node, RuleContext data)Deprecated.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, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)Deprecated.voidAbstractPMDProcessor. processFiles(RuleSets rulesets, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)Deprecated.Constructors in net.sourceforge.pmd.processor with parameters of type RuleContext Constructor Description PmdRunnable(DataSource dataSource, String fileName, List<Renderer> renderers, RuleContext ruleContext, RuleSets ruleSets, SourceCodeProcessor sourceCodeProcessor)Deprecated.
-