Package org.apache.commons.jelly.impl
Class ExpressionScript
java.lang.Object
org.apache.commons.jelly.impl.ExpressionScript
- All Implemented Interfaces:
Script
ExpressionScript
outputs the value of an expression as text.
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile()
Called by the parser to allow a more efficient representation of the script to be used.void
run
(JellyContext context, XMLOutput output) Evaluates the body of a tagvoid
setExpression
(Expression expression) Sets the expression evaluated as a String and output by this scripttoString()
-
Constructor Details
-
ExpressionScript
public ExpressionScript() -
ExpressionScript
-
-
Method Details
-
toString
-
getExpression
- Returns:
- the expression evaluated as a String and output by this script
-
setExpression
Sets the expression evaluated as a String and output by this script -
compile
Description copied from interface:Script
Called by the parser to allow a more efficient representation of the script to be used. -
run
Evaluates the body of a tag- Specified by:
run
in interfaceScript
- Throws:
JellyTagException
-