LogicalExpression left, LogicalExpression right)
throws MissingOperandException, WrongOperandsNumberException {
super(LogicalExpressionType.COMPOSITE_EXPRESSION, left, right);
if (operator == LogicalOperatorType.NOT) {
if (right != null) {
throw new WrongOperandsNumberException("You cannot use a NOT operator with two operands.");
}
else {
this.operator = operator;
}