org.makumba.providers.query.oql
Class ComparisonTree
java.lang.Object
org.makumba.providers.query.oql.AnalysisTree
org.makumba.providers.query.oql.ComparisonTree
- Direct Known Subclasses:
- LikeTree
public class ComparisonTree
- extends AnalysisTree
comparison operations have operands of the same type
| Fields inherited from class org.makumba.providers.query.oql.AnalysisTree |
ADD, AND, ASIM_COMP, CONCAT, EXCEPT, IN, INTERSECT, leaf, left, LIKE, makumbaType, MUL, op, OR, right, SIM_COMP, UNION |
ComparisonTree
public ComparisonTree(Object left,
int op,
Object right)
guessParameterType
public Object guessParameterType(Object otherOperandType)
- Overrides:
guessParameterType in class AnalysisTree
negociateOperandTypes
public void negociateOperandTypes(Object t1,
Object t2)
throws antlr.RecognitionException
- Overrides:
negociateOperandTypes in class AnalysisTree
- Throws:
antlr.RecognitionException
checkAssign
boolean checkAssign(AnalysisTree a1,
AnalysisTree a2)
throws antlr.RecognitionException
- assume that a2 is a constant and check if it's compatible with a1
- Throws:
antlr.RecognitionException