Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTOrNode
public class ASTOrNode
extends SimpleNode
Field Summary |
Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode | |
children , first , id , info , invalid , last , parent , parser , rsvc , state |
Method Summary | |
boolean |
|
Object |
|
Object |
|
Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode | |
childrenAccept , dump , evaluate , execute , getColumn , getFirstToken , getInfo , getLastToken , getLine , getType , init , isInvalid , jjtAccept , jjtAddChild , jjtClose , jjtGetChild , jjtGetNumChildren , jjtGetParent , jjtOpen , jjtSetParent , literal , render , setFirstToken , setInfo , setInvalid , toString , value |
public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
the logical or : the rule : left || null -> left null || right -> right null || null -> false left || right -> left || right
- Overrides:
- evaluate in interface SimpleNode
public Object jjtAccept(ParserVisitor visitor, Object data)
Accept the visitor. *
- Overrides:
- jjtAccept in interface SimpleNode
public Object value(InternalContextAdapter context) throws MethodInvocationException
Returns the value of the expression. Since the value of the expression is simply the boolean result of evaluate(), lets return that.
- Overrides:
- value in interface SimpleNode