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: 155420 $
Author:
James Strachan
See Also:
Serialized Form

Field Summary
 
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, invokeMain, 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
 

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



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