Last change
on this file since 7273 was
7273,
checked in by Oliver Schonefeld, 2 years ago
|
|
-
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 | */ |
---|
17 | package eu.clarin.sru.server.fcs.parser; |
---|
18 | |
---|
19 | |
---|
20 | /** |
---|
21 | * A FCS-QL expression tree NOT expression node. |
---|
22 | */ |
---|
23 | public class ExpressionNot extends QueryNode { |
---|
24 | |
---|
25 | /** |
---|
26 | * Constructor. |
---|
27 | * |
---|
28 | * @param child |
---|
29 | * the child expression |
---|
30 | */ |
---|
31 | ExpressionNot(QueryNode child) { |
---|
32 | super(QueryNodeType.EXPRESSION_NOT, child); |
---|
33 | } |
---|
34 | |
---|
35 | |
---|
36 | @Override |
---|
37 | public String toString() { |
---|
38 | StringBuilder sb = new StringBuilder(); |
---|
39 | sb.append("(") |
---|
40 | .append(nodeType.toDisplayString()) |
---|
41 | .append(children.get(0)) |
---|
42 | .append(")"); |
---|
43 | return sb.toString(); |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | @Override |
---|
48 | public void accept(QueryVisitor visitor) { |
---|
49 | children.get(0).accept(visitor); |
---|
50 | visitor.visit(this); |
---|
51 | } |
---|
52 | |
---|
53 | } // class ExpressionNot |
---|
Note: See
TracBrowser
for help on using the repository browser.