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 |
|---|---|
BlockStatement |
body |
private F |
dynamicFunction |
F |
function |
private int |
hash
Cache the hash code for the expression
|
List<ParameterExpression> |
parameterList |
nodeType, type| Modifier | Constructor and Description |
|---|---|
|
FunctionExpression(Class<F> type,
BlockStatement body,
List<ParameterExpression> parameters) |
private |
FunctionExpression(Class<F> type,
F function,
BlockStatement body,
List<ParameterExpression> parameterList) |
|
FunctionExpression(F function) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
accept(ExpressionWriter writer,
int lprec,
int rprec) |
Expression |
accept(Shuttle shuttle) |
<R> R |
accept(Visitor<R> visitor) |
FunctionExpression.Invokable |
compile() |
boolean |
equals(Object o) |
private Method |
getAbstractMethod() |
private String |
getAbstractMethodName() |
F |
getFunction() |
int |
hashCode() |
private boolean |
isAbstractMethodPrimitive() |
canReduceaccept, accept0, evaluate, getNodeType, getType, toStringpublic final BlockStatement body
public final List<ParameterExpression> parameterList
private int hash
private FunctionExpression(Class<F> type, F function, BlockStatement body, 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()
void accept(ExpressionWriter writer, int lprec, int rprec)
accept in class AbstractNodeprivate boolean isAbstractMethodPrimitive()
private String getAbstractMethodName()
private Method getAbstractMethod()
public boolean equals(Object o)
equals in class AbstractNodepublic int hashCode()
hashCode in class AbstractNodeCopyright © 2012–2021 The Apache Software Foundation. All rights reserved.