org.iperg.part.core
Interface IpScriptInterp


public interface IpScriptInterp

The IpScriptInterp interface defines method to be implemented by script interpreters.

If a script is added to a distributed object via the setScript method, there must exist a corresponding script interpreter class that is able to handle the script.

The syntax of script expressions given to setScript is

lang://script

For instance

tcl://puts hej

If such a script is given to setScript, PART tries to load and instantiate a script interpreter class with the name IpScriptNameInterp, for instance IpTclInterp. Such script language specific classes must impelement the IpScriptInterp to be loadable by PART.

Version:
1.0.0 Initial version
Author:
Olov Stahl - olovs@sics.se

Field Summary
static java.lang.String SCRIPT_INIT_PROC
           
 
Method Summary
 java.lang.String callMethod(IpObject obj, java.lang.String cmd, java.lang.String[] args)
           
 java.lang.String eval(IpObject obj, java.lang.String script)
           
 java.lang.String getScriptLang()
           
 

Field Detail

SCRIPT_INIT_PROC

static final java.lang.String SCRIPT_INIT_PROC
See Also:
Constant Field Values
Method Detail

eval

java.lang.String eval(IpObject obj,
                      java.lang.String script)
                      throws IpException
Throws:
IpException

callMethod

java.lang.String callMethod(IpObject obj,
                            java.lang.String cmd,
                            java.lang.String[] args)
                            throws IpException
Throws:
IpException

getScriptLang

java.lang.String getScriptLang()