| Modifier and Type | Field and Description |
|---|---|
| public static final BlockBody | |
| protected final Signature | |
| private static final MethodHandle | |
| protected MethodHandle |
| Modifier and Type | Method and Description |
|---|---|
| public Arity | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block unusedBlock)
|
| protected IRubyObject | |
| public boolean | |
| protected abstract IRubyObject | doYield(ThreadContext context, Block block, IRubyObject value)
Subclass specific yield implementation. |
| protected abstract IRubyObject | doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self)
Subclass specific yield implementation. |
| public ArgumentDescriptor[] | |
| public abstract String | |
| public abstract int | |
| public Signature | |
| public abstract StaticScope | |
| public MethodHandle | |
| public boolean | Returns: true if this is a valid block or false otherwiseIs the current block a real yield'able block instead a null one |
| public boolean | |
| public IRubyObject[] | |
| public abstract void | |
| public static boolean | |
| public final IRubyObject | |
| public final IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| protected IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
|
| NULL_BODY | back to summary |
|---|---|
| public static final BlockBody NULL_BODY | |
| signature | back to summary |
|---|---|
| protected final Signature signature | |
| TEST_BLOCK_BODY | back to summary |
|---|---|
| private static final MethodHandle TEST_BLOCK_BODY | |
| testBlockBody | back to summary |
|---|---|
| protected MethodHandle testBlockBody | |
| BlockBody | back to summary |
|---|---|
| public BlockBody(Signature signature) | |
| arity | back to summary |
|---|---|
| public Arity arity()
Deprecated
What is the arity of this block?
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, Block unusedBlock) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, Block unusedBlock) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, Block unusedBlock) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block unusedBlock) | |
| callDirect | back to summary |
|---|---|
| protected IRubyObject callDirect(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) | |
| canCallDirect | back to summary |
|---|---|
| public boolean canCallDirect() | |
| doYield | back to summary |
|---|---|
| protected abstract IRubyObject doYield(ThreadContext context, Block block, IRubyObject value) Subclass specific yield implementation.
Should not be called directly. Gets called by | |
| doYield | back to summary |
|---|---|
| protected abstract IRubyObject doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) Subclass specific yield implementation.
Should not be called directly. Gets called by | |
| getArgumentDescriptors | back to summary |
|---|---|
| public ArgumentDescriptor[] getArgumentDescriptors() | |
| getFile | back to summary |
|---|---|
| public abstract String getFile() Get the filename for this block | |
| getLine | back to summary |
|---|---|
| public abstract int getLine() get The line number for this block | |
| getSignature | back to summary |
|---|---|
| public Signature getSignature() | |
| getStaticScope | back to summary |
|---|---|
| public abstract StaticScope getStaticScope() | |
| getTestBlockBody | back to summary |
|---|---|
| public MethodHandle getTestBlockBody() | |
| isGiven | back to summary |
|---|---|
| public boolean isGiven() Is the current block a real yield'able block instead a null one
| |
| isRubyBlock | back to summary |
|---|---|
| public boolean isRubyBlock() Is this block represented by Ruby code? | |
| prepareArgumentsForCall | back to summary |
|---|---|
| public IRubyObject[] prepareArgumentsForCall(ThreadContext context, IRubyObject[] args, Block. | |
| setStaticScope | back to summary |
|---|---|
| public abstract void setStaticScope(StaticScope newScope) | |
| testBlockBody | back to summary |
|---|---|
| public static boolean testBlockBody(Block block, BlockBody body) | |
| yield | back to summary |
|---|---|
| public final IRubyObject yield(ThreadContext context, Block block, IRubyObject value) | |
| yield | back to summary |
|---|---|
| public final IRubyObject yield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) | |
| yield | back to summary |
|---|---|
| public IRubyObject yield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self, Block blockArg) | |
| yield | back to summary |
|---|---|
| public IRubyObject yield(ThreadContext context, Block block, IRubyObject value, Block blockArg) | |
| yieldDirect | back to summary |
|---|---|
| protected IRubyObject yieldDirect(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context, Block block) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) | |