Last change
on this file since 6882 was
6882,
checked in by Oliver Schonefeld, 8 years ago
|
- add FCS-QL expression tree classes
- modify FCSQueryParser to use expression tree
|
-
Property svn:eol-style set to
native
|
File size:
604 bytes
|
Line | |
---|
1 | package eu.clarin.sru.server.fcs.parser; |
---|
2 | |
---|
3 | |
---|
4 | public class ExpressionNot extends QueryNode { |
---|
5 | |
---|
6 | ExpressionNot(QueryNode child) { |
---|
7 | super(QueryNodeType.EXPRESSION_NOT, child); |
---|
8 | } |
---|
9 | |
---|
10 | |
---|
11 | @Override |
---|
12 | public String toString() { |
---|
13 | StringBuilder sb = new StringBuilder(); |
---|
14 | sb.append("(") |
---|
15 | .append(nodeType.toDisplayString()) |
---|
16 | .append(children.get(0)) |
---|
17 | .append(")"); |
---|
18 | return sb.toString(); |
---|
19 | } |
---|
20 | |
---|
21 | |
---|
22 | @Override |
---|
23 | public void accept(QueryVisitor visitor) { |
---|
24 | visitAnyNode(visitor, children.get(0)); |
---|
25 | visitor.visit(this); |
---|
26 | } |
---|
27 | |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.