org.codenarc.rule.naming
[Groovy] Class AbstractClassNameRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.naming.AbstractClassNameRule
class AbstractClassNameRule
extends AbstractAstVisitorRule
Rule that verifies that the name of an abstract class 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.
This rule ignores interfaces.
- Authors:
- Chris Mair
- Version:
- \$Revision: 439 \$ - \$Date: 2010-11-08 15:16:30 -0500 (Mon, 08 Nov 2010) \$
- See Also:
- ClassNameRule
- InterfaceNameRule
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