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.Arrays; | |
10 | import java.util.List; | |
11 | import lombok.EqualsAndHashCode; | |
12 | import lombok.Getter; | |
13 | import lombok.ToString; | |
14 | import org.opensearch.sql.ast.AbstractNodeVisitor; | |
15 | ||
16 | /** | |
17 | * Argument. | |
18 | */ | |
19 | @Getter | |
20 | @ToString | |
21 | @EqualsAndHashCode(callSuper = false) | |
22 | public class UnresolvedArgument extends UnresolvedExpression { | |
23 | private final String argName; | |
24 | private final UnresolvedExpression value; | |
25 | ||
26 | public UnresolvedArgument(String argName, UnresolvedExpression value) { | |
27 | this.argName = argName; | |
28 | this.value = value; | |
29 | } | |
30 | ||
31 | @Override | |
32 | public List<UnresolvedExpression> getChild() { | |
33 |
1
1. getChild : replaced return value with Collections.emptyList for org/opensearch/sql/ast/expression/UnresolvedArgument::getChild → NO_COVERAGE |
return Arrays.asList(value); |
34 | } | |
35 | ||
36 | @Override | |
37 | public <R, C> R accept(AbstractNodeVisitor<R, C> nodeVisitor, C context) { | |
38 |
1
1. accept : replaced return value with null for org/opensearch/sql/ast/expression/UnresolvedArgument::accept → KILLED |
return nodeVisitor.visitUnresolvedArgument(this, context); |
39 | } | |
40 | } | |
Mutations | ||
33 |
1.1 |
|
38 |
1.1 |