public class ComponentTemplate extends java.lang.Object
TBD: Record the name of the resource (or other location) from which the template was parsed (useful during debugging).
Constructor and Description |
---|
ComponentTemplate(char[] templateData,
TemplateToken[] tokens)
Creates a new ComponentTemplate.
|
Modifier and Type | Method and Description |
---|---|
char[] |
getTemplateData() |
TemplateToken |
getToken(int index) |
int |
getTokenCount() |
public ComponentTemplate(char[] templateData, TemplateToken[] tokens)
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.public char[] getTemplateData()
public TemplateToken getToken(int index)
public int getTokenCount()