freemarker.core
Class TemplateObject
java.lang.Object
freemarker.core.TemplateObject
- Direct Known Subclasses:
- Expression, TemplateElement
public abstract class TemplateObject
- extends Object
Objects that represent instructions or expressions
in the compiled tree representation of the template
all descend from this abstract base class.
TemplateObject
public TemplateObject()
getBeginColumn
public final int getBeginColumn()
getBeginLine
public final int getBeginLine()
getEndColumn
public final int getEndColumn()
getEndLine
public final int getEndLine()
getStartLocation
public String getStartLocation()
- Returns a string that indicates
where in the template source, this object is.
getEndLocation
public String getEndLocation()
getSource
public final String getSource()
toString
public String toString()
- Overrides:
toString
in class Object
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.
getTemplate
public Template getTemplate()
getCanonicalForm
public abstract String getCanonicalForm()