|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.batch.rule.internal.DefaultActiveRule
@Immutable public class DefaultActiveRule
Method Summary | |
---|---|
String |
internalKey()
Optional key declared and used by the underlying rule engine. |
String |
language()
Language of rule, for example java |
String |
name()
|
String |
param(String key)
Value of given parameter. |
Map<String,String> |
params()
Immutable parameter values. |
RuleKey |
ruleKey()
|
String |
severity()
Non-null severity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public RuleKey ruleKey()
ruleKey
in interface ActiveRule
public String name()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |