@Immutable public class DefaultActiveRule extends Object implements ActiveRule
Modifier and Type | Method and Description |
---|---|
long |
createdAt() |
String |
internalKey()
Optional key declared and used by the underlying rule engine.
|
String |
language()
Language of rule, for example
java |
String |
param(String key)
Value of given parameter.
|
Map<String,String> |
params()
Immutable parameter values.
|
RuleKey |
ruleKey() |
String |
severity()
Non-null severity.
|
String |
templateRuleKey()
Optional rule key of the template rule.
|
public RuleKey ruleKey()
ruleKey
in interface ActiveRule
public String severity()
ActiveRule
severity
in interface ActiveRule
Severity
public String language()
ActiveRule
java
language
in interface ActiveRule
public String param(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 Map<String,String> params()
ActiveRule
params
in interface ActiveRule
public String internalKey()
ActiveRule
com.puppycrawl.tools.checkstyle.checks.FooCheck
whereas its internal key can be Checker/TreeWalker/Foo
.internalKey
in interface ActiveRule
public String templateRuleKey()
ActiveRule
templateRuleKey
in interface ActiveRule
public long createdAt()
Copyright © 2009–2017 SonarSource. All rights reserved.