F - Function typepublic final class FunctionExpression<F extends Function<?>> extends LambdaExpression
| Modifier and Type | Class and Description |
|---|---|
static interface |
FunctionExpression.Invokable
Function that can be invoked with a variable number of arguments.
|
| Modifier and Type | Field and Description |
|---|---|
@Nullable BlockStatement |
body |
F |
function |
List<ParameterExpression> |
parameterList |
nodeType, type| Constructor and Description |
|---|
FunctionExpression(Class<F> type,
BlockStatement body,
List<ParameterExpression> parameters) |
FunctionExpression(F function) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
accept(Shuttle shuttle) |
<R> R |
accept(Visitor<R> visitor) |
FunctionExpression.Invokable |
compile() |
boolean |
equals(@Nullable Object o) |
F |
getFunction() |
int |
hashCode() |
canReduceaccept, evaluate, getNodeType, getType, toStringpublic final @Nullable BlockStatement body
public final List<ParameterExpression> parameterList
public FunctionExpression(F function)
public FunctionExpression(Class<F> type, BlockStatement body, List<ParameterExpression> parameters)
public Expression accept(Shuttle shuttle)
accept in interface Nodeaccept in class LambdaExpressionpublic <R> R accept(Visitor<R> visitor)
accept in interface Nodeaccept in class LambdaExpressionpublic FunctionExpression.Invokable compile()
public F getFunction()
public boolean equals(@Nullable Object o)
equals in class AbstractNodepublic int hashCode()
hashCode in class AbstractNodeCopyright © 2012-2021 Apache Software Foundation. All Rights Reserved.