public final class ExpressionFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionFactory.AndOperator
"And" logical operator.
|
static class |
ExpressionFactory.CondOperator
Conditional operator.
|
(package private) static interface |
ExpressionFactory.Factory |
static class |
ExpressionFactory.IsInsideFunction
Functions#inside implementation for use in MapCSSTagChecker |
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 interface |
ExpressionFactory.QuadFunction<T,U,V,W,R>
Represents a function that accepts four arguments and produces a result.
|
static interface |
ExpressionFactory.TriFunction<T,U,V,R>
Represents a function that accepts three arguments and produces a result.
|
Modifier and Type | Field and Description |
---|---|
(package private) static Map<String,ExpressionFactory.Factory> |
FACTORY_MAP |
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 void |
initFactories() |
static final Map<String,ExpressionFactory.Factory> FACTORY_MAP
private ExpressionFactory()
private static void initFactories()
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
.