jep
Class BSFJepEngine

java.lang.Object
  extended by org.apache.bsf.util.BSFEngineImpl
      extended by jep.BSFJepEngine
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, org.apache.bsf.BSFEngine

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

 BSFJepEngine.java - Apache BSF support.

 Copyright (c) 2004, 2005 Mike Johnson.

 This file is licenced under the the zlib/libpng License.

 This software is provided 'as-is', without any express or implied
 warranty. In no event will the authors be held liable for any
 damages arising from the use of this software.
 
 Permission is granted to anyone to use this software for any
 purpose, including commercial applications, and to alter it and
 redistribute it freely, subject to the following restrictions:
 
     1. The origin of this software must not be misrepresented; you
     must not claim that you wrote the original software. If you use
     this software in a product, an acknowledgment in the product
     documentation would be appreciated but is not required.
 
     2. Altered source versions must be plainly marked as such, and
     must not be misrepresented as being the original software.
 
     3. This notice may not be removed or altered from any source
     distribution.

 Created: Sat Jun 12 19:41:04 2004
 

Version:
$Id: BSFJepEngine.html 357 2006-09-18 03:26:54Z mrjohnson0 $
Author:
[mrjohnson0 at sourceforge.net] Mike Johnson

Field Summary
 
Fields inherited from class org.apache.bsf.util.BSFEngineImpl
classLoader, classPath, dbgmgr, declaredBeans, lang, mgr, tempDir
 
Constructor Summary
BSFJepEngine()
           
 
Method Summary
 java.lang.Object call(java.lang.Object object, java.lang.String method, java.lang.Object[] args)
          Describe call method here.
 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 script)
          Evaluate an expression.
 void exec(java.lang.String source, int lineNo, int columnNo, java.lang.Object script)
          Execute a script.
 void initialize(org.apache.bsf.BSFManager mgr, java.lang.String lang, java.util.Vector declaredBeans)
          Initialize the engine.
static void main(java.lang.String[] args)
          for testing.
 void propertyChange(java.beans.PropertyChangeEvent e)
          Describe propertyChange method here.
 void terminate()
          Describe terminate method here.
 void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
          Undeclare a bean
 
Methods inherited from class org.apache.bsf.util.BSFEngineImpl
apply, compileApply, compileExpr, compileScript, disconnectedDebuggerNotify, getSpecificDebuggingInterface, placeBreakpointAtLine, placeBreakpointAtOffset, removeBreakpoint, setEntryExit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSFJepEngine

public BSFJepEngine()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
for testing.

Parameters:
args - a String[] value
Throws:
java.lang.Exception - if an error occurs

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.

Specified by:
initialize in interface org.apache.bsf.BSFEngine
Overrides:
initialize in class org.apache.bsf.util.BSFEngineImpl
Parameters:
mgr - a BSFManager value
lang - a String value
declaredBeans - a Vector value
Throws:
org.apache.bsf.BSFException - if an error occurs

terminate

public void terminate()
Describe terminate method here.

Specified by:
terminate in interface org.apache.bsf.BSFEngine
Overrides:
terminate in class org.apache.bsf.util.BSFEngineImpl

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Describe propertyChange method here.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class org.apache.bsf.util.BSFEngineImpl
Parameters:
e - a java.beans.PropertyChangeEvent value

declareBean

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

Specified by:
declareBean in interface org.apache.bsf.BSFEngine
Overrides:
declareBean in class org.apache.bsf.util.BSFEngineImpl
Parameters:
bean - a BSFDeclaredBean value
Throws:
org.apache.bsf.BSFException - if an error occurs

undeclareBean

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

Specified by:
undeclareBean in interface org.apache.bsf.BSFEngine
Overrides:
undeclareBean in class org.apache.bsf.util.BSFEngineImpl
Parameters:
bean - a BSFDeclaredBean value
Throws:
org.apache.bsf.BSFException - if an error occurs

call

public java.lang.Object call(java.lang.Object object,
                             java.lang.String method,
                             java.lang.Object[] args)
                      throws org.apache.bsf.BSFException
Describe call method here.

Specified by:
call in interface org.apache.bsf.BSFEngine
Specified by:
call in class org.apache.bsf.util.BSFEngineImpl
Parameters:
object - an Object value
method - a String value
args - an Object[] value
Returns:
an Object value
Throws:
org.apache.bsf.BSFException - if an error occurs

eval

public java.lang.Object eval(java.lang.String source,
                             int lineNo,
                             int columnNo,
                             java.lang.Object script)
                      throws org.apache.bsf.BSFException
Evaluate an expression.

Specified by:
eval in interface org.apache.bsf.BSFEngine
Specified by:
eval in class org.apache.bsf.util.BSFEngineImpl
Parameters:
source - a String value
lineNo - an int value
columnNo - an int value
script - an Object value
Returns:
an Object value
Throws:
org.apache.bsf.BSFException - if an error occurs

exec

public void exec(java.lang.String source,
                 int lineNo,
                 int columnNo,
                 java.lang.Object script)
          throws org.apache.bsf.BSFException
Execute a script.

Specified by:
exec in interface org.apache.bsf.BSFEngine
Overrides:
exec in class org.apache.bsf.util.BSFEngineImpl
Parameters:
source - a String value
lineNo - an int value
columnNo - an int value
script - an Object value
Throws:
org.apache.bsf.BSFException - if an error occurs