net.sourceforge.templat.lexer
Interface TemplateToken

All Known Implementing Classes:
ElseToken, EndIfToken, EndLoopToken, IfToken, IncludeToken, LoopToken, StringToken, TemplateDeclarationToken, ValueToken

public interface TemplateToken

Represents a token, as output from TemplateLexer.

Author:
Chris Mosher

Method Summary
 void parse(TemplateParser parser, Appendable appendTo)
          Parses this token.
 

Method Detail

parse

void parse(TemplateParser parser,
           Appendable appendTo)
           throws TemplateParsingException
Parses this token. Each token that implements the this interface will perform their primary action in this method.

Parameters:
parser - the parser that is parsing the template
appendTo - the Appendable to append the result of the parsing to
Throws:
TemplateParsingException