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 RuleContext
PMD. newRuleContext(String sourceCodeFilename, 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 void
Rule. apply(List<? extends Node> nodes, RuleContext ctx)
Apply this rule to the given collection of nodes, using the given context.void
RuleChain. 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.void
RuleSet. apply(List<? extends Node> acuList, RuleContext ctx)
Executes the rules in this ruleset against each of the given nodes.void
RuleSets. apply(List<Node> acuList, RuleContext ctx, Language language)
Deprecated.Apply all applicable rules to the compilation units.static Report
Report. createReport(RuleContext ctx, String fileName)
Creates a new, initialized, empty report for the given file name.void
Rule. end(RuleContext ctx)
End processing.void
RuleSet. end(RuleContext ctx)
Triggers the end lifecycle event on each rule in the ruleset.void
RuleSets. end(RuleContext ctx)
Deprecated.Notify all rules of the end of processing.static void
PMD. processFiles(PMDConfiguration configuration, RuleSetFactory ruleSetFactory, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)
Run PMD on a list of files using multiple threads - if more than one is availablevoid
SourceCodeProcessor. processSourceCode(InputStream sourceCode, RuleSets ruleSets, RuleContext ctx)
Processes the input stream against a rule set using the given input encoding.void
SourceCodeProcessor. processSourceCode(Reader sourceCode, RuleSets ruleSets, RuleContext ctx)
Processes the input stream against a rule set using the given input encoding.void
Rule. start(RuleContext ctx)
Start processing.void
RuleSet. start(RuleContext ctx)
Triggers that start lifecycle event on each rule in this ruleset.void
RuleSets. 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)
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 void
AbstractRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, String message, int beginLine, int endLine, Object[] args)
void
AbstractRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, String message, Object[] args)
void
RuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, String message, int beginLine, int endLine, Object[] args)
void
RuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, String message, Object[] args)
Adds a violation to the report.void
AbstractDelegateRule. apply(List<? extends Node> nodes, RuleContext ctx)
Deprecated.void
MockRule. apply(List<? extends Node> nodes, RuleContext ctx)
Deprecated.void
XPathRule. apply(List<? extends Node> nodes, RuleContext ctx)
protected abstract RuleViolation
AbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message)
protected abstract RuleViolation
AbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message, int beginLine, int endLine)
void
AbstractDelegateRule. end(RuleContext ctx)
Deprecated.void
AbstractRule. end(RuleContext ctx)
void
XPathRule. evaluate(Node node, RuleContext data)
Deprecated.protected abstract void
AbstractRuleChainVisitor. indexNodes(List<Node> nodes, RuleContext ctx)
Deprecated.Index all nodes for visitation by rules.void
AbstractDelegateRule. start(RuleContext ctx)
Deprecated.void
AbstractRule. start(RuleContext ctx)
protected abstract void
AbstractRuleChainVisitor. visit(Rule rule, Node node, RuleContext ctx)
Deprecated.Visit the given rule to the given node.void
AbstractRuleChainVisitor. visitAll(List<Node> nodes, RuleContext ctx)
Deprecated.void
RuleChainVisitor. 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)
-
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 void
StatisticalRuleHelper. 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 void
AbstractPMDProcessor. processFiles(RuleSetFactory ruleSetFactory, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)
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)
-