public class OperationExpressionHolder extends AbstractClosureHolder
FunctionExpression
to ClosureHolder
adapter. This adapter does not support
handles.Constructor and Description |
---|
OperationExpressionHolder(String id,
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.
|
ClosureOrigin |
getClosureOrigin() |
String |
getExpressionString()
Returns a string representation of this closure holder expression.
|
String |
getId()
Returns the id of the holder if present.
|
ClosureType |
getType()
Returns the type of the holder.
|
String |
toString() |
execute, execute, execute, getNamespace, getNotCompiledValue
public OperationExpressionHolder(String id, Namespace namespace, ClosureType type, SignatureExpression expr, ClosureOrigin origin)
OperationExpressionHolder
.id
- namespace
- type
- expr
- origin
- NullPointerException
- if namespace
or type
or expr
is nullpublic String getId()
ValueHolder
public 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
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.