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.
Fields inherited from class | Fields |
---|---|
class AbstractAstVisitorRule |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME |
Type | Name and description |
---|---|
java.lang.Class |
astVisitorClass |
java.lang.String |
name |
int |
priority |
java.lang.String |
regex |
Constructor and description |
---|
AbstractClassNameRule() |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
isReady() |
Groovy Documentation