freemarker.core

Class TemplateObject

Known Direct Subclasses:
Expression, TemplateElement

public abstract class TemplateObject
extends java.lang.Object

Objects that represent instructions or expressions in the compiled tree representation of the template all descend from this abstract base class.

Method Summary

boolean
contains(int column, int line)
int
getBeginColumn()
int
getBeginLine()
abstract String
getCanonicalForm()
int
getEndColumn()
int
getEndLine()
String
getEndLocation()
String
getSource()
String
getStartLocation()
Returns a string that indicates where in the template source, this object is.
Template
getTemplate()
String
toString()

Method Details

contains

public boolean contains(int column,
                        int line)
Returns:
whether the point in the template file specified by the column and line numbers is contained within this template object.

getBeginColumn

public final int getBeginColumn()

getBeginLine

public final int getBeginLine()

getCanonicalForm

public abstract String getCanonicalForm()

getEndColumn

public final int getEndColumn()

getEndLine

public final int getEndLine()

getEndLocation

public String getEndLocation()

getSource

public final String getSource()

getStartLocation

public String getStartLocation()
Returns a string that indicates where in the template source, this object is.

getTemplate

public Template getTemplate()

toString

public String toString()