public class ScriptBlock extends java.lang.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.
|
java.util.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
|
java.lang.String |
toString() |
void |
trimWhitespace()
Trim the body of the script.
|
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void addScript(Script script)
public void removeScript(Script script)
public java.util.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. All Rights Reserved.