Package org.yamcs.mdb
Class ConditionParser
java.lang.Object
org.yamcs.mdb.ConditionParser
used by the SpreadsheetLoader to parse conditions
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseBooleanExpression
(String rawExpression) Boolean expression has the following pattern: op(epx1;exp2;...parseMatchCriteria
(String criteriaString) toComparison
(String comparisonString)
-
Constructor Details
-
ConditionParser
-
-
Method Details
-
parseMatchCriteria
- Throws:
ParseException
-
parseBooleanExpression
Boolean expression has the following pattern: op(epx1;exp2;...;expn) op is & (AND) or | (OR) expi are boolean expression or condition A condition is defined as: parametername op value value can be - plain value - quoted with " or ”. The two quote characters can be used interchangeably . Backslash can be use to escape those double quote. - $other_parametername parametername can be suffixed with .raw Top level expression can be in the form epx1;exp2;...;expn which will be transformed into &(epx1;exp2;...;expn) for compatibility with the previously implemented Comparison- Parameters:
rawExpression
-- Returns:
- Throws:
ParseException
-
toComparison
- Throws:
ParseException
-