public class ScriptBlock extends Object implements Script
ScriptBlock a block of scripts.
| Constructor and Description |
|---|
ScriptBlock()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addScript(Script script)
Add a new script to the end of this block
|
Script |
compile()
Called by the parser to allow a more efficient
representation of the script to be used.
|
List |
getScriptList()
Gets the child scripts that make up this block.
|
void |
removeScript(Script script)
Removes a script from this block
|
void |
run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
String |
toString() |
void |
trimWhitespace()
Trim the body of the script.
|
public String toString()
toString in class ObjectObject.toString()public void addScript(Script script)
public void removeScript(Script script)
public List getScriptList()
public Script compile() throws JellyException
Scriptcompile in interface ScriptJellyExceptionpublic void run(JellyContext context, XMLOutput output) throws JellyTagException
run in interface ScriptJellyTagExceptionpublic void trimWhitespace()
Copyright © 2012 Apache Software Foundation. All Rights Reserved.