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
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 templateappendTo
- the Appendable
to append the result of the parsing to
- Throws:
TemplateParsingException