org.makumba.providers.query.mql
Class MqlComparisonNode

java.lang.Object
  extended by antlr.BaseAST
      extended by antlr.CommonAST
          extended by org.makumba.providers.query.mql.MqlNode
              extended by org.makumba.providers.query.mql.MqlBinaryOperator
                  extended by org.makumba.providers.query.mql.MqlComparisonNode
All Implemented Interfaces:
antlr.collections.AST, Serializable

public class MqlComparisonNode
extends MqlBinaryOperator

We need to treat comparisons specially because: 1) a comparison with 'blabla' of an intEnum will be transformed into its int 2) a comparison to a '7charPointer' will be transformed into that value 3) a comparison to a parameter will determine the parameter type

Version:
$Id: MqlComparisonNode.java,v 1.1 Aug 5, 2008 5:31:13 PM cristi Exp $
Author:
Cristian Bogdan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.makumba.providers.query.mql.MqlNode
checkAsIds, walker
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
MqlComparisonNode()
           
 
Method Summary
protected  void analyzeOperands(MqlNode left, MqlNode right)
           
protected  void setMakType(MqlNode left, MqlNode right)
           
 
Methods inherited from class org.makumba.providers.query.mql.MqlBinaryOperator
oneMoreChild
 
Methods inherited from class org.makumba.providers.query.mql.MqlNode
checkAndRewriteOperand, checkForOperandType, checkOperandTypes, checkParam, findMakType, getFather, getMakType, getOriginalText, getWalker, initialize, isFunctionCall, isParam, knownType, makeBooleanFieldDefinition, setFather, setFirstChild, setMakType, setNextSibling, setText, setTextList, setType, setWalker, toString, writeTo
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, initialize
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MqlComparisonNode

public MqlComparisonNode()
Method Detail

analyzeOperands

protected void analyzeOperands(MqlNode left,
                               MqlNode right)
                        throws antlr.SemanticException
Overrides:
analyzeOperands in class MqlBinaryOperator
Throws:
antlr.SemanticException

setMakType

protected void setMakType(MqlNode left,
                          MqlNode right)
                   throws antlr.SemanticException
Overrides:
setMakType in class MqlBinaryOperator
Throws:
antlr.SemanticException