public final class ExpressionFactory extends java.lang.Object
createFunctionExpression(java.lang.String, java.util.List<org.openstreetmap.josm.gui.mappaint.mapcss.Expression>)
.Modifier and Type | Class and Description |
---|---|
static class |
ExpressionFactory.AndOperator
"And" logical operator.
|
static class |
ExpressionFactory.ArrayFunction
Function that takes an arbitrary number of arguments.
|
static class |
ExpressionFactory.CondOperator
Conditional operator.
|
static class |
ExpressionFactory.Functions
List of functions that can be used in MapCSS expressions.
|
static class |
ExpressionFactory.LengthFunction
Function to calculate the length of a string or list in a MapCSS eval expression.
|
static class |
ExpressionFactory.MinMaxFunction
Computes the maximum/minimum value an arbitrary number of floats, or a list of floats.
|
(package private) static interface |
ExpressionFactory.NullableArguments
Marks functions which should be executed also when one or more arguments are null.
|
static class |
ExpressionFactory.NullExpression
Expression that always evaluates to null.
|
static class |
ExpressionFactory.OrOperator
"Or" logical operator.
|
static class |
ExpressionFactory.ParameterFunction
Function that takes a certain number of argument with specific type.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.List<java.lang.reflect.Method> |
arrayFunctions |
private static java.util.List<java.lang.reflect.Method> |
parameterFunctions |
private static java.util.List<java.lang.reflect.Method> |
parameterFunctionsEnv |
Modifier | Constructor and Description |
---|---|
private |
ExpressionFactory() |
Modifier and Type | Method and Description |
---|---|
static Expression |
createFunctionExpression(java.lang.String name,
java.util.List<Expression> args)
Main method to create an function-like expression.
|
private static final java.util.List<java.lang.reflect.Method> arrayFunctions
private static final java.util.List<java.lang.reflect.Method> parameterFunctions
private static final java.util.List<java.lang.reflect.Method> parameterFunctionsEnv
private ExpressionFactory()
public static Expression createFunctionExpression(java.lang.String name, java.util.List<Expression> args)
name
- the name of the function or operatorargs
- the list of arguments (as expressions)ExpressionFactory.NullExpression.INSTANCE
.