public class TextToken extends TemplateToken implements IRender
TokenType.TEXT
Constructor and Description |
---|
TextToken(char[] templateData,
int startIndex,
int endIndex,
org.apache.hivemind.Location location) |
Modifier and Type | Method and Description |
---|---|
protected void |
extendDescription(org.apache.hivemind.util.ToStringBuilder builder)
Overridden in subclasses to append additional fields (defined in the subclass) to the
description.
|
int |
getLength() |
int |
getOffset() |
java.lang.String |
getTemplateDataAsString() |
void |
render(IMarkupWriter writer,
IRequestCycle cycle)
The principal rendering/rewinding method.
|
getLocation, getType, toString
public TextToken(char[] templateData, int startIndex, int endIndex, org.apache.hivemind.Location location)
public void render(IMarkupWriter writer, IRequestCycle cycle)
IRender
Renderring and rewinding are the exact same process. The same code that renders must be able to restore state by going through the exact same operations (even though the output is discarded).
protected void extendDescription(org.apache.hivemind.util.ToStringBuilder builder)
TemplateToken
extendDescription
in class TemplateToken
public java.lang.String getTemplateDataAsString()
public int getLength()
public int getOffset()