|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.scripter.lang.AbstractEngine
org.norther.tammi.core.scripter.lang.AbstractInterpreter
org.norther.tammi.core.scripter.djava.DJavaEngine
public class DJavaEngine
A djava interpreter engine to compile, evaluate and execute Java scripts and expressions.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.scripter.lang.AbstractEngine |
|---|
CLASS_PATH_SEPARATOR_EXPR |
| Fields inherited from interface org.norther.tammi.core.scripter.lang.Interpreter |
|---|
JAVA_LANGUAGE |
| Fields inherited from interface org.norther.tammi.core.scripter.lang.ScriptEngine |
|---|
APPLY, ARGUMENTS, EVALUATE, EXECUTE, MAIN |
| Constructor Summary | |
|---|---|
DJavaEngine()
Constructs a new engine. |
|
| Method Summary | |
|---|---|
Object |
apply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments)
|
Object |
call(Object object,
String name,
Object[] args)
|
void |
declareBean(org.apache.bsf.BSFDeclaredBean bean)
|
Object |
eval(String source,
int lineNo,
int columnNo,
Object expr)
|
void |
exec(String source,
int lineNo,
int columnNo,
Object script)
|
protected Interpreter |
getInterpreter()
Gets the adapted interpreter. |
void |
reinitialize(String lang,
Vector beans)
Reinitializes the engine by clearing existing declarations. |
void |
reset()
Resets this interpreter. |
protected void |
setClassLoader(ClassLoader loader)
Sets the class loader. |
protected void |
setClassPath(String path)
Sets the class path. |
void |
terminate()
|
void |
undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
|
| Methods inherited from class org.norther.tammi.core.scripter.lang.AbstractInterpreter |
|---|
addClassPath, addClassURL, defineClass, defineVariable, defineVariable, getClassLoader, getClassNames, getVariable, getVariableClass, getVariableNames, interpret, interpret, interpret, interpret, interpret, isDefined, loadClass, setVariable |
| Methods inherited from class org.norther.tammi.core.scripter.lang.AbstractEngine |
|---|
compileApply, compileExpr, compileScript, disconnectedDebuggerNotify, getClassPath, getDebugManager, getDeclaredBeans, getInitializer, getLanguage, getSpecificDebuggingInterface, getTempDirectory, initialize, isInitialized, placeBreakpointAtLine, placeBreakpointAtOffset, propertyChange, removeBreakpoint, setEntryExit, setInitializer, setTempDirectory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DJavaEngine()
| Method Detail |
|---|
public void reinitialize(String lang,
Vector beans)
throws org.apache.bsf.BSFException
ScriptEngine
reinitialize in interface ScriptEnginereinitialize in class AbstractEnginelang - the language.beans - declared beans.
org.apache.bsf.BSFException - on errors.
public void declareBean(org.apache.bsf.BSFDeclaredBean bean)
throws org.apache.bsf.BSFException
declareBean in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
throws org.apache.bsf.BSFException
undeclareBean in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public Object call(Object object,
String name,
Object[] args)
throws org.apache.bsf.BSFException
call in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public Object apply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments)
throws org.apache.bsf.BSFException
apply in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public void exec(String source,
int lineNo,
int columnNo,
Object script)
throws org.apache.bsf.BSFException
exec in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public Object eval(String source,
int lineNo,
int columnNo,
Object expr)
throws org.apache.bsf.BSFException
eval in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFExceptionpublic void terminate()
terminate in interface org.apache.bsf.BSFEngineterminate in class AbstractEnginepublic void reset()
Interpreter
reset in interface Interpreterreset in class AbstractInterpreterprotected void setClassPath(String path)
AbstractEngine
setClassPath in class AbstractEnginepath - the class path.protected void setClassLoader(ClassLoader loader)
AbstractEngine
setClassLoader in class AbstractEngineloader - the class loader.protected Interpreter getInterpreter()
AbstractInterpreter
getInterpreter in class AbstractInterpreter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||