org.codenarc.rule.naming
[Groovy] Class InterfaceNameRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.naming.InterfaceNameRule
class InterfaceNameRule
extends AbstractAstVisitorRule
Rule that verifies that the name of an interface matches a regular expression specified in
the regex
property. If that property is null or empty, then this rule is not applied
(i.e., it does nothing). It defaults to null, so this rule must be explicitly configured to be active.
- Authors:
- Chris Mair
- Version:
- \$Revision: 439 \$ - \$Date: 2010-11-08 15:16:30 -0500 (Mon, 08 Nov 2010) \$
- See Also:
- ClassNameRule
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
astVisitorClass
Class astVisitorClass
-
name
String name
-
priority
int priority
-
regex
String regex
-
isReady
boolean isReady()
-
Groovy Documentation