public abstract class MockClosureHolder extends MockValueHolder<ClosureType> implements ClosureHolder
| Constructor and Description |
|---|
MockClosureHolder(ClosureType type) |
| 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(Object... arguments)
Executes this closure with given arguments.
|
ClosureOrigin |
getClosureOrigin() |
String |
getExpressionString()
Returns a string representation of this closure holder expression.
|
Namespace |
getNamespace()
Returns the namespace where the closure is declared.
|
getId, getNotCompiledValueHolder, getType, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getTypegetId, getNotCompiledValueHolderpublic MockClosureHolder(ClosureType type)
type - public Object execute(Object... arguments) throws ErrorException
ClosureHolderexecute in interface ClosureHolderErrorExceptionpublic Object execute(InterpreterConfiguration configuration, Object... arguments) throws ErrorException
ClosureHolderexecute in interface ClosureHolderconfiguration - configuration to apply while interpreting closureErrorExceptionpublic Object execute(InterpreterConfiguration configuration, InterpreterStackTrace stackTrace, Object... arguments) throws ErrorException
ClosureHolderexecute in interface ClosureHolderconfiguration - configuration to apply while interpreting closurestackTrace - a stack traceErrorExceptionpublic String getExpressionString()
ClosureHoldergetExpressionString in interface ClosureHolderpublic Namespace getNamespace()
ClosureHoldergetNamespace in interface ClosureHolderpublic ClosureOrigin getClosureOrigin()
getClosureOrigin in interface ClosureHoldernullCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.