Class Expression
- java.lang.Object
-
- org.openstreetmap.josm.data.imagery.vectortile.mapbox.style.Expression
-
public final class Expression extends java.lang.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 ExpressionEMPTY_EXPRESSIONAn empty expression to useprivate java.lang.StringmapcssFilterExpression
-
Constructor Summary
Constructors Constructor Description Expression(jakarta.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 java.lang.StringconvertToString(jakarta.json.JsonValue value)Convert a value to a stringbooleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
EMPTY_EXPRESSION
public static final Expression EMPTY_EXPRESSION
An empty expression to use
-
mapcssFilterExpression
private final java.lang.String mapcssFilterExpression
-
-
Constructor Detail
-
Expression
public Expression(jakarta.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 java.lang.String convertToString(jakarta.json.JsonValue value)
Convert a value to a string- Parameters:
value- The value to convert- Returns:
- A string
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-