| java.lang.Object org.jruby.runtime.Frame
Frame | final public class Frame (Code) | | Frame for a full (read: not 'fast') Ruby method invocation. Any Ruby method which calls
another Ruby method (or yields to a block) will get a Frame. A fast method by contrast does
not get a Frame because we know that we will not be calling/yielding.
A Frame is also needed for a few special cases:
- Proc.new must check previous frame to get the block it is getting constructed for
- block_given? must check the previous frame to see if a block is active
|
getArgs | IRubyObject[] getArgs()(Code) | | Getter for property args.
Value of property args. |
getBlock | public Block getBlock()(Code) | | What block is associated with this frame?
the block of this frame or NULL_BLOCK if no block given |
getKlazz | public RubyModule getKlazz()(Code) | | Return class that we are supposedly calling for this invocation
the current class |
getName | String getName()(Code) | | Get the method name associated with this frame
the method name |
getRequiredArgCount | public int getRequiredArgCount()(Code) | | |
getVisibility | public Visibility getVisibility()(Code) | | Get the visibility at the time of this frame
the visibility |
isBindingFrame | public boolean isBindingFrame()(Code) | | Is this frame the frame which started a binding eval?
true if it is a binding frame |
setArgs | void setArgs(IRubyObject[] args)(Code) | | Setter for property args.
Parameters: args - New value of property args. |
setIsBindingFrame | public void setIsBindingFrame(boolean isBindingFrame)(Code) | | Set whether this is a binding frame or not
Parameters: isBindingFrame - true if it is |
setJumpTarget | public void setJumpTarget(Object jumpTarget)(Code) | | |
setKlazz | public void setKlazz(RubyModule klazz)(Code) | | Set class that this method is supposedly calling on. Note: This is different than
a native method's implementation class.
Parameters: klazz - the new class |
setName | public void setName(String name)(Code) | | Set the method name associated with this frame
Parameters: name - the new name |
setSelf | void setSelf(IRubyObject self)(Code) | | Set the self associated with this frame
Parameters: self - is the new value of self |
setVisibility | public void setVisibility(Visibility visibility)(Code) | | Change the visibility associated with this frame
Parameters: visibility - the new visibility |
|
|