A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.10.0/net/sourceforge/pmd/Rule.html below:

Rule (PMD Core 6.10.0 API)

Modifier and Type Method Description void addExample​(java.lang.String example)

Add a single example for this Rule.

void addRuleChainVisit​(java.lang.Class<? extends Node> nodeClass)

Adds an AST node by class to be visited by the Rule on the RuleChain.

void addRuleChainVisit​(java.lang.String astNodeName)

Adds an AST node by name to be visited by the Rule on the RuleChain.

void apply​(java.util.List<? extends Node> nodes, RuleContext ctx)

Apply this rule to the given collection of nodes, using the given context.

Rule deepCopy()

Creates a new copy of this rule.

void end​(RuleContext ctx)

End processing.

java.lang.String getDescription()

Get the description of this Rule.

java.util.List<java.lang.String> getExamples()

Get the list of examples for this Rule.

java.lang.String getExternalInfoUrl()

Get a URL for external information about this Rule.

Language getLanguage()

Get the Language of this Rule.

LanguageVersion getMaximumLanguageVersion()

Get the maximum LanguageVersion to which this Rule applies.

java.lang.String getMessage()

Get the message to show when this Rule identifies a violation.

LanguageVersion getMinimumLanguageVersion()

Get the minimum LanguageVersion to which this Rule applies.

java.lang.String getName()

Get the name of this Rule.

ParserOptions getParserOptions()

Get the parser options for this Rule.

RulePriority getPriority()

Get the priority of this Rule.

java.util.List<java.lang.String> getRuleChainVisits()

Gets the collection of AST node names visited by the Rule on the RuleChain.

java.lang.String getRuleClass()

Get the implementation class of this Rule.

java.lang.String getRuleSetName()

Get the name of the RuleSet containing this Rule.

java.lang.String getSince()

Get the version of PMD in which this Rule was added.

boolean isDeprecated()

Gets whether this Rule is deprecated.

boolean isDfa() Deprecated.

Optional AST processing stages will be reified in 7.0.0 to factorise common logic.

boolean isMultifile() Deprecated.

Logic for multifile analysis is not implemented yet and probably won't be implemented this way.

boolean isRuleChain()

Gets whether this Rule uses the RuleChain.

boolean isTypeResolution() Deprecated.

Optional AST processing stages will be reified in 7.0.0 to factorise common logic.

void setDeprecated​(boolean deprecated)

Sets whether this Rule is deprecated.

void setDescription​(java.lang.String description)

Set the description of this Rule.

void setDfa​(boolean isDfa) Deprecated.

See

isDfa() void setExternalInfoUrl​(java.lang.String externalInfoUrl)

Set a URL for external information about this Rule.

void setLanguage​(Language language)

Set the Language of this Rule.

void setMaximumLanguageVersion​(LanguageVersion maximumLanguageVersion)

Set the maximum LanguageVersion to which this Rule applies.

void setMessage​(java.lang.String message)

Set the message to show when this Rule identifies a violation.

void setMinimumLanguageVersion​(LanguageVersion minimumLanguageVersion)

Set the minimum LanguageVersion to which this Rule applies.

void setMultifile​(boolean multifile) Deprecated.

See

isMultifile() void setName​(java.lang.String name)

Set the name of this Rule.

void setPriority​(RulePriority priority)

Set the priority of this Rule.

void setRuleClass​(java.lang.String ruleClass)

Set the class of this Rule.

void setRuleSetName​(java.lang.String name)

Set the name of the RuleSet containing this Rule.

void setSince​(java.lang.String since)

Set the version of PMD in which this Rule was added.

void setTypeResolution​(boolean usingTypeResolution) Deprecated.

See

isTypeResolution() void setUsesDFA() Deprecated.

See

isDfa() void setUsesMultifile() Deprecated.

See

isMultifile() void setUsesTypeResolution() Deprecated.

See

isTypeResolution() void start​(RuleContext ctx)

Start processing.

boolean usesDFA() Deprecated.

See

isDfa() boolean usesMultifile() Deprecated.

See

isMultifile() boolean usesRuleChain() Deprecated.

USe

isRuleChain()

instead.

boolean usesTypeResolution() Deprecated.

See

isTypeResolution()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4