Class ASTElseStatement
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTElseStatement
- All Implemented Interfaces:
Node,Renderable
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 517553 2007-03-13 06:09:58Z wglass $
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(InternalContextAdapter context) An ASTElseStatement always evaluates to true.jjtAccept(ParserVisitor visitor, Object data) Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, dump, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, init, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toString, value
-
Constructor Details
-
ASTElseStatement
public ASTElseStatement(int id) - Parameters:
id-
-
ASTElseStatement
- Parameters:
p-id-
-
-
Method Details
-
jjtAccept
- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Returns:
- The Node execution result object.
- See Also:
-
evaluate
An ASTElseStatement always evaluates to true. Basically behaves like an #if(true).- Specified by:
evaluatein interfaceNode- Overrides:
evaluatein classSimpleNode- Parameters:
context-- Returns:
- Always true.
- See Also:
-