freemarker.core
Class TemplateObject
java.lang.Object
freemarker.core.TemplateObject
- Direct Known 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.lang.String getStartLocation()
- Returns a string that indicates
where in the template source, this object is.
getEndLocation
public java.lang.String getEndLocation()
getSource
public final java.lang.String getSource()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.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 java.lang.String getCanonicalForm()