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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getType
getId, getNotCompiledValueHolder
public MockClosureHolder(ClosureType type)
type
- 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(InterpreterConfiguration configuration, InterpreterStackTrace stackTrace, Object... arguments) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
configuration
- configuration to apply while interpreting closurestackTrace
- a stack traceErrorException
public String getExpressionString()
ClosureHolder
getExpressionString
in interface ClosureHolder
public Namespace getNamespace()
ClosureHolder
getNamespace
in interface ClosureHolder
public ClosureOrigin getClosureOrigin()
getClosureOrigin
in interface ClosureHolder
null
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.