|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codenarc.rule.AbstractRule
org.codenarc.rule.generic.IllegalRegexRule
public class IllegalRegexRule
| Constructor Summary | |
|---|---|
IllegalRegexRule()
|
|
| Method Summary | |
|---|---|
void |
applyTo(SourceCode sourceCode,
List violations)
Apply this rule to the specified source and return a list of violations (or an empty List) |
groovy.lang.MetaClass |
getMetaClass()
|
String |
getName()
|
int |
getPriority()
|
Object |
getProperty(String property)
|
String |
getRegex()
|
Object |
invokeMethod(String method,
Object arguments)
|
boolean |
isReady()
Allows rules to check whether preconditions are satisfied and short-circuit execution (i.e., do nothing) if those preconditions are not satisfied. |
void |
setMetaClass(groovy.lang.MetaClass mc)
|
void |
setName(String value)
Set the unique name for this rule |
void |
setPriority(int value)
Set the priority for this rule |
void |
setProperty(String property,
Object value)
|
void |
setRegex(String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IllegalRegexRule()
| Method Detail |
|---|
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String method,
Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String property,
Object value)
setProperty in interface groovy.lang.GroovyObjectpublic String getName()
getName in interface RulegetName in class AbstractRulepublic void setName(String value)
AbstractRule
setName in class AbstractRulevalue - - the name for this rule; this should be uniquepublic int getPriority()
getPriority in interface RulegetPriority in class AbstractRulepublic void setPriority(int value)
AbstractRule
setPriority in class AbstractRulevalue - - the priority of this rule, between 1 (highest priority) and 3 (lowest priority), inclusive.public String getRegex()
public void setRegex(String value)
public boolean isReady()
AbstractRule
isReady in class AbstractRule
public void applyTo(SourceCode sourceCode,
List violations)
AbstractRule
applyTo in class AbstractRulesourceCode - - the source to apply this rule toviolations - - the List of violations to which new violations from this rule are to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||