|
||||||||||
| 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
public abstract class AbstractEngine
An abstract BSF engine implementation.
| Field Summary | |
|---|---|
protected static String |
CLASS_PATH_SEPARATOR_EXPR
The class path separator expression. |
| Fields inherited from interface org.norther.tammi.core.scripter.lang.ScriptEngine |
|---|
APPLY, ARGUMENTS, EVALUATE, EXECUTE, MAIN |
| Constructor Summary | |
|---|---|
AbstractEngine()
Constructs a new engine. |
|
| Method Summary | |
|---|---|
void |
compileApply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments,
org.apache.bsf.util.CodeBuffer cb)
|
void |
compileExpr(String source,
int lineNo,
int columnNo,
Object expr,
org.apache.bsf.util.CodeBuffer cb)
|
void |
compileScript(String source,
int lineNo,
int columnNo,
Object script,
org.apache.bsf.util.CodeBuffer cb)
|
void |
disconnectedDebuggerNotify()
|
protected ClassLoader |
getClassLoader()
Gets the class loader. |
protected String |
getClassPath()
Gets the class path. |
protected org.apache.bsf.debug.BSFDebugManager |
getDebugManager()
Gets the debug manager. |
protected Vector |
getDeclaredBeans()
Gets the declared beans. |
String |
getInitializer()
Gets an initializer script. |
protected String |
getLanguage()
Gets the language. |
Object |
getSpecificDebuggingInterface()
|
protected String |
getTempDirectory()
Gets the temp directory. |
void |
initialize(org.apache.bsf.BSFManager mgr,
String lang,
Vector beans)
|
boolean |
isInitialized()
Checks whether initialized. |
void |
placeBreakpointAtLine(int brkptid,
String docname,
int lineno)
|
void |
placeBreakpointAtOffset(int brkptid,
String docname,
int offset)
|
void |
propertyChange(PropertyChangeEvent event)
|
void |
reinitialize(String lang,
Vector beans)
Reinitializes the engine by clearing existing declarations. |
void |
removeBreakpoint(String docname,
int brkptid)
|
protected void |
setClassLoader(ClassLoader loader)
Sets the class loader. |
protected void |
setClassPath(String path)
Sets the class path. |
void |
setEntryExit(String docname,
boolean on)
|
void |
setInitializer(String script)
Sets an initializer script. |
protected void |
setTempDirectory(String temp)
Sets the temp directory. |
void |
terminate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.bsf.BSFEngine |
|---|
apply, call, declareBean, eval, exec, undeclareBean |
| Field Detail |
|---|
protected static final String CLASS_PATH_SEPARATOR_EXPR
| Constructor Detail |
|---|
public AbstractEngine()
| Method Detail |
|---|
public void initialize(org.apache.bsf.BSFManager mgr,
String lang,
Vector beans)
throws org.apache.bsf.BSFException
initialize in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFExceptionpublic String getInitializer()
ScriptEngine
getInitializer in interface ScriptEnginepublic void setInitializer(String script)
ScriptEngine
setInitializer in interface ScriptEnginescript - the initializer.public boolean isInitialized()
ScriptEngine
isInitialized in interface ScriptEngine
public void reinitialize(String lang,
Vector beans)
throws org.apache.bsf.BSFException
ScriptEngine
reinitialize in interface ScriptEnginelang - the language.beans - declared beans.
org.apache.bsf.BSFException - on errors.
public void compileApply(String source,
int lineNo,
int columnNo,
Object funcBody,
Vector paramNames,
Vector arguments,
org.apache.bsf.util.CodeBuffer cb)
throws org.apache.bsf.BSFException
compileApply in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public void compileExpr(String source,
int lineNo,
int columnNo,
Object expr,
org.apache.bsf.util.CodeBuffer cb)
throws org.apache.bsf.BSFException
compileExpr in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public void compileScript(String source,
int lineNo,
int columnNo,
Object script,
org.apache.bsf.util.CodeBuffer cb)
throws org.apache.bsf.BSFException
compileScript in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFExceptionpublic void terminate()
terminate in interface org.apache.bsf.BSFEnginepublic Object getSpecificDebuggingInterface()
getSpecificDebuggingInterface in interface org.apache.bsf.BSFEnginepublic void disconnectedDebuggerNotify()
disconnectedDebuggerNotify in interface org.apache.bsf.BSFEngine
public void placeBreakpointAtLine(int brkptid,
String docname,
int lineno)
throws org.apache.bsf.BSFException
placeBreakpointAtLine in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public void placeBreakpointAtOffset(int brkptid,
String docname,
int offset)
throws org.apache.bsf.BSFException
placeBreakpointAtOffset in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public void removeBreakpoint(String docname,
int brkptid)
throws org.apache.bsf.BSFException
removeBreakpoint in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFException
public void setEntryExit(String docname,
boolean on)
throws org.apache.bsf.BSFException
setEntryExit in interface org.apache.bsf.BSFEngineorg.apache.bsf.BSFExceptionpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerprotected String getLanguage()
protected Vector getDeclaredBeans()
protected String getClassPath()
protected void setClassPath(String path)
path - the class path.protected String getTempDirectory()
protected void setTempDirectory(String temp)
temp - the directory.protected ClassLoader getClassLoader()
protected void setClassLoader(ClassLoader loader)
loader - the class loader.protected org.apache.bsf.debug.BSFDebugManager getDebugManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||