Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
QueryParserConstants.cs
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /* Generated By:JavaCC: Do not edit this line. QueryParserConstants.java */
19 
20 using System;
21 
22 namespace Lucene.Net.QueryParsers
23 {
24 
25 
29  public class QueryParserConstants
30  {
32  protected internal const int EndOfFileToken = 0;
34  protected internal const int NumCharToken = 1;
36  protected internal const int EscapedCharToken = 2;
38  protected internal const int TermStartCharToken = 3;
40  protected internal const int TermCharToken = 4;
42  protected internal const int WhitespaceToken = 5;
44  protected internal const int QuotedCharToken = 6;
46  protected internal const int AndToken = 8;
48  protected internal const int OrToken = 9;
50  protected internal const int NotToken = 10;
52  protected internal const int PlusToken = 11;
54  protected internal const int MinusToken = 12;
56  protected internal const int LParanToken = 13;
58  protected internal const int RParenToken = 14;
60  protected internal const int ColonToken = 15;
62  protected internal const int StarToken = 16;
64  protected internal const int CaratToken = 17;
66  protected internal const int QuotedToken = 18;
68  protected internal const int TermToken = 19;
70  protected internal const int FuzzySlopToken = 20;
72  protected internal const int PrefixTermToken = 21;
74  protected internal const int WildTermToken = 22;
76  protected internal const int RangeInStartToken = 23;
78  protected internal const int RangeExStartToken = 24;
80  protected internal const int NumberToken = 25;
82  protected internal const int RangeInToToken = 26;
84  protected internal const int RangeInEndToken = 27;
86  protected internal const int RangeInQuotedToken = 28;
88  protected internal const int RangeInGoopToken = 29;
90  protected internal const int RangeExToToken = 30;
92  protected internal const int RangeExEndToken = 31;
94  protected internal const int RangeExQuotedToken = 32;
96  protected internal const int RangeExGoopToken = 33;
98  protected internal const int BoostToken = 0;
100  protected const int RangeExToken = 1;
102  protected internal const int RangeInToken = 2;
104  protected internal const int DefaultToken = 3;
106  protected internal static System.String[] tokenImage = new System.String[] {
107  "<EOF>",
108  "<_NUM_CHAR>",
109  "<_ESCAPED_CHAR>",
110  "<_TERM_START_CHAR>",
111  "<_TERM_CHAR>",
112  "<_WHITESPACE>",
113  "<_QUOTED_CHAR>",
114  "<token of kind 7>",
115  "<AND>",
116  "<OR>",
117  "<NOT>",
118  "\"+\"",
119  "\"-\"",
120  "\"(\"",
121  "\")\"",
122  "\":\"",
123  "\"*\"",
124  "\"^\"",
125  "<QUOTED>",
126  "<TERM>",
127  "<FUZZY_SLOP>",
128  "<PREFIXTERM>",
129  "<WILDTERM>",
130  "\"[\"",
131  "\"{\"",
132  "<NUMBER>",
133  "\"TO\"",
134  "\"]\"",
135  "<RANGEIN_QUOTED>",
136  "<RANGEIN_GOOP>",
137  "\"TO\"",
138  "\"}\"",
139  "<RANGEEX_QUOTED>",
140  "<RANGEEX_GOOP>"
141  };
142  }
143 }