org.apache.commons.jelly.tags.beanshell
Class JellyInterpreter

java.lang.Object
  extended bybsh.Interpreter
      extended byorg.apache.commons.jelly.tags.beanshell.JellyInterpreter
All Implemented Interfaces:
bsh.ConsoleInterface, java.lang.Runnable, java.io.Serializable

public class JellyInterpreter
extends bsh.Interpreter

Integrates BeanShell's interpreter with Jelly's JellyContext

Version:
$Revision: 1.2 $
Author:
James Strachan
See Also:
Serialized Form

Field Summary
private  org.apache.commons.jelly.JellyContext context
           
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
 
Fields inherited from class bsh.Interpreter
DEBUG, evalOnly, interactive, LOCALSCOPING, TRACE, VERSION
 
Constructor Summary
JellyInterpreter()
           
 
Method Summary
protected  java.lang.String convertVariableName(java.lang.String name)
          Converts variables to a beanshell allowable format or hides names that can't be converted, by returning null.
 org.apache.commons.jelly.JellyContext getJellyContext()
           
 void setJellyContext(org.apache.commons.jelly.JellyContext context)
           
 
Methods inherited from class bsh.Interpreter
debug, error, eval, eval, eval, eval, get, getClassManager, getErr, getIn, getInterface, getNameSpace, getOut, getParent, getSourceFileInfo, getStrictJava, main, pathToFile, print, println, redirectOutputToFile, run, set, set, set, set, set, set, setClassLoader, setConsole, setErr, setExitOnEOF, setNameSpace, setOut, setStrictJava, source, source, unset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.


context

private org.apache.commons.jelly.JellyContext context
Constructor Detail

JellyInterpreter

public JellyInterpreter()
Method Detail

getJellyContext

public org.apache.commons.jelly.JellyContext getJellyContext()

setJellyContext

public void setJellyContext(org.apache.commons.jelly.JellyContext context)
                     throws bsh.EvalError
Throws:
bsh.EvalError

convertVariableName

protected java.lang.String convertVariableName(java.lang.String name)
Converts variables to a beanshell allowable format or hides names that can't be converted, by returning null. For now lets just turn '.' into '_'