@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.
|
java.lang.String |
qpKey()
Key of the quality profile the rule belongs to.
|
RuleKey |
ruleKey() |
java.lang.String |
severity()
Non-null severity.
|
java.lang.String |
templateRuleKey()
Optional rule key of the template rule.
|
long |
updatedAt() |
public RuleKey ruleKey()
ruleKey in interface ActiveRulepublic java.lang.String severity()
ActiveRuleseverity in interface ActiveRuleSeveritypublic java.lang.String language()
ActiveRulejavalanguage in interface ActiveRulepublic java.lang.String param(java.lang.String key)
ActiveRulenull if the parameter key does not
exist on the rule or if the parameter has no value nor default value.param in interface ActiveRulepublic java.util.Map<java.lang.String,java.lang.String> params()
ActiveRuleparams in interface ActiveRulepublic java.lang.String internalKey()
ActiveRulecom.puppycrawl.tools.checkstyle.checks.FooCheck
whereas its internal key can be Checker/TreeWalker/Foo.internalKey in interface ActiveRulepublic java.lang.String templateRuleKey()
ActiveRuletemplateRuleKey in interface ActiveRulepublic long createdAt()
public long updatedAt()
public java.lang.String qpKey()
ActiveRuleqpKey in interface ActiveRule