public final class ExpressionFactory extends 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 |
static class |
ExpressionFactory.ArrayFunction
Function that takes an arbitrary number of arguments.
|
static class |
ExpressionFactory.CondOperator
Conditional operator.
|
static class |
ExpressionFactory.Functions |
static class |
ExpressionFactory.LengthFunction
Function to calculate the length of a string or list in a MapCSS eval
expression.
|
static class |
ExpressionFactory.NullExpression
Expression that always evaluates to null.
|
static class |
ExpressionFactory.OrOperator |
static class |
ExpressionFactory.ParameterFunction
Function that takes a certain number of argument with specific type.
|
Modifier and Type | Field and Description |
---|---|
private static List<Method> |
arrayFunctions |
private static ExpressionFactory.Functions |
FUNCTIONS_INSTANCE |
private static List<Method> |
parameterFunctions |
Modifier | Constructor and Description |
---|---|
private |
ExpressionFactory() |
Modifier and Type | Method and Description |
---|---|
static Expression |
createFunctionExpression(String name,
List<Expression> args)
Main method to create an function-like expression.
|
private static final List<Method> arrayFunctions
private static final List<Method> parameterFunctions
private static final ExpressionFactory.Functions FUNCTIONS_INSTANCE
private ExpressionFactory()
public static Expression createFunctionExpression(String name, List<Expression> args)
name
- the name of the function or operatorargs
- the list of arguments (as expressions)ExpressionFactory.NullExpression.INSTANCE
.