org.teatrove.tea.parsetree
Class AndExpression
java.lang.Object
org.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Expression
org.teatrove.tea.parsetree.BinaryExpression
org.teatrove.tea.parsetree.BinaryLogicalExpression
org.teatrove.tea.parsetree.AndExpression
- All Implemented Interfaces:
- Serializable, Cloneable, Logical
public class AndExpression
- extends BinaryLogicalExpression
AndExpression defines a logical "and" operation with short-circuit
semantics. The type of an AndExpression is Boolean, and it operates only
on expressions that return Booleans.
- Author:
- Brian S O'Neill
- See Also:
- Serialized Form
|
Method Summary |
Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following:
return visitor.visit(this). |
AndExpression
public AndExpression(SourceInfo info,
Token token,
Expression left,
Expression right)
accept
public Object accept(NodeVisitor visitor)
- Description copied from class:
Node
- Every subclass of Node must override this method with the following:
return visitor.visit(this).
- Overrides:
accept in class Expression
- Parameters:
visitor - A visitor of this Node
- Returns:
- Node The Node returned by the visitor
- See Also:
NodeVisitor
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.