NVelocity.Runtime.Parser.Node
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. *

Fields inherited from class NVelocity.Runtime.Parser.Node.SimpleNode
children, first, id, info, invalid, last, parent, parser, rsvc, state

Constructor Summary
ASTElseIfStatement(int id)
ASTElseIfStatement(NVelocity.Runtime.Parser.Parser p, int id)

Properties inherited from class NVelocity.Runtime.Parser.Node.SimpleNode
Column, FirstToken, Info, LastToken, Line, Type

Method Summary
bool evaluate(NVelocity.Context.InternalContextAdapter context)
         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.
object jjtAccept(NVelocity.Runtime.Parser.Node.ParserVisitor visitor, object data)
        Accept the visitor. *
bool render(NVelocity.Context.InternalContextAdapter context, System.IO.TextWriter writer)
         renders the block

Methods inherited from class NVelocity.Runtime.Parser.Node.SimpleNode
childrenAccept, dump, execute, init, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, setInvalid, toString, value_Renamed

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

ASTElseIfStatement

public ASTElseIfStatement(int id)


ASTElseIfStatement

public ASTElseIfStatement(NVelocity.Runtime.Parser.Parser p,
                          int id)

Method Detail

evaluate

public bool evaluate(NVelocity.Context.InternalContextAdapter context)

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.


jjtAccept

public object jjtAccept(NVelocity.Runtime.Parser.Node.ParserVisitor visitor,
                        object data)

Accept the visitor. *


render

public bool render(NVelocity.Context.InternalContextAdapter context,
                   System.IO.TextWriter writer)

renders the block