Package org.apache.commons.jelly.impl
Class TextScript
java.lang.Object
org.apache.commons.jelly.impl.TextScript
- All Implemented Interfaces:
Script
TextScript
outputs some static 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.getText()
void
run
(JellyContext context, XMLOutput output) Evaluates the body of a tagvoid
Sets the text output by this scripttoString()
void
Trims whitespace if this is ignorable whitespace.
-
Constructor Details
-
TextScript
public TextScript() -
TextScript
-
-
Method Details
-
toString
-
trimWhitespace
public void trimWhitespace()Trims whitespace if this is ignorable whitespace. -
getText
- Returns:
- the text output by this script
-
setText
Sets the text 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
-