org.oXML.extras.bsf
Class oXMLEngine

java.lang.Object
  extended byorg.apache.bsf.util.BSFEngineImpl
      extended byorg.oXML.extras.bsf.oXMLEngine
All Implemented Interfaces:
org.apache.bsf.BSFEngine, java.util.EventListener, java.beans.PropertyChangeListener

public class oXMLEngine
extends org.apache.bsf.util.BSFEngineImpl


Field Summary
 
Fields inherited from class org.apache.bsf.util.BSFEngineImpl
classLoader, classPath, dbgmgr, declaredBeans, lang, mgr, tempDir
 
Constructor Summary
oXMLEngine()
           
 
Method Summary
 java.lang.Object call(java.lang.Object object, java.lang.String method, java.lang.Object[] args)
          call the named method of the given object.
 void declareBean(org.apache.bsf.BSFDeclaredBean bean)
          Declare a bean
 java.lang.Object eval(java.lang.String source, int lineNo, int columnNo, java.lang.Object oscript)
          Evaluate an expression.
 void initialize(org.apache.bsf.BSFManager mgr, java.lang.String lang, java.util.Vector declaredBeans)
          Initialize the engine.
protected  InterpretedProgram readInterpretedProgram(java.lang.String systemId, java.lang.String script)
           
protected  void setVariable(InterpretedProgram program, org.apache.bsf.BSFDeclaredBean bean)
           
 void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
          Undeclare a bean
 
Methods inherited from class org.apache.bsf.util.BSFEngineImpl
apply, compileApply, compileExpr, compileScript, disconnectedDebuggerNotify, exec, getSpecificDebuggingInterface, placeBreakpointAtLine, placeBreakpointAtOffset, propertyChange, removeBreakpoint, setEntryExit, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

oXMLEngine

public oXMLEngine()
Method Detail

initialize

public void initialize(org.apache.bsf.BSFManager mgr,
                       java.lang.String lang,
                       java.util.Vector declaredBeans)
                throws org.apache.bsf.BSFException
Initialize the engine.

Throws:
org.apache.bsf.BSFException

declareBean

public void declareBean(org.apache.bsf.BSFDeclaredBean bean)
                 throws org.apache.bsf.BSFException
Declare a bean

Throws:
org.apache.bsf.BSFException

undeclareBean

public void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
                   throws org.apache.bsf.BSFException
Undeclare a bean

Throws:
org.apache.bsf.BSFException

setVariable

protected void setVariable(InterpretedProgram program,
                           org.apache.bsf.BSFDeclaredBean bean)
                    throws org.apache.bsf.BSFException
Throws:
org.apache.bsf.BSFException

call

public java.lang.Object call(java.lang.Object object,
                             java.lang.String method,
                             java.lang.Object[] args)
                      throws org.apache.bsf.BSFException
call the named method of the given object.

Throws:
org.apache.bsf.BSFException

readInterpretedProgram

protected InterpretedProgram readInterpretedProgram(java.lang.String systemId,
                                                    java.lang.String script)
                                             throws org.apache.bsf.BSFException
Throws:
org.apache.bsf.BSFException

eval

public java.lang.Object eval(java.lang.String source,
                             int lineNo,
                             int columnNo,
                             java.lang.Object oscript)
                      throws org.apache.bsf.BSFException
Evaluate an expression. In this case, an expression is assumed to be a stylesheet of the template style (see the XSLT spec).

Throws:
org.apache.bsf.BSFException