org.concord.util.script
Class BlockStatement

java.lang.Object
  |
  +--org.concord.util.script.ScriptObject
        |
        +--org.concord.util.script.Statement
              |
              +--org.concord.util.script.BlockStatement
All Implemented Interfaces:
java.beans.BeanInfo

public class BlockStatement
extends Statement


Field Summary
protected  java.util.Stack locals
           
protected  java.util.Stack statements
           
 
Fields inherited from class org.concord.util.script.Statement
empty
 
Fields inherited from class org.concord.util.script.ScriptObject
beginColumn, beginLine, debug, deleted, doConversion, endColumn, endLine, name, nil, runtimeTable, script
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
BlockStatement()
           
 
Method Summary
 void addLocal(java.lang.String varName)
           
 void addStatement(Statement statement)
           
 void delete()
           
 void interpret()
          This does nothing.
 boolean removeLocal(java.lang.String varName)
           
 boolean removeStatement(Statement statement)
           
 
Methods inherited from class org.concord.util.script.Statement
getLocals
 
Methods inherited from class org.concord.util.script.ScriptObject
findConstructor, findMethod, getAdditionalBeanInfo, getArrayValue, getAtom, getBeanDescriptor, getCurrentFrame, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getField, getFieldValue, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, getScript, popFrame, pushFrame, setArrayValue, setCurrentFrame, setFieldValue, setName, setScript, setSourceBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locals

protected java.util.Stack locals

statements

protected java.util.Stack statements
Constructor Detail

BlockStatement

public BlockStatement()
Method Detail

delete

public void delete()
Overrides:
delete in class ScriptObject

removeStatement

public boolean removeStatement(Statement statement)

removeLocal

public boolean removeLocal(java.lang.String varName)

addStatement

public void addStatement(Statement statement)

addLocal

public void addLocal(java.lang.String varName)

interpret

public void interpret()
Description copied from class: ScriptObject
This does nothing. Maybe should be abstract?
Overrides:
interpret in class Statement