|
||||||||||
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()
|
Method Summary | |
---|---|
Frame |
duplicate()
|
IRubyObject |
getBackRef()
|
Block |
getBlock()
What block is associated with this frame? |
java.lang.String |
getFile()
|
JumpTarget |
getJumpTarget()
|
RubyModule |
getKlazz()
Return class that we are supposedly calling for this invocation |
IRubyObject |
getLastLine()
|
int |
getLine()
|
java.lang.String |
getName()
Get the method name associated with this frame |
Visibility |
getVisibility()
Get the visibility at the time of this frame |
boolean |
isBindingFrame()
Is this frame the frame which started a binding eval? |
void |
setBackRef(IRubyObject backref)
|
void |
setFile(java.lang.String fileName)
|
void |
setIsBindingFrame(boolean isBindingFrame)
Set whether this is a binding frame or not |
void |
setJumpTarget(JumpTarget jumpTarget)
|
void |
setKlazz(RubyModule klazz)
Set class that this method is supposedly calling on. |
void |
setLastLine(IRubyObject lastline)
|
void |
setLine(int line)
|
void |
setName(java.lang.String name)
Set the method name associated with this frame |
void |
setSelf(IRubyObject self)
Set the self associated with this frame |
void |
setVisibility(Visibility visibility)
Change the visibility associated with this frame |
java.lang.String |
toString()
|
void |
updateFrame(Frame frame)
|
void |
updateFrame(RubyModule klazz,
IRubyObject self,
java.lang.String name,
Block block,
java.lang.String fileName,
int line,
JumpTarget jumpTarget)
|
void |
updateFrame(java.lang.String fileName,
int line)
|
void |
updateFrame(java.lang.String name,
java.lang.String fileName,
int line)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Frame()
Method Detail |
---|
public JumpTarget getJumpTarget()
public void setJumpTarget(JumpTarget jumpTarget)
public void updateFrame(java.lang.String fileName, int line)
public void updateFrame(Frame frame)
public void updateFrame(RubyModule klazz, IRubyObject self, java.lang.String name, Block block, java.lang.String fileName, int line, JumpTarget jumpTarget)
public void updateFrame(java.lang.String name, java.lang.String fileName, int line)
public Frame duplicate()
public IRubyObject getBackRef()
public void setBackRef(IRubyObject backref)
public IRubyObject getLastLine()
public void setLastLine(IRubyObject lastline)
public java.lang.String getFile()
public int getLine()
public void setFile(java.lang.String fileName)
public void setLine(int line)
public RubyModule getKlazz()
public void setKlazz(RubyModule klazz)
klazz
- the new classpublic void setName(java.lang.String name)
name
- the new namepublic java.lang.String getName()
public void setSelf(IRubyObject self)
self
- is the new value of selfpublic 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 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 |