org.apache.velocity.runtime.parser.node
Class ASTElseIfStatement
- Node
public class ASTElseIfStatement
This class is responsible for handling the ElseIf VTL control statement.
Please look at the Parser.jjt file which is
what controls the generation of this class.
Version:
- Jason van Zyl
- Geir Magnusson Jr.
childrenAccept , dump , evaluate , execute , getColumn , getFirstToken , getInfo , getLastToken , getLine , getType , init , isInvalid , jjtAccept , jjtAddChild , jjtClose , jjtGetChild , jjtGetNumChildren , jjtGetParent , jjtOpen , jjtSetParent , literal , render , setFirstToken , setInfo , setInvalid , toString , value |
ASTElseIfStatement
public ASTElseIfStatement(int id)
ASTElseIfStatement
public ASTElseIfStatement(Parser p,
int id)
evaluate
public boolean evaluate(InternalContextAdapter context)
throws MethodInvocationException
An ASTElseStatement is true if the expression
it contains evaluates to true. Expressions know
how to evaluate themselves, so we do that
here and return the value back to ASTIfStatement
where this node was originally asked to evaluate
itself.
- evaluate in interface Node
- evaluate in interface SimpleNode
Copyright © 2003 Apache Software Foundation. All Rights Reserved.