Package org.codenarc.rule.grails
Class GrailsStatelessServiceRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.generic.StatelessClassRule
org.codenarc.rule.grails.GrailsStatelessServiceRule
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Rule
-
Field Summary
Fields inherited from class org.codenarc.rule.AbstractAstVisitorRule
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.MetaClass
getName()
int
getProperty
(String property) invokeMethod
(String method, Object arguments) void
setApplyToClassNames
(String value) void
setApplyToFilesMatching
(String value) void
setMetaClass
(groovy.lang.MetaClass mc) void
Set the unique name for this rulevoid
setPriority
(int value) Set the priority for this rulevoid
setProperty
(String property, Object value) protected boolean
shouldIgnoreField
(org.codehaus.groovy.ast.FieldNode fieldNode) Methods inherited from class org.codenarc.rule.generic.StatelessClassRule
getAstVisitorClass, getIgnoreFieldNames, getIgnoreFieldTypes, isReady, setAddToIgnoreFieldNames, setAstVisitorClass, setIgnoreFieldNames, setIgnoreFieldTypes
Methods inherited from class org.codenarc.rule.AbstractAstVisitorRule
applyTo, getAstVisitor, getDoNotApplyToClassNames, setDoNotApplyToClassNames, shouldApplyThisRuleTo
Methods inherited from class org.codenarc.rule.AbstractRule
applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getApplyToFileNames, getCompilerPhase, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getViolationMessage, isEnabled, setApplyToFileNames, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setViolationMessage, toString, validate
-
Constructor Details
-
GrailsStatelessServiceRule
public GrailsStatelessServiceRule()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classStatelessClassRule
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classStatelessClassRule
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classStatelessClassRule
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classStatelessClassRule
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classStatelessClassRule
-
getName
- Specified by:
getName
in interfaceRule
- Overrides:
getName
in classStatelessClassRule
- Returns:
- the unique name for this rule
-
setName
Description copied from class:AbstractRule
Set the unique name for this rule- Overrides:
setName
in classStatelessClassRule
- Parameters:
value
- - the name for this rule; this should be unique
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceRule
- Overrides:
getPriority
in classStatelessClassRule
- Returns:
- the priority of this rule, between 1 (highest priority) and 3 (lowest priority), inclusive.
-
setPriority
public void setPriority(int value) Description copied from class:AbstractRule
Set the priority for this rule- Overrides:
setPriority
in classStatelessClassRule
- Parameters:
value
- - the priority of this rule, between 1 (highest priority) and 3 (lowest priority), inclusive.
-
getApplyToFilesMatching
- Overrides:
getApplyToFilesMatching
in classAbstractRule
-
setApplyToFilesMatching
- Overrides:
setApplyToFilesMatching
in classAbstractRule
-
getApplyToClassNames
- Overrides:
getApplyToClassNames
in classAbstractAstVisitorRule
-
setApplyToClassNames
- Overrides:
setApplyToClassNames
in classAbstractAstVisitorRule
-
shouldIgnoreField
protected boolean shouldIgnoreField(org.codehaus.groovy.ast.FieldNode fieldNode) - Overrides:
shouldIgnoreField
in classStatelessClassRule
-