public abstract class AbstractClosureHolder extends java.lang.Object implements ClosureHolder, ClosureHolderInternal
| Constructor and Description |
|---|
AbstractClosureHolder(Namespace namespace) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(InterpreterConfiguration configuration,
java.lang.Object... args)
Executes this closure with given arguments.
|
java.lang.Object |
execute(InterpreterStackTrace stackTrace,
java.lang.Object... args)
Executes this closure with given arguments.
|
java.lang.Object |
execute(java.lang.Object... args)
Executes this closure with given arguments.
|
java.lang.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, waitexecuteInNamespaceexecute, getClosureOrigin, getExpressionString, getTypepublic AbstractClosureHolder(Namespace namespace)
public java.lang.String getId()
ValueHoldergetId in interface ValueHolderpublic final java.lang.Object execute(java.lang.Object... args)
throws ErrorException
ClosureHolderexecute in interface ClosureHolderErrorExceptionpublic final java.lang.Object execute(InterpreterStackTrace stackTrace, java.lang.Object... args) throws ErrorException
ClosureHolderexecute in interface ClosureHolderstackTrace - a stack traceErrorExceptionpublic final java.lang.Object execute(InterpreterConfiguration configuration, java.lang.Object... args) throws ErrorException
ClosureHolderexecute in interface ClosureHolderconfiguration - configuration to apply while interpreting closureErrorExceptionpublic Namespace getNamespace()
ClosureHoldergetNamespace in interface ClosureHolderpublic ValueHolder getNotCompiledValueHolder()
getNotCompiledValueHolder in interface ValueHolderCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.