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

Last change on this file since 7159 was 7159, checked in by Oliver Schonefeld, 6 years ago
  • fix Visitor to correctly traverse query parse tree
  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/**
2 * This software is copyright (c) 2013-2016 by
3 *  - 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 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 AND expression node.
24 */
25public class ExpressionAnd extends QueryNode {
26
27    /**
28     * Constructor.
29     *
30     * @param children child elements covered by AND expression.
31     */
32    ExpressionAnd(List<QueryNode> children) {
33        super(QueryNodeType.EXPRESSION_AND, children);
34    }
35
36
37    @Override
38    public void accept(QueryVisitor visitor) {
39        if (!children.isEmpty()) {
40            for (QueryNode child : children) {
41                child.accept(visitor);
42            }
43        }
44        visitor.visit(this);
45    }
46
47} // class ExpressionAnd
Note: See TracBrowser for help on using the repository browser.