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 booleanisOperator(char ch) (package private) OSGiFilterparse()Do the parsingprivate OSGiFilterparseAnd()private CompareFilter.Operatorprivate Stringprivate OSGiFilterprivate OSGiFilterprivate voidparseFilterList(MultiOperatorFilter filter) private OSGiFilterparseNot()private OSGiFilterprivate OSGiFilterparseOr()private charreadNext()private voidprivate voidunread()
-
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()
-