|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.runtime.Frame
public final class Frame
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:
Constructor Summary | |
---|---|
Frame(ISourcePosition position)
|
|
Frame(RubyModule klazz,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
int requiredArgCount,
Block block,
ISourcePosition position,
java.lang.Object jumpTarget)
|
Method Summary | |
---|---|
Frame |
duplicate()
|
Block |
getBlock()
What block is associated with this frame? |
java.lang.Object |
getJumpTarget()
|
RubyModule |
getKlazz()
Return class that we are supposedly calling for this invocation |
int |
getRequiredArgCount()
|
Visibility |
getVisibility()
Get the visibility at the time of this frame |
boolean |
isBindingFrame()
Is this frame the frame which started a binding eval? |
void |
setIsBindingFrame(boolean isBindingFrame)
Set whether this is a binding frame or not |
void |
setJumpTarget(java.lang.Object jumpTarget)
|
void |
setKlazz(RubyModule klazz)
Set class that this method is supposedly calling on. |
void |
setName(java.lang.String name)
Set the method name associated with this frame |
void |
setVisibility(Visibility visibility)
Change the visibility associated with this frame |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Frame(ISourcePosition position)
public Frame(RubyModule klazz, IRubyObject self, java.lang.String name, IRubyObject[] args, int requiredArgCount, Block block, ISourcePosition position, java.lang.Object jumpTarget)
Method Detail |
---|
public java.lang.Object getJumpTarget()
public void setJumpTarget(java.lang.Object jumpTarget)
public int getRequiredArgCount()
public RubyModule getKlazz()
public void setKlazz(RubyModule klazz)
klazz
- the new classpublic void setName(java.lang.String name)
name
- the new namepublic Visibility getVisibility()
public void setVisibility(Visibility visibility)
visibility
- the new visibilitypublic boolean isBindingFrame()
public void setIsBindingFrame(boolean isBindingFrame)
isBindingFrame
- true if it ispublic Block getBlock()
public Frame duplicate()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |