public abstract class AbstractClosureHolder extends Object implements ClosureHolder, ClosureHolderInternal
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.
|
String |
getId()
Returns the id of the holder if present.
|
Namespace |
getNamespace()
Returns the namespace where the closure is declared.
|
ValueHolder |
getNotCompiledValueHolder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeInNamespace
execute, getClosureOrigin, getExpressionString, getType
public AbstractClosureHolder(Namespace namespace)
public String getId()
ValueHolder
getId
in interface ValueHolder
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 getNotCompiledValueHolder()
getNotCompiledValueHolder
in interface ValueHolder
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.