| Modifier and Type | Field and Description |
|---|---|
| private final StaticScope | |
| private final String | |
| private final ThreadContext |
| Access | Constructor and Description |
|---|---|
| public | JavaInternalBlockBody(Ruby runtime, Signature signature)
For blocks which can be executed in any thread concurrently. |
| public | JavaInternalBlockBody(Ruby runtime, ThreadContext originalContext, String methodName, Signature signature)
For blocks which cannot be executed in parallel. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | call(ThreadContext context, Block block, IRubyObject[] args)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg)
Overrides org.
|
| protected IRubyObject | doYield(ThreadContext context, Block block, IRubyObject value)
Implements abstract org. Subclass specific yield implementation. |
| protected IRubyObject | doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self)
Implements abstract org. Subclass specific yield implementation. |
| public String | |
| public int | getLine()
Implements abstract org. get The line number for this block |
| public StaticScope | |
| public void | |
| private void | |
| public abstract IRubyObject | |
| public IRubyObject |
| dummyScope | back to summary |
|---|---|
| private final StaticScope dummyScope | |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| originalContext | back to summary |
|---|---|
| private final ThreadContext originalContext | |
| JavaInternalBlockBody | back to summary |
|---|---|
| public JavaInternalBlockBody(Ruby runtime, Signature signature) For blocks which can be executed in any thread concurrently. | |
| JavaInternalBlockBody | back to summary |
|---|---|
| public JavaInternalBlockBody(Ruby runtime, ThreadContext originalContext, String methodName, Signature signature) For blocks which cannot be executed in parallel. | |
| JavaInternalBlockBody | back to summary |
|---|---|
| public JavaInternalBlockBody(Ruby runtime, Arity arity)
Deprecated
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) Overrides org.
| |
| doYield | back to summary |
|---|---|
| protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject value) Implements abstract org. Doc from org. Subclass specific yield implementation.
Should not be called directly. Gets called by
| |
| doYield | back to summary |
|---|---|
| protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) Implements abstract org. Doc from org. Subclass specific yield implementation.
Should not be called directly. Gets called by
| |
| getFile | back to summary |
|---|---|
| public String getFile() Implements abstract org. Doc from org. Get the filename for this block
| |
| getLine | back to summary |
|---|---|
| public int getLine() Implements abstract org. Doc from org. get The line number for this block
| |
| getStaticScope | back to summary |
|---|---|
| public StaticScope getStaticScope() Implements abstract org.
| |
| setStaticScope | back to summary |
|---|---|
| public void setStaticScope(StaticScope newScope) Implements abstract org.
| |
| threadCheck | back to summary |
|---|---|
| private void threadCheck(ThreadContext yieldingContext) | |
| yield | back to summary |
|---|---|
| public abstract IRubyObject yield(ThreadContext context, IRubyObject[] args) | |
| yield | back to summary |
|---|---|
| public IRubyObject yield(ThreadContext context, IRubyObject arg) | |