Package org.apache.commons.jelly.impl
Class ScriptBlock
java.lang.Object
org.apache.commons.jelly.impl.ScriptBlock
- All Implemented Interfaces:
Script
- Direct Known Subclasses:
CompositeTextScriptBlock
ScriptBlock
a block of scripts.
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new script to the end of this blockcompile()
Called by the parser to allow a more efficient representation of the script to be used.Gets the child scripts that make up this block.void
removeScript
(Script script) Removes a script from this blockvoid
run
(JellyContext context, XMLOutput output) Evaluates the body of a tagtoString()
void
Trim the body of the script.
-
Constructor Details
-
ScriptBlock
public ScriptBlock()Create a new instance.
-
-
Method Details
-
toString
-
addScript
Add a new script to the end of this block -
removeScript
Removes a script from this block -
getScriptList
Gets the child scripts that make up this block. This list is live so that it can be modified if requried -
compile
Description copied from interface:Script
Called by the parser to allow a more efficient representation of the script to be used.- Specified by:
compile
in interfaceScript
- Throws:
JellyException
-
run
Evaluates the body of a tag- Specified by:
run
in interfaceScript
- Throws:
JellyTagException
-
trimWhitespace
public void trimWhitespace()Trim the body of the script. In this case, trim all elements, removing any that are empty text.
-