org.codenarc.rule.naming
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.
- see:
- ClassNameRule
- see:
- InterfaceNameRule
- 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
-
AbstractClassNameRule
AbstractClassNameRule()
-
isReady
boolean isReady()
-
Groovy Documentation