| Modifier and Type | Field and Description |
|---|---|
| public static final Binding | DUMMY
Deprecated
|
| private DynamicScope | |
| private final DynamicScope | dynamicScope
A reference to all variable values (and names) that are in-scope for this block. |
| private DynamicScope | evalScope
Binding-local scope for 1.9 mode. |
| private Binding | evalScopeBinding
Location of eval scope. |
| public String | |
| private final Frame | frame
frame of method which defined this block |
| public int | |
| public String | |
| private IRubyObject | self
'self' at point when the block is defined |
| private Visibility |
| Access | Constructor and Description |
|---|---|
| public | Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope, String method, String filename, int line)
|
| private | Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope, String method, String filename, int line, DynamicScope dummyScope)
|
| public | |
| public | |
| public | |
| public | |
| public | |
| private | |
| public | Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope, BacktraceElement backtrace)
Deprecated
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Binding | |
| public Binding | Returns: a new Binding with shared eval contextClone the binding, but maintain a reference to the original "eval binding" to continue sharing eval context. |
| public Binding | Returns: the duplicated bindingthe current thread context context)Duplicate this binding and setup the proper cloned instance of the eval scope so that any previously captured variables still exist but are not shared with the original binding. |
| 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 BacktraceElement | |
| public DynamicScope | |
| public DynamicScope | Returns: Returns all relevant variable scoping informationGets the dynamicVariables that are local to this block. |
| public final DynamicScope | |
| public String | |
| public Frame | |
| public int | |
| public String | |
| public IRubyObject | |
| public Visibility | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| DUMMY | back to summary |
|---|---|
| public static final Binding DUMMY
Deprecated
| |
| dummyScope | back to summary |
|---|---|
| private DynamicScope dummyScope | |
| dynamicScope | back to summary |
|---|---|
| private final DynamicScope dynamicScope A reference to all variable values (and names) that are in-scope for this block. | |
| evalScope | back to summary |
|---|---|
| private DynamicScope evalScope Binding-local scope for 1.9 mode. | |
| evalScopeBinding | back to summary |
|---|---|
| private Binding evalScopeBinding Location of eval scope. Because bindings are usually cloned before used for eval, we indirect the reference of the eval scope through another Binding reference, allowing us to share the same eval scope across multiple cloned Binding instances. | |
| filename | back to summary |
|---|---|
| public String filename | |
| frame | back to summary |
|---|---|
| private final Frame frame frame of method which defined this block | |
| line | back to summary |
|---|---|
| public int line | |
| method | back to summary |
|---|---|
| public String method | |
| self | back to summary |
|---|---|
| private IRubyObject self 'self' at point when the block is defined | |
| visibility | back to summary |
|---|---|
| private Visibility visibility | |
| Binding | back to summary |
|---|---|
| public Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope, String method, String filename, int line) | |
| Binding | back to summary |
|---|---|
| private Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope, String method, String filename, int line, DynamicScope dummyScope) | |
| Binding | back to summary |
|---|---|
| public Binding(Frame frame, DynamicScope dynamicScope, String method, String filename, int line) | |
| Binding | back to summary |
|---|---|
| public Binding(IRubyObject self) | |
| Binding | back to summary |
|---|---|
| public Binding(IRubyObject self, Frame frame, Visibility visibility) | |
| Binding | back to summary |
|---|---|
| public Binding(IRubyObject self, DynamicScope dynamicScope) | |
| Binding | back to summary |
|---|---|
| public Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope) | |
| Binding | back to summary |
|---|---|
| private Binding(Binding other) | |
| Binding | back to summary |
|---|---|
| public Binding(IRubyObject self, Frame frame, Visibility visibility, DynamicScope dynamicScope, BacktraceElement backtrace)
Deprecated
| |
| Binding | back to summary |
|---|---|
| public Binding(Frame frame, DynamicScope dynamicScope, BacktraceElement backtrace)
Deprecated
| |
| clone | back to summary |
|---|---|
| public Binding clone() Overrides java. Clone the binding. The frame will be duplicated, and eval context will point to the new binding, but other fields will be copied as-is.
| |
| cloneForEval | back to summary |
|---|---|
| public Binding cloneForEval() Clone the binding, but maintain a reference to the original "eval binding" to continue sharing eval context.
| |
| dup | back to summary |
|---|---|
| public Binding dup(ThreadContext context) Duplicate this binding and setup the proper cloned instance of the eval scope so that any previously captured variables still exist but are not shared with the original binding.
| |
| 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. | |
| getBacktrace | back to summary |
|---|---|
| public BacktraceElement getBacktrace()
Deprecated
| |
| getDummyScope | back to summary |
|---|---|
| public DynamicScope getDummyScope(StaticScope staticScope) | |
| getDynamicScope | back to summary |
|---|---|
| public DynamicScope getDynamicScope() Gets the dynamicVariables that are local to this block. Parent dynamic scopes are also accessible via the current dynamic scope.
| |
| getEvalScope | back to summary |
|---|---|
| public final DynamicScope getEvalScope(Ruby runtime) | |
| getFile | back to summary |
|---|---|
| public String getFile() | |
| getFrame | back to summary |
|---|---|
| public Frame getFrame() Gets the frame.
| |
| getLine | back to summary |
|---|---|
| public int getLine() | |
| getMethod | back to summary |
|---|---|
| public String getMethod() | |
| getSelf | back to summary |
|---|---|
| public IRubyObject getSelf() | |
| 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
| |
| setFile | back to summary |
|---|---|
| public void setFile(String filename) | |
| setLine | back to summary |
|---|---|
| public void setLine(int line) | |
| setMethod | back to summary |
|---|---|
| public void setMethod(String method) | |
| setSelf | back to summary |
|---|---|
| public void setSelf(IRubyObject self) | |
| setVisibility | back to summary |
|---|---|
| public void setVisibility(Visibility visibility) | |