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

java.lang.Object
  |
  +--bsh.Interpreter
        |
        +--org.apache.commons.jelly.tags.beanshell.JellyInterpreter
All Implemented Interfaces:
bsh.ConsoleInterface, java.lang.Runnable

public class JellyInterpreter
extends bsh.Interpreter

Integrates BeanShell's interpreter with Jelly's JellyContext

Version:
$Revision: 1.4 $
Author:
James Strachan

Fields inherited from class bsh.Interpreter
DEBUG, noExitOnEOF, strictJava, 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, getErr, getIn, getInterface, getNameSpace, getOut, getParent, getSourceFileInfo, getVariable, main, pathToFile, print, println, redirectOutputToFile, run, set, set, set, set, set, set, setClassLoader, setConsole, setNameSpace, setVariable, setVariable, setVariable, setVariable, source, source, unset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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 '_'


Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.