freemarker.core
Class TemplateObject

java.lang.Object
  extended by 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.


Constructor Summary
TemplateObject()
           
 
Method Summary
 boolean contains(int column, int line)
           
 int getBeginColumn()
           
 int getBeginLine()
           
abstract  java.lang.String getCanonicalForm()
           
 int getEndColumn()
           
 int getEndLine()
           
 java.lang.String getEndLocation()
           
 java.lang.String getSource()
           
 java.lang.String getStartLocation()
          Returns a string that indicates where in the template source, this object is.
 Template getTemplate()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateObject

public TemplateObject()
Method Detail

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()