public static class Expression.ExpressionLiteral extends Expression
ExpressionLiteral is created with Expression.literal(Number)
, Expression.literal(boolean)
,
Expression.literal(String)
and Expression.literal(Object)
.
Expression.Array, Expression.Converter, Expression.ExpressionLiteral, Expression.FormatEntry, Expression.FormatOption, Expression.Interpolator, Expression.NumberFormatOption, Expression.Stop
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
literal |
Constructor and Description |
---|
ExpressionLiteral(java.lang.Object object)
Create an expression literal.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the expression literal.
|
java.lang.Object[] |
toArray()
Converts the expression to Object array representation.
|
java.lang.String |
toString()
Returns a string representation of the expression literal.
|
java.lang.Object |
toValue()
Get the literal object.
|
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, 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, 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
public ExpressionLiteral(@NonNull java.lang.Object object)
object
- the object to be treated as literalpublic java.lang.Object toValue()
@NonNull public java.lang.Object[] toArray()
Expression
The output will later be converted to a JSON Object array.
toArray
in class Expression
public java.lang.String toString()
toString
in class Expression
public boolean equals(@Nullable java.lang.Object o)
equals
in class Expression
o
- the other objectpublic int hashCode()
hashCode
in class Expression