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, getNotCompiledValue
public 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
ClosureHolder
configuration
- configuration to apply while interpreting closurestackTrace
- a stack traceErrorException
public String getId()
ValueHolder
public ClosureType getType()
ValueHolder
public String getExpressionString()
ClosureHolder
public ClosureOrigin getClosureOrigin()
null
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.