Class ExpressionFactory
java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class"And" logical operator.static classConditional operator.(package private) static interfacestatic classFunctions#insideimplementation for use inMapCSSTagCheckerstatic classFunction to calculate the length of a string or list in a MapCSS eval expression.static classComputes the maximum/minimum value an arbitrary number of floats, or a list of floats.(package private) static @interfaceMarks functions which should be executed also when one or more arguments are null.static classExpression that always evaluates to null.static class"Or" logical operator.static interfaceRepresents a function that accepts four arguments and produces a result.static interfaceRepresents a function that accepts three arguments and produces a result. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Map<String,ExpressionFactory.Factory> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressioncreateFunctionExpression(String name, List<Expression> args) Main method to create an function-like expression.private static void
-
Field Details
-
FACTORY_MAP
-
-
Constructor Details
-
ExpressionFactory
private ExpressionFactory()
-
-
Method Details
-
initFactories
-
createFunctionExpression
Main method to create an function-like expression.- Parameters:
name- the name of the function or operatorargs- the list of arguments (as expressions)- Returns:
- the generated Expression. If no suitable function can be found,
returns
ExpressionFactory.NullExpression.INSTANCE.
-