Class Expression.ExpressionLiteral
java.lang.Object
com.trimblemaps.mapsdk.style.expressions.Expression
com.trimblemaps.mapsdk.style.expressions.Expression.ExpressionLiteral
- Enclosing class:
- Expression
ExpressionLiteral wraps an object to be used as a literal in an expression.
ExpressionLiteral is created with Expression.literal(Number), Expression.literal(boolean),
Expression.literal(String) and Expression.literal(Object).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.trimblemaps.mapsdk.style.expressions.Expression
Expression.Array, Expression.Converter, Expression.ExpressionLiteral, Expression.FormatEntry, Expression.FormatOption, Expression.Interpolator, Expression.NumberFormatOption, Expression.Stop -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for the expression literal.Object[]toArray()Converts the expression to Object array representation.toString()Returns a string representation of the expression literal.toValue()Get the literal object.Methods inherited from class com.trimblemaps.mapsdk.style.expressions.Expression
abs, abs, accumulated, acos, acos, all, any, array, asin, asin, at, at, atan, atan, bool, ceil, ceil, coalesce, collator, collator, collator, collator, color, concat, concat, cos, cos, cubicBezier, cubicBezier, distance, division, division, downcase, downcase, e, eq, eq, eq, eq, eq, eq, exponential, exponential, floor, floor, format, formatEntry, formatEntry, formatEntry, formatEntry, geometryType, get, get, get, get, gt, gt, gt, gt, gt, gte, gte, gte, gte, gte, has, has, has, has, heatmapDensity, id, image, in, in, in, indexOf, indexOf, interpolate, interpolate, isSupportedScript, isSupportedScript, length, length, let, linear, lineProgress, literal, literal, literal, literal, literal, ln, ln, ln2, log10, log10, log2, log2, lt, lt, lt, lt, lt, lte, lte, lte, lte, lte, match, match, max, max, min, min, mod, mod, neq, neq, neq, neq, neq, neq, not, not, number, numberFormat, numberFormat, object, pi, pow, pow, product, product, properties, raw, resolvedLocale, rgb, rgb, rgba, rgba, round, round, sin, sin, slice, slice, sqrt, sqrt, step, step, step, step, step, step, step, step, stop, string, subtract, subtract, subtract, subtract, sum, sum, switchCase, tan, tan, toBool, toColor, toNumber, toRgba, toString, typeOf, upcase, upcase, var, var, within, zoom
-
Field Details
-
literal
-
-
Constructor Details
-
ExpressionLiteral
Create an expression literal.- Parameters:
object- the object to be treated as literal
-
-
Method Details
-
toValue
Get the literal object.- Returns:
- the literal object
-
toArray
Description copied from class:ExpressionConverts the expression to Object array representation.The output will later be converted to a JSON Object array.
- Overrides:
toArrayin classExpression- Returns:
- the converted object array expression
-
toString
Returns a string representation of the expression literal.- Overrides:
toStringin classExpression- Returns:
- a string representation of the object.
-
equals
Indicates whether some other object is "equal to" this one.- Overrides:
equalsin classExpression- Parameters:
o- the other object- Returns:
- true if equal, false if not
-
hashCode
public int hashCode()Returns a hash code value for the expression literal.- Overrides:
hashCodein classExpression- Returns:
- a hash code value for this expression literal
-