Class KeywordTextParser

java.lang.Object
org.parboiled.BaseActions<ASTNode>
org.parboiled.BaseParser<ASTNode>
org.codice.ddf.opensearch.endpoint.KeywordTextParser
All Implemented Interfaces:
org.parboiled.ContextAware<ASTNode>

public class KeywordTextParser extends org.parboiled.BaseParser<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
    Modifier and Type
    Class
    Description
    class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected final org.parboiled.Rule
     
    protected final org.parboiled.Rule
     
    protected final org.parboiled.Rule
     
    protected static final String
     
    protected final org.parboiled.Rule
     
    protected static final String
     
    protected final org.parboiled.Rule
     
    protected final org.parboiled.Rule
     
    protected static final String
     

    Fields inherited from class org.parboiled.BaseParser

    ANY, DEDENT, EMPTY, EOI, INDENT, NOTHING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.parboiled.Rule
     

    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, ZeroOrMore

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OR_STRING

      protected static final String OR_STRING
      See Also:
    • AND_STRING

      protected static final String AND_STRING
      See Also:
    • NOT_STRING

      protected static final String NOT_STRING
      See Also:
    • SPACE_STRING

      protected static final String 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()