org.apache.tapestry.parse
Class ComponentTemplate
java.lang.Object
org.apache.tapestry.parse.ComponentTemplate
public class ComponentTemplate
- extends Object
Enapsulates a parsed component template, allowing access to the
tokens parsed.
TBD: Record the name of the resource (or other location) from which
the template was parsed (useful during debugging).
- Version:
- $Id: ComponentTemplate.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentTemplate
public ComponentTemplate(char[] templateData,
TemplateToken[] tokens)
- Creates a new ComponentTemplate.
- Parameters:
templateData
- The template data. This is not copied, so
the array passed in should not be modified further.tokens
- The tokens making up the template. This is also
retained (not copied), and so should not
be modified once passed to the constructor.
getTemplateData
public char[] getTemplateData()
getToken
public TemplateToken getToken(int index)
getTokenCount
public int getTokenCount()