Class CheckStyleRules
- java.lang.Object
-
- edu.hm.hafner.analysis.parser.checkstyle.CheckStyleRules
-
public class CheckStyleRules extends Object
Reads the meta data of the Checkstyle rules from the DocBook files of the Checkstyle distribution.- Author:
- Ullrich Hafner
-
-
Constructor Summary
Constructors Constructor Description CheckStyleRules()Loads the available rules into a map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription(String name)Returns the description of the Checkstyle rule with the specified name.RulegetRule(String name)Returns the Checkstyle rule with the specified name.Collection<Rule>getRules()Returns all Checkstyle rules.
-
-
-
Method Detail
-
getRules
public Collection<Rule> getRules()
Returns all Checkstyle rules.- Returns:
- all Checkstyle rules
-
getRule
public Rule getRule(String name)
Returns the Checkstyle rule with the specified name.- Parameters:
name- the name of the rule- Returns:
- the Checkstyle rule with the specified name.
-
-