ThreadContext
| Modifier and Type | Field and Description |
|---|---|
| private IRubyObject | backRef
backref |
| private Block | block
The block that was passed in for this frame (as either a block or a &block argument). |
| pack-priv boolean | captured
whether this frame has been captured into a binding |
| public static final Frame | DUMMY
Deprecated
|
| private RubyModule | klazz
The class against which this call is executing. |
| private IRubyObject | lastLine
lastline |
| private String | name
The name of the method being invoked in this frame. |
| private IRubyObject | self
The 'self' for this frame. |
| private Visibility | visibility
The current visibility for anything defined under this frame |
| Access | Constructor and Description |
|---|---|
| public | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Frame | |
| public Frame | |
| public void | |
| public Frame | |
| public Frame | Returns: A new frame with identical backtrace information to this frameClone this frame for use in backtraces only (avoiding long-lived references to other elements. |
| public IRubyObject | |
| public Block | Returns: The block of this frame or NULL_BLOCK if no block givenRetrieve the block associated with this frame. |
| public RubyModule | |
| public IRubyObject | |
| public String | |
| public IRubyObject | |
| public Visibility | |
| public boolean | |
| public IRubyObject | |
| public void | |
| public void | |
| public IRubyObject | |
| public void | |
| public void | |
| public void | setVisibility(Visibility
The new visibility visibility)Change the visibility associated with this frame |
| public String | |
| public void | |
| public void | updateFrame(String
The name of the method being called name)Update the frame with caller information and method name, so it will show up correctly in call stacks. |
| public void | updateFrame(Frame
The frame whose data to duplicate in this frame frame)Update the frame based on information from another frame. |
| public void | updateFrame(RubyModule
The class against which the method is being called klazz, IRubyObject The 'self' for the method self, String The name under which the method is being invoked name, Block The block passed to the method block)Update the frame based on the given values. |
| public void | updateFrame(RubyModule
The class against which the method is being called klazz, IRubyObject The 'self' for the method self, String The name under which the method is being invoked name, Visibility visibility, Block The block passed to the method block)Update the frame based on the given values. |
| public void | |
| public void | updateFrameForEval(IRubyObject
The 'self' for the method self)Update the frame based on the given values. |
| backRef | back to summary |
|---|---|
| private IRubyObject backRef backref | |
| block | back to summary |
|---|---|
| private Block block The block that was passed in for this frame (as either a block or a &block argument). The frame captures the block for super/zsuper, but also for Proc.new (with no arguments) and also for block_given?. Both of those methods needs access to the block of the previous frame to work. | |
| captured | back to summary |
|---|---|
| pack-priv boolean captured whether this frame has been captured into a binding | |
| DUMMY | back to summary |
|---|---|
| public static final Frame DUMMY
Deprecated
| |
| klazz | back to summary |
|---|---|
| private RubyModule klazz The class against which this call is executing. | |
| lastLine | back to summary |
|---|---|
| private IRubyObject lastLine lastline | |
| name | back to summary |
|---|---|
| private String name The name of the method being invoked in this frame. | |
| self | back to summary |
|---|---|
| private IRubyObject self The 'self' for this frame. | |
| visibility | back to summary |
|---|---|
| private Visibility visibility The current visibility for anything defined under this frame | |
| Frame | back to summary |
|---|---|
| public Frame() Empty constructor, since Frame objects are pre-allocated and updated when needed. | |
| Frame | back to summary |
|---|---|
| private Frame(Block nullBlock) Used only by static init to avoid accessing NULL_BLOCK before initialized. | |
| Frame | back to summary |
|---|---|
| private Frame(Frame frame) Copy constructor, since Frame objects are pre-allocated and updated when needed. | |
| capture | back to summary |
|---|---|
| public Frame capture() | |
| clear | back to summary |
|---|---|
| public Frame clear() Clear the frame, as when the call completes. Clearing prevents cached frames from holding references after the call is done. | |
| clearFrameForBackref | back to summary |
|---|---|
| public void clearFrameForBackref() | |
| duplicate | back to summary |
|---|---|
| public Frame duplicate() Clone this frame.
| |
| duplicateForBacktrace | back to summary |
|---|---|
| public Frame duplicateForBacktrace() Clone this frame for use in backtraces only (avoiding long-lived references to other elements.
| |
| getBackRef | back to summary |
|---|---|
| public IRubyObject getBackRef(IRubyObject nil) | |
| getBlock | back to summary |
|---|---|
| public Block getBlock() Retrieve the block associated with this frame.
| |
| getKlazz | back to summary |
|---|---|
| public RubyModule getKlazz() Return class that we are calling against
| |
| getLastLine | back to summary |
|---|---|
| public IRubyObject getLastLine(IRubyObject nil) | |
| getName | back to summary |
|---|---|
| public String getName() Get the method name associated with this frame
| |
| getSelf | back to summary |
|---|---|
| public IRubyObject getSelf() Get the self associated with this frame
| |
| getVisibility | back to summary |
|---|---|
| public Visibility getVisibility() Get the visibility at the time of this frame
| |
| isCaptured | back to summary |
|---|---|
| public boolean isCaptured() | |
| setBackRef | back to summary |
|---|---|
| public IRubyObject setBackRef(IRubyObject backRef) | |
| setCaptured | back to summary |
|---|---|
| public void setCaptured(boolean captured) | |
| setKlazz | back to summary |
|---|---|
| public void setKlazz(RubyModule klazz) Set the class we are calling against.
| |
| setLastLine | back to summary |
|---|---|
| public IRubyObject setLastLine(IRubyObject lastLine) | |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the method name associated with this frame
| |
| setSelf | back to summary |
|---|---|
| public void setSelf(IRubyObject self) Set the self associated with this frame
| |
| setVisibility | back to summary |
|---|---|
| public void setVisibility(Visibility visibility) Change the visibility associated with this frame
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| updateFrame | back to summary |
|---|---|
| public void updateFrame() Update the frame with just filename and line, used for top-level frames and method. | |
| updateFrame | back to summary |
|---|---|
| public void updateFrame(String name) Update the frame with caller information and method name, so it will show up correctly in call stacks.
| |
| updateFrame | back to summary |
|---|---|
| public void updateFrame(Frame frame) Update the frame based on information from another frame. Used for cloning frames (for blocks, usually) and when entering class bodies.
| |
| updateFrame | back to summary |
|---|---|
| public void updateFrame(RubyModule klazz, IRubyObject self, String name, Block block) Update the frame based on the given values.
| |
| updateFrame | back to summary |
|---|---|
| public void updateFrame(RubyModule klazz, IRubyObject self, String name, Visibility visibility, Block block) Update the frame based on the given values.
| |
| updateFrameForBackref | back to summary |
|---|---|
| public void updateFrameForBackref() | |
| updateFrameForEval | back to summary |
|---|---|
| public void updateFrameForEval(IRubyObject self) Update the frame based on the given values.
| |