(Expr caseExpr, List<CaseWhenClause> whenClauses, Expr elseExpr)
| 81 | private boolean hasElseExpr_; |
| 82 | |
| 83 | public CaseExpr(Expr caseExpr, List<CaseWhenClause> whenClauses, Expr elseExpr) { |
| 84 | super(); |
| 85 | if (caseExpr != null) { |
| 86 | children_.add(caseExpr); |
| 87 | hasCaseExpr_ = true; |
| 88 | } |
| 89 | for (CaseWhenClause whenClause: whenClauses) { |
| 90 | Preconditions.checkNotNull(whenClause.getWhenExpr()); |
| 91 | children_.add(whenClause.getWhenExpr()); |
| 92 | Preconditions.checkNotNull(whenClause.getThenExpr()); |
| 93 | children_.add(whenClause.getThenExpr()); |
| 94 | } |
| 95 | if (elseExpr != null) { |
| 96 | children_.add(elseExpr); |
| 97 | hasElseExpr_ = true; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Constructs an equivalent CaseExpr representation. |
nothing calls this directly
no test coverage detected