99100101102103104105
return new ComparisonExpression(ComparisonExpression.Type.EQUAL, left, right); } public static Expression caseWhen(Expression operand, Expression result) { return new SearchedCaseExpression(ImmutableList.of(new WhenClause(operand, result)), null); }
132133134135136137138
Expression falseValue = null; if (node.getFalseValue().isPresent()) { falseValue = treeRewriter.rewrite(node.getFalseValue().get(), context); } return new SearchedCaseExpression(ImmutableList.of(new WhenClause(condition, trueValue)), falseValue); }
96979899100101102