Package org.geotools.mbstyle.expression
Class MBDecision
- Object
-
- ExpressionAbstract
-
- FunctionImpl
-
- MBExpression
-
- MBDecision
-
- All Implemented Interfaces:
Expression
,Function
public class MBDecision extends MBExpression
The expressions in this section can be used to add conditional logic to your styles. For example, the 'case' expression provides basic "if/then/else" logic, and 'match' allows you to map specific values of an input expression to different output expressions.
-
-
Field Summary
-
Fields inherited from class MBExpression
colors, decisions, featureData, ff, heatMap, json, lookUp, math, name, parse, ramps, string, transformer, types, variableBindings, zoom
-
Fields inherited from class FunctionImpl
functionName
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description MBDecision(JSONArray json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
getExpression()
Determines which expression to use.-
Methods inherited from class MBExpression
canCreate, create, getName, throwInsufficientArgumentCount, throwUnexpectedArgumentCount, transformExpression, transformLiteral
-
Methods inherited from class FunctionImpl
accept, dispatchArguments, equals, evaluate, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Method Detail
-
getExpression
public Expression getExpression() throws MBFormatException
Description copied from class:MBExpression
Determines which expression to use.- Specified by:
getExpression
in classMBExpression
- Throws:
MBFormatException
-
-