public class TextScript extends java.lang.Object implements Script
TextScript outputs some static text.
| Constructor and Description |
|---|
TextScript() |
TextScript(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
Script |
compile()
Called by the parser to allow a more efficient
representation of the script to be used.
|
java.lang.String |
getText() |
void |
run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
void |
setText(java.lang.String text)
Sets the text output by this script
|
java.lang.String |
toString() |
void |
trimWhitespace()
Trims whitespace if this is ignorable whitespace.
|
public TextScript()
public TextScript(java.lang.String text)
public java.lang.String toString()
toString in class java.lang.Objectpublic void trimWhitespace()
public java.lang.String getText()
public void setText(java.lang.String text)
public Script compile()
Scriptpublic void run(JellyContext context, XMLOutput output) throws JellyTagException
run in interface ScriptJellyTagExceptionCopyright © 2012. All Rights Reserved.