public abstract class AbstractClosureHolder extends Object implements ClosureHolder
Constructor and Description |
---|
AbstractClosureHolder(Namespace namespace) |
Modifier and Type | Method and Description |
---|---|
Object |
execute(InterpreterConfiguration configuration,
Object... args)
Executes this closure with given arguments.
|
Object |
execute(InterpreterStackTrace stackTrace,
Object... args)
Executes this closure with given arguments.
|
Object |
execute(Object... args)
Executes this closure with given arguments.
|
Namespace |
getNamespace()
Returns the namespace where the closure is declared.
|
ValueHolder |
getNotCompiledValue() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getClosureOrigin, getExpressionString, getType
getId
public AbstractClosureHolder(Namespace namespace)
public final Object execute(Object... args) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
ErrorException
public final Object execute(InterpreterStackTrace stackTrace, Object... args) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
stackTrace
- a stack traceErrorException
public final Object execute(InterpreterConfiguration configuration, Object... args) throws ErrorException
ClosureHolder
execute
in interface ClosureHolder
configuration
- configuration to apply while interpreting closureErrorException
public Namespace getNamespace()
ClosureHolder
getNamespace
in interface ClosureHolder
public ValueHolder getNotCompiledValue()
getNotCompiledValue
in interface ValueHolder
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.