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
| 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 |
Generator
public Generator(Context context,
Module script,
Any self,
Function function,
int maxlocals)
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