Class Expression
- java.lang.Object
-
- org.openstreetmap.josm.data.imagery.vectortile.mapbox.style.Expression
-
public final class Expression extends Object
A Mapbox vector style expression (immutable)- Since:
- 17862
- See Also:
- https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/
-
-
Field Summary
Fields Modifier and Type Field Description static Expression
EMPTY_EXPRESSION
An empty expression to useprivate static String
EMPTY_STRING
private String
mapcssFilterExpression
-
Constructor Summary
Constructors Constructor Description Expression(javax.json.JsonValue value)
Create a new filter expression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static String
convertToString(javax.json.JsonValue value)
Convert a value to a stringboolean
equals(Object other)
int
hashCode()
String
toString()
-
-
-
Field Detail
-
EMPTY_EXPRESSION
public static final Expression EMPTY_EXPRESSION
An empty expression to use
-
EMPTY_STRING
private static final String EMPTY_STRING
- See Also:
- Constant Field Values
-
mapcssFilterExpression
private final String mapcssFilterExpression
-
-
Constructor Detail
-
Expression
public Expression(javax.json.JsonValue value)
Create a new filter expression. Please note that this currently only supports basic comparators!- Parameters:
value
- The value to parse
-
-
Method Detail
-
convertToString
private static String convertToString(javax.json.JsonValue value)
Convert a value to a string- Parameters:
value
- The value to convert- Returns:
- A string
-
-