public class TextScript extends Object implements Script
TextScript
outputs some static text.
Constructor and Description |
---|
TextScript() |
TextScript(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.
|
String |
getText() |
void |
run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
void |
setText(String text)
Sets the text output by this script
|
String |
toString() |
void |
trimWhitespace()
Trims whitespace if this is ignorable whitespace.
|
public TextScript()
public TextScript(String text)
public void trimWhitespace()
public String getText()
public void setText(String text)
public Script compile()
Script
public void run(JellyContext context, XMLOutput output) throws JellyTagException
run
in interface Script
JellyTagException
Copyright © 2014 Apache Software Foundation. All rights reserved.