| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Binding | |
| private final BlockBody | |
| private final Block | escapeBlock
What block to use for determining escape; defaults to this |
| private boolean | escaped
Whether this block and any clones of it should be considered "escaped" |
| private final EvalType | |
| public static final Block | NULL_BLOCK
All Block variables should either refer to a real block or this NULL_BLOCK. |
| private RubyProc | proc
The Proc that this block is associated with. |
| public final Block. |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DynamicScope | |
| public IRubyObject | apply(ThreadContext
the function argument context)Implements java. Applies this function to the given argument. |
| public IRubyObject | apply(ThreadContext
the first function argument context, IRubyObject the second function argument arg0)Implements java. Applies this function to the given arguments. |
| public IRubyObject | apply(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
Implements org.
|
| public Arity | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | call(ThreadContext context, IRubyObject state, IRubyObject obj, boolean recur)
Implements org.
|
| public Block | |
| public Block | |
| public Block | |
| public Block | |
| public Block | |
| public Block | |
| public Block | |
| public Block | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public void | |
| public Binding | |
| public BlockBody | |
| public EvalType | |
| public Frame | |
| public RubyModule | |
| public RubyProc | Returns: the proc or null if this has no proc associated with itRetrieve the proc object associated with this block |
| public Signature | |
| public Visibility | |
| public int | |
| public boolean | |
| public final boolean | Returns: true if this is a valid block or false otherwiseIs the current block a real yield'able block instead a null one |
| private static IRubyObject[] | |
| public void | setProcObject(RubyProc
the proc tu associate procObject)Set the proc object associated with this block |
| public void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject |
| binding | back to summary |
|---|---|
| private final Binding binding | |
| body | back to summary |
|---|---|
| private final BlockBody body | |
| escapeBlock | back to summary |
|---|---|
| private final Block escapeBlock What block to use for determining escape; defaults to this | |
| escaped | back to summary |
|---|---|
| private boolean escaped Whether this block and any clones of it should be considered "escaped" | |
| evalType | back to summary |
|---|---|
| private final EvalType evalType | |
| NULL_BLOCK | back to summary |
|---|---|
| public static final Block NULL_BLOCK All Block variables should either refer to a real block or this NULL_BLOCK. | |
| proc | back to summary |
|---|---|
| private RubyProc proc The Proc that this block is associated with. When we reference blocks via variable reference they are converted to Proc objects. We store a reference of the associated Proc object for easy conversion. | |
| type | back to summary |
|---|---|
| public final Block. | |
| Block | back to summary |
|---|---|
| private Block(BlockBody body, Binding binding, Block. | |
| Block | back to summary |
|---|---|
| public Block(BlockBody body, Binding binding, Block. | |
| Block | back to summary |
|---|---|
| public Block(BlockBody body, Binding binding) | |
| Block | back to summary |
|---|---|
| public Block(BlockBody body) | |
| allocScope | back to summary |
|---|---|
| public DynamicScope allocScope(DynamicScope parentScope) | |
| apply | back to summary |
|---|---|
| public IRubyObject apply(ThreadContext context) Implements java. Doc from java. Applies this function to the given argument.
| |
| apply | back to summary |
|---|---|
| public IRubyObject apply(ThreadContext context, IRubyObject arg0) Implements java. Doc from java. Applies this function to the given arguments.
| |
| apply | back to summary |
|---|---|
| public IRubyObject apply(ThreadContext context, IRubyObject arg0, IRubyObject arg1) Implements org.
| |
| arity | back to summary |
|---|---|
| public Arity arity()
Deprecated
What is the arity of this block?
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject[] args) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject[] args, Block blockArg) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, Block blockArg) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject arg0) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject arg0, Block blockArg) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block blockArg) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block blockArg) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject state, IRubyObject obj, boolean recur) Implements org. | |
| cloneBlock | back to summary |
|---|---|
| public Block cloneBlock() | |
| cloneBlockAndBinding | back to summary |
|---|---|
| public Block cloneBlockAndBinding() | |
| cloneBlockAndBinding | back to summary |
|---|---|
| public Block cloneBlockAndBinding(EvalType evalType) | |
| cloneBlockAndFrame | back to summary |
|---|---|
| public Block cloneBlockAndFrame() | |
| cloneBlockAndFrame | back to summary |
|---|---|
| public Block cloneBlockAndFrame(EvalType evalType) | |
| cloneBlockAsType | back to summary |
|---|---|
| public Block cloneBlockAsType(Block. | |
| cloneBlockForEval | back to summary |
|---|---|
| public Block cloneBlockForEval(IRubyObject self, EvalType evalType) | |
| deepCloneBlockForEval | back to summary |
|---|---|
| public Block deepCloneBlockForEval(IRubyObject self, EvalType evalType) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| escape | back to summary |
|---|---|
| public void escape() | |
| getBinding | back to summary |
|---|---|
| public Binding getBinding() | |
| getBody | back to summary |
|---|---|
| public BlockBody getBody() | |
| getEvalType | back to summary |
|---|---|
| public EvalType getEvalType() | |
| getFrame | back to summary |
|---|---|
| public Frame getFrame() Gets the frame.
| |
| getFrameClass | back to summary |
|---|---|
| public RubyModule getFrameClass() Gets the frame class.
| |
| getProcObject | back to summary |
|---|---|
| public RubyProc getProcObject() Retrieve the proc object associated with this block
| |
| getSignature | back to summary |
|---|---|
| public Signature getSignature() | |
| getVisibility | back to summary |
|---|---|
| public Visibility getVisibility() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEscaped | back to summary |
|---|---|
| public boolean isEscaped() | |
| isGiven | back to summary |
|---|---|
| public final boolean isGiven() Is the current block a real yield'able block instead a null one
| |
| maybeSpreadArgs | back to summary |
|---|---|
| private static IRubyObject[] maybeSpreadArgs(ThreadContext context, IRubyObject[] args, Block block) | |
| setProcObject | back to summary |
|---|---|
| public void setProcObject(RubyProc procObject) Set the proc object associated with this block
| |
| setVisibility | back to summary |
|---|---|
| public void setVisibility(Visibility vis) | |
| yield | back to summary |
|---|---|
| public IRubyObject yield(ThreadContext context, IRubyObject value) | |
| yieldArray | back to summary |
|---|---|
| public IRubyObject yieldArray(ThreadContext context, IRubyObject value, IRubyObject self) | |
| yieldNonArray | back to summary |
|---|---|
| public IRubyObject yieldNonArray(ThreadContext context, IRubyObject value, IRubyObject self) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1) | |
| yieldSpecific | back to summary |
|---|---|
| public IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) | |
| yieldValues | back to summary |
|---|---|
| public IRubyObject yieldValues(ThreadContext context, IRubyObject[] args) | |
| Modifier and Type | Field and Description |
|---|---|
| public final boolean | |
| public static final Block. | |
| public static final Block. | |
| public static final Block. | |
| public static final Block. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Block. | |
| public static Block. |
| checkArity | back to summary |
|---|---|
| public final boolean checkArity | |
| LAMBDA | back to summary |
|---|---|
| public static final Block. | |
| NORMAL | back to summary |
|---|---|
| public static final Block. | |
| PROC | back to summary |
|---|---|
| public static final Block. | |
| THREAD | back to summary |
|---|---|
| public static final Block. | |
| Type | back to summary |
|---|---|
| private Type(boolean checkArity) | |
| valueOf | back to summary |
|---|---|
| public static Block. | |
| values | back to summary |
|---|---|
| public static Block. | |