org.makumba.providers.query.mql
Class MqlBinaryOperator

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
All Implemented Interfaces:
antlr.collections.AST, Serializable
Direct Known Subclasses:
MqlAritmeticNode, MqlComparisonNode, MqlLogicalNode

public class MqlBinaryOperator
extends MqlNode

Various binary operations. We need to treat them separately to compute parameter types and to rewrite some constants

Version:
$Id: MqlBinaryOperator.java,v 1.1 Aug 5, 2008 5:36:29 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
MqlBinaryOperator()
           
 
Method Summary
protected  void analyzeOperands(MqlNode left, MqlNode right)
           
protected  void oneMoreChild(MqlNode node)
           
protected  void setMakType(MqlNode left, MqlNode right)
           
 
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

MqlBinaryOperator

public MqlBinaryOperator()
Method Detail

oneMoreChild

protected void oneMoreChild(MqlNode node)
Overrides:
oneMoreChild in class MqlNode

analyzeOperands

protected void analyzeOperands(MqlNode left,
                               MqlNode right)
                        throws antlr.SemanticException
Throws:
antlr.SemanticException

setMakType

protected void setMakType(MqlNode left,
                          MqlNode right)
                   throws antlr.SemanticException
Throws:
antlr.SemanticException