com.go.tea.parsetree
Class BinaryLogicalExpression

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Expression
              |
              +--com.go.tea.parsetree.BinaryExpression
                    |
                    +--com.go.tea.parsetree.BinaryLogicalExpression
All Implemented Interfaces:
java.lang.Cloneable, Logical, java.io.Serializable
Direct Known Subclasses:
AndExpression, OrExpression, RelationalExpression

public abstract class BinaryLogicalExpression
extends BinaryExpression
implements Logical

Version:
9 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Inner classes inherited from class com.go.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
BinaryLogicalExpression(SourceInfo info, Token operator, Expression left, Expression right)
           
 
Method Summary
 void convertTo(Type type, boolean preferCast)
          Applies a type conversion to this expression which is chained to all previous conversions.
 
Methods inherited from class com.go.tea.parsetree.BinaryExpression
clone, getLeftExpression, getOperator, getRightExpression, isExceptionPossible, setLeftExpression, setRightExpression, setType
 
Methods inherited from class com.go.tea.parsetree.Expression
accept, convertTo, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType
 
Methods inherited from class com.go.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryLogicalExpression

public BinaryLogicalExpression(SourceInfo info,
                               Token operator,
                               Expression left,
                               Expression right)
Method Detail

convertTo

public void convertTo(Type type,
                      boolean preferCast)
Description copied from class: Expression
Applies a type conversion to this expression which is chained to all previous conversions.
Overrides:
convertTo in class Expression
Following copied from class: com.go.tea.parsetree.Expression
Parameters:
toType - the type to convert to.
preferCast - a hint that the conversion should be performed by a type cast operation, by default is true.
Throws:
java.lang.IllegalArgumentException - when the conversion is illegal.