Class KeywordTextParser
- All Implemented Interfaces:
org.parboiled.ContextAware<ASTNode>
This parser is based on a modified version of the "IC/DoD Keyword Query Language Specification,
V2.0" (3 October 2012). This spec includes an EBNF that this parser is based on. All changes to
that EBNF were made to add variable whitespace handling and to make parsing more efficient.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final org.parboiled.Ruleprotected final org.parboiled.Ruleprotected final org.parboiled.Ruleprotected static final Stringprotected final org.parboiled.Ruleprotected static final Stringprotected final org.parboiled.Ruleprotected final org.parboiled.Ruleprotected static final StringFields inherited from class org.parboiled.BaseParser
ANY, DEDENT, EMPTY, EOI, INDENT, NOTHING -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.parboiled.BaseParser
ACTION, AnyOf, AnyOf, AnyOf, Ch, CharRange, FirstOf, FirstOf, fromCharArray, fromCharLiteral, fromStringLiteral, IgnoreCase, IgnoreCase, IgnoreCase, newInstance, NoneOf, NoneOf, NTimes, NTimes, OneOrMore, OneOrMore, Optional, Optional, Sequence, Sequence, String, String, Test, Test, TestNot, TestNot, toRule, toRules, ZeroOrMore, ZeroOrMoreMethods inherited from class org.parboiled.BaseActions
currentChar, currentIndex, drop, drop, dup, getContext, hasError, inPredicate, match, matchedChar, matchEnd, matchLength, matchOrDefault, matchRange, matchStart, nodeSuppressed, peek, peek, poke, poke, pop, pop, position, push, push, pushAll, setContext, swap, swap3, swap4, swap5, swap6
-
Field Details
-
OR_STRING
- See Also:
-
AND_STRING
- See Also:
-
NOT_STRING
- See Also:
-
SPACE_STRING
- See Also:
-
orOperator
protected final org.parboiled.Rule orOperator -
andOperator
protected final org.parboiled.Rule andOperator -
notOperator
protected final org.parboiled.Rule notOperator -
lpar
protected final org.parboiled.Rule lpar -
rpar
protected final org.parboiled.Rule rpar -
dblquote
protected final org.parboiled.Rule dblquote
-
-
Constructor Details
-
KeywordTextParser
public KeywordTextParser()
-
-
Method Details
-
inputPhrase
public org.parboiled.Rule inputPhrase()
-