|
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.ConstantTernaryExpressionRule
class ConstantTernaryExpressionRule extends AbstractAstVisitorRule
Rule that checks for ternary expressions with a constant value for the boolean expression, such as:
true ? x : yfalse ? x : yBoolean.TRUE ? x : yBoolean.FALSE ? x : ynull ? x : y0 ? x : y99.7 ? x : y"" ? x : y"abc" ? x : y[:] ? x : y[a:123, b:456] ? x : y[a, b, c] ? x : ytrue ?: ynull ?: y99.7 ?: y"abc" ?: y[a:123] ?: y| Property Summary | |
|---|---|
Class |
astVisitorClass
|
String |
name
|
int |
priority
|
| Property Detail |
|---|
Class astVisitorClass
String name
int priority
Groovy Documentation