com.go.tea.parsetree
Class AndExpression
java.lang.Object
|
+--com.go.tea.parsetree.Node
|
+--com.go.tea.parsetree.Expression
|
+--com.go.tea.parsetree.BinaryExpression
|
+--com.go.tea.parsetree.BinaryLogicalExpression
|
+--com.go.tea.parsetree.AndExpression
- All Implemented Interfaces:
- java.lang.Cloneable, Logical, java.io.Serializable
- 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.
- Version:
- 18 , 9/07/00
- Author:
- Brian S O'Neill
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following:
return visitor.visit(this). |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AndExpression
public AndExpression(SourceInfo info,
Token token,
Expression left,
Expression right)
accept
public java.lang.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
- Following copied from class:
com.go.tea.parsetree.Node
- Parameters:
visitor - A visitor of this Node- Returns:
- Node The Node returned by the visitor
- See Also:
NodeVisitor