org.teatrove.tea.parsetree
Class BinaryLogicalExpression

java.lang.Object
  extended by org.teatrove.tea.parsetree.Node
      extended by org.teatrove.tea.parsetree.Expression
          extended by org.teatrove.tea.parsetree.BinaryExpression
              extended by org.teatrove.tea.parsetree.BinaryLogicalExpression
All Implemented Interfaces:
Serializable, Cloneable, Logical
Direct Known Subclasses:
AndExpression, OrExpression, RelationalExpression

public abstract class BinaryLogicalExpression
extends BinaryExpression
implements Logical

Author:
Brian S O'Neill
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.teatrove.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 org.teatrove.tea.parsetree.BinaryExpression
clone, getLeftExpression, getOperator, getRightExpression, isExceptionPossible, setLeftExpression, setRightExpression, setType
 
Methods inherited from class org.teatrove.tea.parsetree.Expression
accept, convertTo, forceConversion, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType
 
Methods inherited from class org.teatrove.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
Parameters:
type - the type to convert to.
preferCast - a hint that the conversion should be performed by a type cast operation, by default is true.


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.