anvil.script
Class StackFrame

java.lang.Object
  |
  +--anvil.script.StackFrame
Direct Known Subclasses:
Generator

public class StackFrame
extends java.lang.Object

class StackFrame

Author:
Jani Lehtimäki

Field Summary
protected  StackFrame _escape
           
protected  Function _function
           
protected  Any[] _locals
           
protected  int _maxlocals
           
protected  Module _module
           
protected  Any _self
           
protected  Any[] _stack
           
protected  int _stackptr
           
protected  Zone _zone
           
 int line
           
 
Constructor Summary
StackFrame(Module module, Any self, Function function, int maxlocals)
           
 
Method Summary
 void clear()
           
 void destroy()
           
 void detach()
           
 StackFrame getEscape()
           
 StackFrame getEscape(int depth)
           
 Function getFunction()
           
 int getLine()
           
 Any getLocal(int index)
           
 Any getLocal(int depth, int index)
           
 Module getModule()
           
 java.lang.String getPathinfo()
           
 Any getSelf()
           
 Zone getZone()
           
 StackFrame init(Module module, Any self, Function function, int maxlocals)
           
 Any peek()
           
 Any peek(int pos)
           
 Any pop()
           
 void push(Any value)
           
 void serialize(Serializer serializer)
           
 void setEscape(StackFrame escape)
           
 void setLine(int line)
           
 Any setLocal(int index, Any value)
           
 Any setLocal(int depth, int index, Any value)
           
 java.lang.String toString()
           
static StackFrame unserialize(Unserializer unserializer, Module module, Any self, Function function)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_zone

protected Zone _zone

_module

protected Module _module

_self

protected Any _self

_function

protected Function _function

_locals

protected Any[] _locals

_maxlocals

protected int _maxlocals

_stack

protected Any[] _stack

_stackptr

protected int _stackptr

_escape

protected StackFrame _escape

line

public int line
Constructor Detail

StackFrame

public StackFrame(Module module,
                  Any self,
                  Function function,
                  int maxlocals)
Method Detail

init

public StackFrame init(Module module,
                       Any self,
                       Function function,
                       int maxlocals)

toString

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

clear

public void clear()

detach

public void detach()

destroy

public void destroy()

getFunction

public Function getFunction()

getLocal

public Any getLocal(int index)

setLocal

public Any setLocal(int index,
                    Any value)

getLocal

public Any getLocal(int depth,
                    int index)

setLocal

public Any setLocal(int depth,
                    int index,
                    Any value)

getModule

public Module getModule()

getSelf

public Any getSelf()

getPathinfo

public java.lang.String getPathinfo()

getLine

public int getLine()

setLine

public void setLine(int line)

push

public void push(Any value)

pop

public Any pop()

peek

public Any peek()

peek

public Any peek(int pos)

setEscape

public void setEscape(StackFrame escape)

getEscape

public StackFrame getEscape()

getEscape

public StackFrame getEscape(int depth)

getZone

public Zone getZone()

serialize

public void serialize(Serializer serializer)
               throws java.io.IOException
java.io.IOException

unserialize

public static final StackFrame unserialize(Unserializer unserializer,
                                           Module module,
                                           Any self,
                                           Function function)
                                    throws UnserializationException
UnserializationException