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 Object
Object.toString()
public void addScript(Script script)
public void removeScript(Script script)
public List getScriptList()
public Script compile() throws JellyException
Script
compile
in interface Script
JellyException
public void run(JellyContext context, XMLOutput output) throws JellyTagException
run
in interface Script
JellyTagException
public void trimWhitespace()
Copyright © 2014 Apache Software Foundation. All rights reserved.