public class OperationExpressionHolder extends AbstractClosureHolder
FunctionExpression
to ClosureHolder
adapter. This adapter does not support
handles.Constructor and Description |
---|
OperationExpressionHolder(Namespace namespace,
ClosureType type,
SignatureExpression expr,
ClosureOrigin origin)
Creates new instance of
OperationExpressionHolder . |
Modifier and Type | Method and Description |
---|---|
Object |
execute(InterpreterConfiguration configuration,
InterpreterStackTrace stackTrace,
Object... arguments)
Executes this closure with given arguments.
|
Object |
executeInNamespace(Namespace namespace,
InterpreterStackTrace stackTrace,
Object... arguments)
Execute this closure in the given namespace.
|
ClosureOrigin |
getClosureOrigin() |
String |
getExpressionString()
Returns a string representation of this closure holder expression.
|
ClosureType |
getType()
Returns the type of the holder.
|
String |
toString() |
execute, execute, execute, getId, getNamespace, getNotCompiledValueHolder
public OperationExpressionHolder(Namespace namespace, ClosureType type, SignatureExpression expr, ClosureOrigin origin)
OperationExpressionHolder
.namespace
- type
- expr
- origin
- NullPointerException
- if namespace
or type
or expr
is nullpublic Object execute(InterpreterConfiguration configuration, InterpreterStackTrace stackTrace, Object... arguments) throws ErrorException
ClosureHolder
configuration
- configuration to apply while interpreting closurestackTrace
- a stack traceErrorException
public ClosureType getType()
ValueHolder
public String getExpressionString()
ClosureHolder
public ClosureOrigin getClosureOrigin()
null
public Object executeInNamespace(Namespace namespace, InterpreterStackTrace stackTrace, Object... arguments) throws ErrorException
ClosureHolderInternal
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.