org.concord.util.script
Class FinishStatement

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

public class FinishStatement
extends Statement

The FinishStatement class implements the node that supports the semantics of the "finish" statement. The finish statement, when used inside a loop statement, causes the loop to terminate of the block. The finish statement works just like a "break" statement in the C language. A label version of finish would terminate the enclosing loop statement with the same label (label semantics not yet implemented). The finish works in this semantic engine by merely setting a flag in the current stack frame. It is up to the enclosing semantic nodes to determine if they should implement finish semantics at their level of scope.

Version:
$Revision: 1.1.1.1 $ $Date: 2001/04/28 00:39:30 $
Author:
$Author: ed $

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
FinishStatement()
           
 
Method Summary
 void interpret()
          This does nothing.
 
Methods inherited from class org.concord.util.script.Statement
getLocals
 
Methods inherited from class org.concord.util.script.ScriptObject
delete, 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
 

Constructor Detail

FinishStatement

public FinishStatement()
Method Detail

interpret

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