net.sourceforge.templat.lexer
Class TemplateDeclarationToken

java.lang.Object
  extended by net.sourceforge.templat.lexer.TemplateDeclarationToken
All Implemented Interfaces:
TemplateToken

 class TemplateDeclarationToken
extends Object
implements TemplateToken

template template-nameparameter1parameter2... ) @

Author:
Chris Mosher

Constructor Summary
TemplateDeclarationToken(String tag)
           
 
Method Summary
 void parse(TemplateParser parser, Appendable appendTo)
          Parses this token.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateDeclarationToken

public TemplateDeclarationToken(String tag)
Parameters:
tag -
Method Detail

toString

public String toString()
Overrides:
toString in class Object

parse

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

Specified by:
parse in interface TemplateToken
Parameters:
parser - the parser that is parsing the template
appendTo - the Appendable to append the result of the parsing to
Throws:
TemplateParsingException