org.jruby.runtime
Class ScopeStack

java.lang.Object
  extended byorg.jruby.util.collections.AbstractStack
      extended byorg.jruby.runtime.ScopeStack

public class ScopeStack
extends AbstractStack

Version:
$Revision: 1.7 $
Author:
jpetersen

Field Summary
 
Fields inherited from class org.jruby.util.collections.AbstractStack
top
 
Constructor Summary
ScopeStack(Ruby ruby)
           
 
Method Summary
 void addLocalVariables(java.util.List localNames)
           
 Scope current()
           
 IRubyObject getBackref()
           
 IRubyObject getLastLine()
           
 java.util.List getLocalNames()
           
 IRubyObject getSuperObject()
           
 IRubyObject getValue(int count)
           
 boolean hasLocalVariables()
           
 StackElement pop()
           
 void push()
           
 void push(java.util.List localNames)
           
 void push(StackElement newElement)
           
 void push(java.lang.String[] localNames)
           
 void resetLocalVariables(java.util.List localNames)
           
 void setBackref(IRubyObject match)
           
 void setLastLine(IRubyObject value)
           
 void setSuperObject(IRubyObject superObject)
           
 void setTop(StackElement newElement)
           
 void setValue(int count, IRubyObject value)
           
 
Methods inherited from class org.jruby.util.collections.AbstractStack
getTop, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeStack

public ScopeStack(Ruby ruby)
Method Detail

push

public void push(java.lang.String[] localNames)

push

public void push(java.util.List localNames)

push

public void push(StackElement newElement)
Overrides:
push in class AbstractStack

push

public void push()

pop

public StackElement pop()
Overrides:
pop in class AbstractStack

setTop

public void setTop(StackElement newElement)

current

public Scope current()

getSuperObject

public IRubyObject getSuperObject()

setSuperObject

public void setSuperObject(IRubyObject superObject)

getLocalNames

public java.util.List getLocalNames()

resetLocalVariables

public void resetLocalVariables(java.util.List localNames)

addLocalVariables

public void addLocalVariables(java.util.List localNames)

hasLocalVariables

public boolean hasLocalVariables()

getValue

public IRubyObject getValue(int count)

setValue

public void setValue(int count,
                     IRubyObject value)

getLastLine

public IRubyObject getLastLine()

setLastLine

public void setLastLine(IRubyObject value)

getBackref

public IRubyObject getBackref()

setBackref

public void setBackref(IRubyObject match)


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.