org.apache.jasper.compiler

Class Node.TemplateText

public static class Node.TemplateText extends Node

Represents a template text string
Constructor Summary
TemplateText(String text, Mark start, Node parent)
Method Summary
voidaccept(Node.Visitor v)
voidaddSmap(int srcLine)
Add a source to Java line mapping
ArrayListgetExtraSmap()
booleanisAllSpace()
Returns true if this template text contains whitespace only.
voidltrim()
Trim all whitespace from the left of the template text
voidrtrim()
Trim all whitespace from the right of the template text
voidsetText(String text)

Constructor Detail

TemplateText

public TemplateText(String text, Mark start, Node parent)

Method Detail

accept

public void accept(Node.Visitor v)

addSmap

public void addSmap(int srcLine)
Add a source to Java line mapping

Parameters: srcLine The postion of the source line, relative to the line at the start of this node. The corresponding java line is assumed to be consecutive, i.e. one more than the last.

getExtraSmap

public ArrayList getExtraSmap()

isAllSpace

public boolean isAllSpace()
Returns true if this template text contains whitespace only.

ltrim

public void ltrim()
Trim all whitespace from the left of the template text

rtrim

public void rtrim()
Trim all whitespace from the right of the template text

setText

public void setText(String text)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.