jep
Class BSFJepEngine

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

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,v 1.5 2005/02/14 21:34:31 mrjohnson Exp $
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.

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.


propertyChange

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

Parameters:
e - a java.beans.PropertyChangeEvent value

declareBean

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

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

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.

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.

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.

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