public class ClosureExpressionHolder extends AbstractClosureHolder
ClosureExpression to ClosureHolder adapter.| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSURE_NAMESPACE_NAME
Namespace name for closures.
|
| Constructor and Description |
|---|
ClosureExpressionHolder(String id,
Namespace namespace,
ClosureType type,
ClosureExpression expr,
ClosureOrigin origin)
Creates new instance of
ClosureExpressionHolder. |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(InterpreterConfiguration configuration,
InterpreterStackTrace stackTrace,
Object... args)
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, getNotCompiledValuepublic static final String CLOSURE_NAMESPACE_NAME
public ClosureExpressionHolder(String id, Namespace namespace, ClosureType type, ClosureExpression expr, ClosureOrigin origin)
ClosureExpressionHolder.id - namespace - type - expr - origin - NullPointerException - if namespace or type or expr is nullpublic Object execute(InterpreterConfiguration configuration, InterpreterStackTrace stackTrace, Object... args) throws ErrorException
ClosureHolderconfiguration - configuration to apply while interpreting closurestackTrace - a stack traceErrorExceptionpublic String getId()
ValueHolderpublic ClosureType getType()
ValueHolderpublic String getExpressionString()
ClosureHolderpublic ClosureOrigin getClosureOrigin()
nullCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.