|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClosureRunner
This interface identifies something that is able to run closures. It is used
by ClosureSupport
.
Method Summary | |
---|---|
boolean |
isClosure(Object o)
Is the object a closure that can be run? |
Object |
runClosure(Object closure,
Object... arguments)
Run the closure and return the result. |
Method Detail |
---|
boolean isClosure(Object o)
o
- The object.
true
if the object is a closure.Object runClosure(Object closure, Object... arguments) throws SchmantException
closure
- The closure to run.arguments
- Arguments to the closure.
PyObject
.
SchmantException
- On errors.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |