public abstract class CompiledClosureHolder extends ExpressionHolder<ClosureExpression> implements ClosureHolder
Modifier and Type | Field and Description |
---|---|
protected ExecutionContext |
executionContext |
protected ClosureType |
type |
Constructor and Description |
---|
CompiledClosureHolder(ExecutionContext executionContext,
String expressionString,
ClosureType type,
ClosureOrigin expressionOrigin,
boolean isWithQuery)
Creates new instance.
|
CompiledClosureHolder(ModelProviderClientService modelProviderService,
ExpressionValue expressionValue)
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.
|
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, getModelProviderService, getNotCompiledValue, getProcessModel, getVal, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNotCompiledValue
protected ExecutionContext executionContext
protected ClosureType type
public CompiledClosureHolder(ExecutionContext executionContext, String expressionString, ClosureType type, ClosureOrigin expressionOrigin, boolean isWithQuery)
executionContext
- expressionString
- type
- expressionOrigin
- isWithQuery
- public CompiledClosureHolder(ModelProviderClientService modelProviderService, ExpressionValue expressionValue)
modelProviderService
- 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 abstract Object executeInternal(Object[] arguments) throws ErrorException
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-2018 Whitestein Technologies. All Rights Reserved.