public class ASTAndNode extends ASTLogicalOperator
| Constructor and Description |
|---|
ASTAndNode(int id) |
ASTAndNode(Parser p,
int id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(InternalContextAdapter context)
logical and :
null && right = false
left && null = false
null && null = false
|
String |
getLiteralOperator()
get the string representing the mathematical operator
|
Object |
jjtAccept(ParserVisitor visitor,
Object data) |
Object |
value(InternalContextAdapter context)
Returns the value of the expression.
|
initliteralchildrenAccept, cleanupParserAndTokens, dump, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toStringpublic ASTAndNode(int id)
id - public ASTAndNode(Parser p, int id)
p - id - public String getLiteralOperator()
ASTBinaryOperatorgetLiteralOperator in class ASTBinaryOperatorpublic 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–2017 The Apache Software Foundation. All rights reserved.