public class ASTOrNode extends SimpleNode
| Constructor and Description |
|---|
ASTOrNode(int id) |
ASTOrNode(Parser p,
int id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(InternalContextAdapter context)
the logical or :
the rule :
left || null -> left
null || right -> right
null || null -> false
left || right -> left || right
|
Object |
jjtAccept(ParserVisitor visitor,
Object data) |
Object |
value(InternalContextAdapter context)
Returns the value of the expression.
|
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, toStringpublic ASTOrNode(int id)
id - public ASTOrNode(Parser p, int id)
p - id - 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 Object value(InternalContextAdapter context) throws MethodInvocationException
value in interface Nodevalue in class SimpleNodecontext - MethodInvocationExceptionNode.value(org.apache.velocity.context.InternalContextAdapter)public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
evaluate in interface Nodeevaluate in class SimpleNodecontext - MethodInvocationExceptionNode.evaluate(org.apache.velocity.context.InternalContextAdapter)Copyright © 2000–2016. All rights reserved.