|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.rule.AbstractAstVisitorRule
groovy.org.codenarc.rule.naming.FactoryMethodNameRule
class FactoryMethodNameRule extends AbstractAstVisitorRule
A factory method is a method that creates objects, and they are typically named either buildFoo(), makeFoo(), or createFoo(). This rule enforces that only one naming convention is used. It defaults to makeFoo(), but that can be changed using the property 'regex'.
Property Summary | |
---|---|
Class |
astVisitorClass
|
String |
name
|
int |
priority
|
String |
regex
|
Property Detail |
---|
Class astVisitorClass
String name
int priority
String regex
Groovy Documentation