Package org.apache.ivy.osgi.filter
Class OSGiFilterParser.Parser
- java.lang.Object
-
- org.apache.ivy.osgi.filter.OSGiFilterParser.Parser
-
- Enclosing class:
- OSGiFilterParser
static class OSGiFilterParser.Parser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Parser(java.lang.String text)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
isOperator(char ch)
(package private) OSGiFilter
parse()
Do the parsingprivate OSGiFilter
parseAnd()
private CompareFilter.Operator
parseCompareOperator()
private java.lang.String
parseCompareValue()
private OSGiFilter
parseFilter()
private OSGiFilter
parseFilterComp()
private void
parseFilterList(MultiOperatorFilter filter)
private OSGiFilter
parseNot()
private OSGiFilter
parseOperation()
private OSGiFilter
parseOr()
private char
readNext()
private void
skipWhiteSpace()
private void
unread()
-
-
-
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()
-
-