Package aQute.bnd.osgi.resource
Class FilterParser.RangeExpression
- java.lang.Object
-
- aQute.bnd.osgi.resource.FilterParser.Expression
-
- aQute.bnd.osgi.resource.FilterParser.SimpleExpression
-
- aQute.bnd.osgi.resource.FilterParser.RangeExpression
-
- Enclosing class:
- FilterParser
public static class FilterParser.RangeExpression extends FilterParser.SimpleExpression
-
-
Field Summary
Fields Modifier and Type Field Description (package private) FilterParser.SimpleExpression
high
(package private) FilterParser.SimpleExpression
low
-
Fields inherited from class aQute.bnd.osgi.resource.FilterParser.SimpleExpression
cached, key, op, value
-
Fields inherited from class aQute.bnd.osgi.resource.FilterParser.Expression
FALSE, TRUE
-
-
Constructor Summary
Constructors Constructor Description RangeExpression(java.lang.String key, FilterParser.SimpleExpression low, FilterParser.SimpleExpression high)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
eval(java.lang.Object scalar)
FilterParser.SimpleExpression
getHigh()
FilterParser.SimpleExpression
getLow()
java.lang.String
getRangeString()
(package private) static FilterParser.Expression
make(java.lang.String key, FilterParser.SimpleExpression low, FilterParser.SimpleExpression high)
void
toString(java.lang.StringBuilder sb)
<T> T
visit(FilterParser.ExpressionVisitor<T> visitor)
-
Methods inherited from class aQute.bnd.osgi.resource.FilterParser.SimpleExpression
eval, getKey, getOp, getValue, make, not, query
-
Methods inherited from class aQute.bnd.osgi.resource.FilterParser.Expression
toString
-
-
-
-
Field Detail
-
low
final FilterParser.SimpleExpression low
-
high
final FilterParser.SimpleExpression high
-
-
Constructor Detail
-
RangeExpression
public RangeExpression(java.lang.String key, FilterParser.SimpleExpression low, FilterParser.SimpleExpression high)
-
-
Method Detail
-
eval
protected boolean eval(java.lang.Object scalar)
- Overrides:
eval
in classFilterParser.SimpleExpression
-
visit
public <T> T visit(FilterParser.ExpressionVisitor<T> visitor)
- Overrides:
visit
in classFilterParser.SimpleExpression
-
make
static FilterParser.Expression make(java.lang.String key, FilterParser.SimpleExpression low, FilterParser.SimpleExpression high)
-
getRangeString
public java.lang.String getRangeString()
-
toString
public void toString(java.lang.StringBuilder sb)
- Overrides:
toString
in classFilterParser.SimpleExpression
-
getLow
public FilterParser.SimpleExpression getLow()
-
getHigh
public FilterParser.SimpleExpression getHigh()
-
-