1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.expression; | |
8 | ||
9 | import java.util.List; | |
10 | import lombok.EqualsAndHashCode; | |
11 | import lombok.Getter; | |
12 | import lombok.RequiredArgsConstructor; | |
13 | import lombok.ToString; | |
14 | import org.opensearch.sql.expression.function.FunctionImplementation; | |
15 | import org.opensearch.sql.expression.function.FunctionName; | |
16 | ||
17 | /** | |
18 | * Function Expression. | |
19 | */ | |
20 | @EqualsAndHashCode | |
21 | @RequiredArgsConstructor | |
22 | @ToString | |
23 | public abstract class FunctionExpression implements Expression, FunctionImplementation { | |
24 | @Getter | |
25 | private final FunctionName functionName; | |
26 | ||
27 | @Getter | |
28 | private final List<Expression> arguments; | |
29 | ||
30 | @Override | |
31 | public <T, C> T accept(ExpressionNodeVisitor<T, C> visitor, C context) { | |
32 |
1
1. accept : replaced return value with null for org/opensearch/sql/expression/FunctionExpression::accept → KILLED |
return visitor.visitFunction(this, context); |
33 | } | |
34 | ||
35 | } | |
Mutations | ||
32 |
1.1 |