anvil.script
Class Generator

java.lang.Object
  |
  +--anvil.script.StackFrame
        |
        +--anvil.script.Generator
All Implemented Interfaces:
BindingIterator, java.util.Iterator

public class Generator
extends StackFrame
implements BindingIterator

interface Generator


Field Summary
 
Fields inherited from class anvil.script.StackFrame
_escape, _function, _locals, _maxlocals, _module, _self, _stack, _stackptr, _zone, line
 
Fields inherited from interface anvil.java.util.BindingIterator
EMPTY
 
Constructor Summary
Generator(Context context, Module script, Any self, Function function, int maxlocals)
           
 
Method Summary
 void detach()
           
 Any eject()
           
 BindingIterator getIterator(int index)
           
protected  boolean getNextElement()
           
 int getState()
           
 Any getWrapper()
           
 boolean hasNext()
           
 void inject(Any value)
           
 java.lang.Object next()
           
 java.lang.Object nextKey()
          Note: this method should not move the iterator to next element.
 void remove()
           
 void setClosedState()
           
 void setState(int state, int line)
           
 java.lang.String toString()
           
 
Methods inherited from class anvil.script.StackFrame
clear, destroy, getEscape, getEscape, getFunction, getLine, getLocal, getLocal, getModule, getPathinfo, getSelf, getZone, init, peek, peek, pop, push, serialize, setEscape, setLine, setLocal, setLocal, unserialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Generator

public Generator(Context context,
                 Module script,
                 Any self,
                 Function function,
                 int maxlocals)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class StackFrame

detach

public final void detach()
Overrides:
detach in class StackFrame

getWrapper

public Any getWrapper()

inject

public void inject(Any value)

eject

public Any eject()

getIterator

public BindingIterator getIterator(int index)

getState

public int getState()

setState

public void setState(int state,
                     int line)

setClosedState

public void setClosedState()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

nextKey

public java.lang.Object nextKey()
Description copied from interface: BindingIterator
Note: this method should not move the iterator to next element.

Specified by:
nextKey in interface BindingIterator
Returns:
Next key in iterator.

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

getNextElement

protected boolean getNextElement()

remove

public void remove()
Specified by:
remove in interface java.util.Iterator