public class ASTElseIfStatement extends SimpleNode
Constructor and Description |
---|
ASTElseIfStatement(int id) |
ASTElseIfStatement(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(InternalContextAdapter context)
An ASTElseStatement is true if the expression
it contains evaluates to true.
|
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data) |
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data) |
boolean |
render(InternalContextAdapter context,
java.io.Writer writer) |
childrenAccept, cleanupParserAndTokens, dump, dump, dump, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getParser, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString, value
public ASTElseIfStatement(int id)
id
- public ASTElseIfStatement(Parser p, int id)
p
- id
- public java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws TemplateInitException
init
in interface Node
init
in class SimpleNode
TemplateInitException
Node.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
SimpleNode.jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor, java.lang.Object)
public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
evaluate
in interface Node
evaluate
in class SimpleNode
context
- MethodInvocationException
Node.evaluate(org.apache.velocity.context.InternalContextAdapter)
public boolean render(InternalContextAdapter context, java.io.Writer writer) throws java.io.IOException, MethodInvocationException, ResourceNotFoundException, ParseErrorException
render
in interface Node
render
in interface Renderable
render
in class SimpleNode
java.io.IOException
MethodInvocationException
ResourceNotFoundException
ParseErrorException
SimpleNode.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer)