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 booleanisOperator(char ch)(package private) OSGiFilterparse()Do the parsingprivate OSGiFilterparseAnd()private CompareFilter.OperatorparseCompareOperator()private java.lang.StringparseCompareValue()private OSGiFilterparseFilter()private OSGiFilterparseFilterComp()private voidparseFilterList(MultiOperatorFilter filter)private OSGiFilterparseNot()private OSGiFilterparseOperation()private OSGiFilterparseOr()private charreadNext()private voidskipWhiteSpace()private voidunread()
-
-
-
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()
-
-