|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.runtime.Scope
A Scope in the Ruby Stack of scopes. This is used to maintain a stack of scopes through a linked list. Each scope holds a list of local values and a list of local names Each scope also hold a pointer to the previous scope, a new empty scope can be pushed on top of the stack using the push method, the top scope can be popped of the top of the stack using the pop method.
Constructor Summary | |
Scope(Ruby ruby)
|
Method Summary | |
void |
addLocalVariables(java.util.List localNames)
|
IRubyObject |
getBackref()
|
IRubyObject |
getLastLine()
|
java.util.List |
getLocalValues()
|
StackElement |
getNext()
|
IRubyObject |
getSuperObject()
Getter for property superObject. |
IRubyObject |
getValue(int count)
|
Visibility |
getVisibility()
Gets the methodScope. |
boolean |
hasLocalVariables()
|
void |
resetLocalVariables(java.util.List localNames)
Sets the localNames. |
void |
setBackref(IRubyObject match)
|
void |
setLastLine(IRubyObject value)
|
void |
setNext(StackElement newNext)
|
void |
setSuperObject(IRubyObject superObject)
Setter for property superObject. |
void |
setValue(int count,
IRubyObject value)
|
void |
setVisibility(Visibility visibility)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Scope(Ruby ruby)
Method Detail |
public StackElement getNext()
getNext
in interface StackElement
public void setNext(StackElement newNext)
setNext
in interface StackElement
public IRubyObject getSuperObject()
public void setSuperObject(IRubyObject superObject)
superObject
- New value of property superObject.public void resetLocalVariables(java.util.List localNames)
localNames
- The localNames to setpublic void addLocalVariables(java.util.List localNames)
public java.util.List getLocalValues()
public boolean hasLocalVariables()
public IRubyObject getValue(int count)
public void setValue(int count, IRubyObject value)
public Visibility getVisibility()
public void setVisibility(Visibility visibility)
public IRubyObject getLastLine()
public void setLastLine(IRubyObject value)
public IRubyObject getBackref()
public void setBackref(IRubyObject match)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |