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 com.google.common.collect.ImmutableList; | |
10 | import java.util.List; | |
11 | import lombok.AllArgsConstructor; | |
12 | import lombok.EqualsAndHashCode; | |
13 | import lombok.Getter; | |
14 | import lombok.ToString; | |
15 | import org.opensearch.sql.ast.AbstractNodeVisitor; | |
16 | ||
17 | /** | |
18 | * Expression node that includes a list of Expression nodes. | |
19 | */ | |
20 | @ToString | |
21 | @EqualsAndHashCode(callSuper = false) | |
22 | @AllArgsConstructor | |
23 | public class AttributeList extends UnresolvedExpression { | |
24 | @Getter | |
25 | private List<UnresolvedExpression> attrList; | |
26 | ||
27 | @Override | |
28 | public List<UnresolvedExpression> getChild() { | |
29 |
1
1. getChild : replaced return value with Collections.emptyList for org/opensearch/sql/ast/expression/AttributeList::getChild → NO_COVERAGE |
return ImmutableList.copyOf(attrList); |
30 | } | |
31 | ||
32 | @Override | |
33 | public <R, C> R accept(AbstractNodeVisitor<R, C> nodeVisitor, C context) { | |
34 |
1
1. accept : replaced return value with null for org/opensearch/sql/ast/expression/AttributeList::accept → NO_COVERAGE |
return nodeVisitor.visitAttributeList(this, context); |
35 | } | |
36 | } | |
Mutations | ||
29 |
1.1 |
|
34 |
1.1 |