org.codenarc.rule.naming
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.
- see:
- ClassNameRule
- author:
- Chris Mair
- version:
- $Revision: 69 $ - $Date: 2009-02-25 22:03:41 -0500 (Wed, 25 Feb 2009) $
Methods inherited from class AbstractRule
|
applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport |
astVisitorClass
Class astVisitorClass
-
name
String name
-
priority
int priority
-
regex
String regex
-
InterfaceNameRule
InterfaceNameRule()
-
isReady
boolean isReady()
-
Groovy Documentation