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
|
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data) |
java.lang.Object |
value(InternalContextAdapter context)
Returns the value of the expression.
|
childrenAccept, dump, execute, getChildren, 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 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept in interface NodejjtAccept in class SimpleNodeSimpleNode.jjtAccept(bboss.org.apache.velocity.runtime.parser.node.ParserVisitor, java.lang.Object)public java.lang.Object value(InternalContextAdapter context) throws MethodInvocationException
value in interface Nodevalue in class SimpleNodecontext - MethodInvocationExceptionNode.value(bboss.org.apache.velocity.context.InternalContextAdapter)public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
evaluate in interface Nodeevaluate in class SimpleNodecontext - MethodInvocationExceptionNode.evaluate(bboss.org.apache.velocity.context.InternalContextAdapter)