org.apache.commons.jelly.tags.bsf
Class BSFExpression

java.lang.Object
  extended byorg.apache.commons.jelly.expression.ExpressionSupport
      extended byorg.apache.commons.jelly.tags.bsf.BSFExpression
All Implemented Interfaces:
org.apache.commons.jelly.expression.Expression

public class BSFExpression
extends org.apache.commons.jelly.expression.ExpressionSupport

Represents a BSF expression

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
private  org.apache.bsf.BSFEngine engine
          The BSF Engine to evaluate expressions
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
private  org.apache.bsf.BSFManager manager
          The BSF Manager to evaluate expressions
private  JellyContextRegistry registry
          The adapter to BSF's ObjectRegistry that uses the JellyContext
private  java.lang.String text
          The expression
 
Fields inherited from class org.apache.commons.jelly.expression.ExpressionSupport
EMPTY_ITERATOR
 
Constructor Summary
BSFExpression(java.lang.String text, org.apache.bsf.BSFEngine engine, org.apache.bsf.BSFManager manager, JellyContextRegistry registry)
           
 
Method Summary
 java.lang.Object evaluate(org.apache.commons.jelly.JellyContext context)
           
 java.lang.String getExpressionText()
           
 
Methods inherited from class org.apache.commons.jelly.expression.ExpressionSupport
evaluateAsBoolean, evaluateAsIterator, evaluateAsString, evaluateRecurse
 
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.


text

private java.lang.String text
The expression


engine

private org.apache.bsf.BSFEngine engine
The BSF Engine to evaluate expressions


manager

private org.apache.bsf.BSFManager manager
The BSF Manager to evaluate expressions


registry

private JellyContextRegistry registry
The adapter to BSF's ObjectRegistry that uses the JellyContext

Constructor Detail

BSFExpression

public BSFExpression(java.lang.String text,
                     org.apache.bsf.BSFEngine engine,
                     org.apache.bsf.BSFManager manager,
                     JellyContextRegistry registry)
Method Detail

getExpressionText

public java.lang.String getExpressionText()

evaluate

public java.lang.Object evaluate(org.apache.commons.jelly.JellyContext context)