public abstract class CompiledClosureHolder extends ExpressionHolder<ClosureExpression> implements ClosureHolder, ClosureHolderInternal
Modifier and Type | Field and Description |
---|---|
protected Namespace |
namespace |
protected ClosureType |
type |
Constructor and Description |
---|
CompiledClosureHolder(CompiledNamespace compiledNamespace,
String expressionString,
ClosureType type,
ClosureOrigin expressionOrigin,
boolean isWithQuery)
Creates new instance.
|
CompiledClosureHolder(ModelProvider modelProvider,
ExpressionValue expressionValue)
Creates new instance.
|
CompiledClosureHolder(Namespace namespace,
String expressionString,
ClosureType type,
ClosureOrigin expressionOrigin,
boolean isWithQuery)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
execute(InterpreterConfiguration configuration,
InterpreterStackTrace stackTrace,
Object... arguments)
Executes this closure with given arguments.
|
Object |
execute(InterpreterConfiguration configuration,
Object... arguments)
Executes this closure with given arguments.
|
Object |
execute(InterpreterStackTrace stackTrace,
Object... arguments)
Executes this closure with given arguments.
|
Object |
execute(Object... arguments)
Executes this closure with given arguments.
|
Object |
executeInNamespace(Namespace namespace,
InterpreterStackTrace stackTrace,
Object... arguments)
Execute this closure in the given namespace.
|
abstract Object |
executeInNamespaceInternal(Namespace namespace,
Object[] arguments)
This method should contain generated java implementation of the closure.
|
abstract Object |
executeInternal(Object[] arguments)
This method should contain generated java implementation of the closure.
|
ClosureOrigin |
getClosureOrigin() |
protected Object |
getCompiledParent() |
ClosureExpression |
getExpression()
Returns the contained expression.
|
String |
getExpressionString()
Returns a string representation of this closure holder expression.
|
String |
getId()
Returns the id of the holder if present.
|
protected CompiledContext |
getModuleExecutionContext() |
Namespace |
getNamespace()
Returns the namespace associated with the expression.
|
ClosureType |
getType()
Returns the type of the holder.
|
protected void |
validate() |
clearRuntimeValues, getContextId, getExpressionOrigin
equals, getBaseLevelEntityId, getConverter, getEvaluationConverter, getHandle, getModelInstance, getModelProvider, getNotCompiledValueHolder, getProcessModel, getVal, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNotCompiledValueHolder
protected Namespace namespace
protected ClosureType type
public CompiledClosureHolder(Namespace namespace, String expressionString, ClosureType type, ClosureOrigin expressionOrigin, boolean isWithQuery)
namespace
- expressionString
- type
- expressionOrigin
- isWithQuery
- public CompiledClosureHolder(CompiledNamespace compiledNamespace, String expressionString, ClosureType type, ClosureOrigin expressionOrigin, boolean isWithQuery)
compiledNamespace
- expressionString
- type
- expressionOrigin
- isWithQuery
- public CompiledClosureHolder(ModelProvider modelProvider, ExpressionValue expressionValue)
modelProvider
- expressionValue
- protected void validate()
validate
in class ExpressionHolder<ClosureExpression>
public ClosureExpression getExpression()
ExpressionHolder
getExpression
in class ExpressionHolder<ClosureExpression>
public String getId()
ValueHolder
getId
in interface ValueHolder
getId
in class HolderImpl<ExpressionValue>
public ClosureType getType()
ValueHolder
getType
in interface ClosureHolder
getType
in interface ValueHolder
getType
in class HolderImpl<ExpressionValue>
public Object execute(Object... arguments) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
ErrorException
public Object execute(InterpreterConfiguration configuration, Object... arguments) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
configuration
- configuration to apply while interpreting closureErrorException
public Object execute(InterpreterStackTrace stackTrace, Object... arguments) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
stackTrace
- a stack traceErrorException
public Object execute(InterpreterConfiguration configuration, InterpreterStackTrace stackTrace, Object... arguments) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
configuration
- configuration to apply while interpreting closurestackTrace
- a stack traceErrorException
public Object executeInNamespace(Namespace namespace, InterpreterStackTrace stackTrace, Object... arguments) throws ErrorException
ClosureHolderInternal
executeInNamespace
in interface ClosureHolderInternal
ErrorException
public abstract Object executeInternal(Object[] arguments) throws ErrorException
arguments
- ErrorException
public abstract Object executeInNamespaceInternal(Namespace namespace, Object[] arguments) throws ErrorException
namespace
- arguments
- ErrorException
public Namespace getNamespace()
ExpressionHolder
getNamespace
in interface ClosureHolder
getNamespace
in class ExpressionHolder<ClosureExpression>
public String getExpressionString()
ClosureHolder
getExpressionString
in interface ClosureHolder
protected CompiledContext getModuleExecutionContext()
protected Object getCompiledParent()
public ClosureOrigin getClosureOrigin()
getClosureOrigin
in interface ClosureHolder
null
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.