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.
|
Object |
init(InternalContextAdapter context,
Object data) |
Object |
jjtAccept(ParserVisitor visitor,
Object data) |
boolean |
render(InternalContextAdapter context,
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, valuepublic ASTElseIfStatement(int id)
id - public ASTElseIfStatement(Parser p, int id)
p - id - public Object init(InternalContextAdapter context, Object data) throws TemplateInitException
init in interface Nodeinit in class SimpleNodeTemplateInitExceptionNode.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)public Object jjtAccept(ParserVisitor visitor, Object data)
jjtAccept in interface NodejjtAccept in class SimpleNodeSimpleNode.jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor, java.lang.Object)public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
evaluate in interface Nodeevaluate in class SimpleNodecontext - MethodInvocationExceptionNode.evaluate(org.apache.velocity.context.InternalContextAdapter)public boolean render(InternalContextAdapter context, Writer writer) throws IOException, MethodInvocationException, ResourceNotFoundException, ParseErrorException
render in interface Noderender in interface Renderablerender in class SimpleNodeIOExceptionMethodInvocationExceptionResourceNotFoundExceptionParseErrorExceptionSimpleNode.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer)Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.