Package org.apache.ivy.osgi.filter
Class OSGiFilterParser.Parser
java.lang.Object
org.apache.ivy.osgi.filter.OSGiFilterParser.Parser
- Enclosing class:
- OSGiFilterParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isOperator
(char ch) (package private) OSGiFilter
parse()
Do the parsingprivate OSGiFilter
parseAnd()
private CompareFilter.Operator
private String
private OSGiFilter
private OSGiFilter
private void
parseFilterList
(MultiOperatorFilter filter) private OSGiFilter
parseNot()
private OSGiFilter
private OSGiFilter
parseOr()
private char
readNext()
private void
private void
unread()
-
Field Details
-
text
text to parse -
length
private int lengththe length of the source -
pos
private int posposition in the source -
c
private char clast read character
-
-
Constructor Details
-
Parser
Parser(String text) Default constructor- Parameters:
text
- the header to parse
-
-
Method Details
-
parse
Do the parsing- Returns:
- OSGiFilter
- Throws:
ParseException
- if something goes wrong
-
readNext
private char readNext() -
unread
private void unread() -
parseFilter
- Throws:
ParseException
-
parseFilterComp
- Throws:
ParseException
-
parseOperation
- Throws:
ParseException
-
parseCompareValue
-
isOperator
private boolean isOperator(char ch) -
parseCompareOperator
- Throws:
ParseException
-
parseAnd
- Throws:
ParseException
-
parseOr
- Throws:
ParseException
-
parseFilterList
- Throws:
ParseException
-
parseNot
- Throws:
ParseException
-
skipWhiteSpace
private void skipWhiteSpace()
-