org.apache.velocity.runtime.parser.node

Class ASTElseStatement

public class ASTElseStatement extends SimpleNode

This class is responsible for handling the Else VTL control statement. Please look at the Parser.jjt file which is what controls the generation of this class.

Version: $Id: ASTElseStatement.java,v 1.8.4.1 2004/03/03 23:22:58 geirm Exp $

Author: Jason van Zyl Geir Magnusson Jr.

Constructor Summary
ASTElseStatement(int id)
ASTElseStatement(Parser p, int id)
Method Summary
booleanevaluate(InternalContextAdapter context)
An ASTElseStatement always evaluates to true.
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.

Constructor Detail

ASTElseStatement

public ASTElseStatement(int id)

ASTElseStatement

public ASTElseStatement(Parser p, int id)

Method Detail

evaluate

public boolean evaluate(InternalContextAdapter context)
An ASTElseStatement always evaluates to true. Basically behaves like an #if(true).

jjtAccept

public Object jjtAccept(ParserVisitor visitor, Object data)
Accept the visitor. *
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.