source: FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/parser/ExpressionOr.java @ 7273

Last change on this file since 7273 was 7273, checked in by Oliver Schonefeld, 2 years ago
  • update copyright
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/**
2 * This software is copyright (c) 2013-2022 by
3 *  - Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
4 * This is free software. You can redistribute it
5 * and/or modify it under the terms described in
6 * the GNU General Public License v3 of which you
7 * should have received a copy. Otherwise you can download
8 * it from
9 *
10 *   http://www.gnu.org/licenses/gpl-3.0.txt
11 *
12 * @copyright Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
13 *
14 * @license http://www.gnu.org/licenses/gpl-3.0.txt
15 *  GNU General Public License v3
16 */
17package eu.clarin.sru.server.fcs.parser;
18
19import java.util.List;
20
21
22/**
23 * A FCS-QL expression tree OR expression node.
24 */
25public class ExpressionOr extends QueryNode {
26
27    /**
28     * Constructor.
29     *
30     * @param children the children
31     */
32    ExpressionOr(List<QueryNode> children) {
33        super(QueryNodeType.EXPRESSION_OR, children);
34    }
35
36
37    /**
38     * Get the OR expression operands
39     *
40     * @return a list of expressions
41     */
42    public List<QueryNode> getOperands() {
43        return children;
44    }
45
46
47    @Override
48    public void accept(QueryVisitor visitor) {
49        if (!children.isEmpty()) {
50            for (QueryNode child : children) {
51                child.accept(visitor);
52            }
53        }
54        visitor.visit(this);
55    }
56
57} // class ExpressionOr
Note: See TracBrowser for help on using the repository browser.