org.apache.velocity.runtime.parser.node

Class ASTOrNode

public class ASTOrNode extends SimpleNode

Please look at the Parser.jjt file which is what controls the generation of this class.

Version: $Id: ASTOrNode.java,v 1.6.8.1 2004/03/03 23:22:59 geirm Exp $

Author: Jason van Zyl Geir Magnusson Jr.

Constructor Summary
ASTOrNode(int id)
ASTOrNode(Parser p, int id)
Method Summary
booleanevaluate(InternalContextAdapter context)
the logical or : the rule : left || null -> left null || right -> right null || null -> false left || right -> left || right
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.
Objectvalue(InternalContextAdapter context)
Returns the value of the expression.

Constructor Detail

ASTOrNode

public ASTOrNode(int id)

ASTOrNode

public ASTOrNode(Parser p, int id)

Method Detail

evaluate

public boolean evaluate(InternalContextAdapter context)
the logical or : the rule : left || null -> left null || right -> right null || null -> false left || right -> left || right

jjtAccept

public Object jjtAccept(ParserVisitor visitor, Object data)
Accept the visitor. *

value

public Object value(InternalContextAdapter context)
Returns the value of the expression. Since the value of the expression is simply the boolean result of evaluate(), lets return that.
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.