Class OSGiFilterParser.Parser

  • Enclosing class:
    OSGiFilterParser

    static class OSGiFilterParser.Parser
    extends java.lang.Object
    • Field Detail

      • text

        private final java.lang.String text
        text to parse
      • length

        private int length
        the length of the source
      • pos

        private int pos
        position in the source
      • c

        private char c
        last read character
    • Constructor Detail

      • Parser

        Parser​(java.lang.String text)
        Default constructor
        Parameters:
        text - the header to parse
    • Method Detail

      • parse

        OSGiFilter parse()
                  throws java.text.ParseException
        Do the parsing
        Returns:
        OSGiFilter
        Throws:
        java.text.ParseException - if something goes wrong
      • readNext

        private char readNext()
      • unread

        private void unread()
      • parseFilter

        private OSGiFilter parseFilter()
                                throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseFilterComp

        private OSGiFilter parseFilterComp()
                                    throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseOperation

        private OSGiFilter parseOperation()
                                   throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseCompareValue

        private java.lang.String parseCompareValue()
      • isOperator

        private boolean isOperator​(char ch)
      • parseCompareOperator

        private CompareFilter.Operator parseCompareOperator()
                                                     throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseAnd

        private OSGiFilter parseAnd()
                             throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseOr

        private OSGiFilter parseOr()
                            throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseFilterList

        private void parseFilterList​(MultiOperatorFilter filter)
                              throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseNot

        private OSGiFilter parseNot()
                             throws java.text.ParseException
        Throws:
        java.text.ParseException
      • skipWhiteSpace

        private void skipWhiteSpace()