@Immutable public class DefaultActiveRule extends java.lang.Object implements ActiveRule
Modifier and Type | Method and Description |
---|---|
long |
createdAt() |
java.lang.String |
internalKey()
Optional key declared and used by the underlying rule engine.
|
java.lang.String |
language()
Language of rule, for example
java |
java.lang.String |
param(java.lang.String key)
Value of given parameter.
|
java.util.Map<java.lang.String,java.lang.String> |
params()
Immutable parameter values.
|
RuleKey |
ruleKey() |
java.lang.String |
severity()
Non-null severity.
|
java.lang.String |
templateRuleKey()
Optional rule key of the template rule.
|
public RuleKey ruleKey()
ruleKey
in interface ActiveRule
public java.lang.String severity()
ActiveRule
severity
in interface ActiveRule
Severity
public java.lang.String language()
ActiveRule
java
language
in interface ActiveRule
public java.lang.String param(java.lang.String key)
ActiveRule
null
if the parameter key does not
exist on the rule or if the parameter has no value nor default value.param
in interface ActiveRule
public java.util.Map<java.lang.String,java.lang.String> params()
ActiveRule
params
in interface ActiveRule
public java.lang.String internalKey()
ActiveRule
com.puppycrawl.tools.checkstyle.checks.FooCheck
whereas its internal key can be Checker/TreeWalker/Foo
.internalKey
in interface ActiveRule
public java.lang.String templateRuleKey()
ActiveRule
templateRuleKey
in interface ActiveRule
public long createdAt()