TeaEngine 0.7.0 Java Script API

com.pdmfc.tea.engine
Class TeaCompiledScript

java.lang.Object
  extended by javax.script.CompiledScript
      extended by com.pdmfc.tea.engine.TeaCompiledScript

public class TeaCompiledScript
extends javax.script.CompiledScript


Constructor Summary
TeaCompiledScript(TeaScriptEngine engine, com.pdmfc.tea.compiler.SCode code)
           
 
Method Summary
 java.lang.Object eval(javax.script.ScriptContext scriptContext)
          Initialization of the Tea runtime environment is only performed when this method is 1st called for one engine.
 javax.script.ScriptEngine getEngine()
           
 
Methods inherited from class javax.script.CompiledScript
eval, eval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeaCompiledScript

public TeaCompiledScript(TeaScriptEngine engine,
                         com.pdmfc.tea.compiler.SCode code)
Method Detail

getEngine

public javax.script.ScriptEngine getEngine()
Specified by:
getEngine in class javax.script.CompiledScript

eval

public java.lang.Object eval(javax.script.ScriptContext scriptContext)
                      throws javax.script.ScriptException
Initialization of the Tea runtime environment is only performed when this method is 1st called for one engine. So, please keep in mind that, in this case a lot more Tea code might be executed, other than the one you are calling eval for.

Specified by:
eval in class javax.script.CompiledScript
Throws:
javax.script.ScriptException

TeaEngine 0.7.0 Java Script API

© 2007 PDM&FC, All Rights Reserved.