com.jgpruitt.datamodeler.scripting
Class ScriptReader
java.lang.Object
com.jgpruitt.datamodeler.scripting.ScriptReader
public class ScriptReader
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptReader
public ScriptReader(javax.script.ScriptEngine engine)
ScriptReader
public ScriptReader()
getEngine
public javax.script.ScriptEngine getEngine()
getModel
public Model getModel()
getDiagram
public Diagram getDiagram()
setCurrentDirectory
public void setCurrentDirectory(java.lang.String directory)
getCurrentDirectory
public java.lang.String getCurrentDirectory()
include
public void include(java.lang.String filename)
throws java.lang.Exception
- Throws:
java.lang.Exception
readScripts
public void readScripts(java.io.File... files)
throws java.io.IOException,
javax.script.ScriptException
- Throws:
java.io.IOException
javax.script.ScriptException
readScripts
public void readScripts(java.lang.String... scripts)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
eval
public java.lang.Object eval(java.lang.String script)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException