blob: 21315f99c4a4905efa3edd7688777ac1617b9e6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from ql.ast.nodes.expressions.binary_operators.binary_operator import BinaryOperatorNode
from ql.types.boolean import QLBoolean
class EqualsOperatorNode(BinaryOperatorNode):
def __init__(self, metadata, expression_type, left_expression, right_expression, value):
super(EqualsOperatorNode, self).__init__(metadata, expression_type,
left_expression, right_expression, value)
@staticmethod
def get_result_type():
return QLBoolean
def evaluate(self):
self.value = self.left_expression.value == self.right_expression.value
|