net.sourceforge.templat.lexer
Class IfToken
java.lang.Object
net.sourceforge.templat.lexer.IfToken
- All Implemented Interfaces:
- TemplateToken
class IfToken
- extends Object
- implements TemplateToken
@ if ( boolean-expression ) @
- Author:
- Chris Mosher
IfToken
public IfToken(String tag)
- Parameters:
tag
-
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 templateappendTo
- the Appendable
to append the result of the parsing to
- Throws:
TemplateParsingException