Tea Java Runtime API
Version 3.2.4

com.pdmfc.tea.compiler
Class SCode

java.lang.Object
  extended by com.pdmfc.tea.compiler.SCode

public class SCode
extends java.lang.Object

A Tea program that can be executed in a given context. A Tea program is just a sequence of Tea statements.


Method Summary
 java.lang.Object exec(SContext context)
          Executes the sequence of Tea statements in the context given as argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

exec

public final java.lang.Object exec(SContext context)
                            throws STeaException
Executes the sequence of Tea statements in the context given as argument.

Parameters:
context - Context inside wich the block will be executed.
Returns:
The value returned by the last command in the block or null if it is an empty block.
Throws:
STeaException - Only thrown by the execution of one of the statements.

Tea Java Runtime API
Version 3.2.4

© 2009 PDM&FC, All Rights Reserved.