org.apache.velocity.runtime.parser.node

Class ASTAndNode

public class ASTAndNode extends SimpleNode

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

Version: $Id: ASTAndNode.java,v 1.8.8.1 2004/03/03 23:22:58 geirm Exp $

Author: Jason van Zyl Geir Magnusson Jr.

Constructor Summary
ASTAndNode(int id)
ASTAndNode(Parser p, int id)
Method Summary
booleanevaluate(InternalContextAdapter context)
logical and : null && right = false left && null = false null && null = false
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.
Objectvalue(InternalContextAdapter context)
Returns the value of the expression.

Constructor Detail

ASTAndNode

public ASTAndNode(int id)

ASTAndNode

public ASTAndNode(Parser p, int id)

Method Detail

evaluate

public boolean evaluate(InternalContextAdapter context)
logical and : null && right = false left && null = false null && null = false

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.