1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.ast.expression; | |
8 | ||
9 | import java.util.List; | |
10 | import lombok.EqualsAndHashCode; | |
11 | import org.opensearch.sql.ast.AbstractNodeVisitor; | |
12 | ||
13 | /** | |
14 | * Expression node that holds a function which should be replaced by its constant[1] value. | |
15 | * [1] Constant at execution time. | |
16 | */ | |
17 | @EqualsAndHashCode(callSuper = false) | |
18 | public class ConstantFunction extends Function { | |
19 | ||
20 | public ConstantFunction(String funcName, List<UnresolvedExpression> funcArgs) { | |
21 | super(funcName, funcArgs); | |
22 | } | |
23 | ||
24 | @Override | |
25 | public <R, C> R accept(AbstractNodeVisitor<R, C> nodeVisitor, C context) { | |
26 |
1
1. accept : replaced return value with null for org/opensearch/sql/ast/expression/ConstantFunction::accept → KILLED |
return nodeVisitor.visitConstantFunction(this, context); |
27 | } | |
28 | } | |
Mutations | ||
26 |
1.1 |