public class ASTElseStatement extends SimpleNode
Constructor and Description |
---|
ASTElseStatement(int id) |
ASTElseStatement(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(InternalContextAdapter context)
An ASTElseStatement always evaluates to
true.
|
Object |
init(InternalContextAdapter context,
Object data) |
Object |
jjtAccept(ParserVisitor visitor,
Object data) |
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, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString, value
public ASTElseStatement(int id)
id
- public ASTElseStatement(Parser p, int id)
p
- id
- public Object jjtAccept(ParserVisitor visitor, 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)
evaluate
in interface Node
evaluate
in class SimpleNode
context
- Node.evaluate(org.apache.velocity.context.InternalContextAdapter)
public Object init(InternalContextAdapter context, Object data) throws TemplateInitException
init
in interface Node
init
in class SimpleNode
TemplateInitException
Node.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.