groovy.org.codenarc.ruleset
[Groovy] Class XmlReaderRuleSet
java.lang.Object
groovy.org.codenarc.ruleset.XmlReaderRuleSet
- All Implemented Interfaces:
- RuleSet
@SuppressWarnings('DuplicateLiteral')
class XmlReaderRuleSet
A RuleSet
implementation that parses Rule definitions from XML read from a
Reader
. Note that this class attempts to read and parse the XML from within
the constructor.
- Authors:
- Chris Mair
Method Summary |
List
|
getRules()
@return a List of Rule objects
|
XmlReaderRuleSet
XmlReaderRuleSet(Reader reader)
- Construct a new instance on the specified Reader
- Parameters:
reader
- - the Reader from which the XML will be read; must not be null
getRules
List getRules()
-
- Returns:
- a List of Rule objects
Groovy Documentation