|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.walluck.oscar.script.ScriptInterpreter
public class ScriptInterpreter
Handles python scripts.
| Constructor Summary | |
|---|---|
ScriptInterpreter(AIMSession sess,
AIMConnection conn,
Oscar oscar)
Creates a new script interpreter. |
|
| Method Summary | |
|---|---|
void |
addScript(Script script)
Add a script. |
void |
addTimeoutHandler(Script script,
int time,
boolean forever,
String code)
Add a timeout handler for a script. |
void |
executeScriptFile(String filename)
Executes a script file. |
ArrayList |
getScripts()
Return the value of scripts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptInterpreter(AIMSession sess,
AIMConnection conn,
Oscar oscar)
sess - the oscar sessionconn - the bos connection for this sessionoscar - the oscar interface for this client| Method Detail |
|---|
public void executeScriptFile(String filename)
filename - the script file
public void addTimeoutHandler(Script script,
int time,
boolean forever,
String code)
script - the scripttime - the time in millisecondsforever - whether or not to repeat forevercode - the code to execute when the timeout occurspublic void addScript(Script script)
script - the script to addpublic ArrayList getScripts()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||