|
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.basic.ConstantIfExpressionRule
class ConstantIfExpressionRule extends AbstractAstVisitorRule
Rule that checks for if statement with a constant value for the if expression, such as:
if (true) { .. }if (false) { .. }if (Boolean.TRUE) { .. }if (Boolean.FALSE) { .. }if (null) { .. }if (0) { .. }if (99.7) { .. }if ("") { .. }if ("abc") { .. }if ([a:123, b:456]) { .. }if ([a, b]) { .. }| Property Summary | |
|---|---|
Class |
astVisitorClass
|
String |
name
|
int |
priority
|
| Property Detail |
|---|
Class astVisitorClass
String name
int priority
Groovy Documentation