public UnaryLogic(UnaryLogicOperator @operator, BonsaiExpression expression) : base(typeof(bool)) { Operator = @operator; Expression = expression; }
public UnaryLogicExpression(UnaryLogicOperator op, ISQLExpression operand) { _Operator = op; _Operand = operand; }
/// <summary> /// Creates a new unary expression /// </summary> /// <param name="myUnaryOperator">The unary operator</param> /// <param name="myUnaryExpression">The expression</param> public UnaryExpression(UnaryLogicOperator myUnaryOperator, IExpression myUnaryExpression) { Operator = myUnaryOperator; Expression = myUnaryExpression; }
public virtual void Visit(UnaryLogicOperator op) { switch(op) { case UnaryLogicOperator.Not : _Query.Append(NOT); break; case UnaryLogicOperator.Minus : _Query.Append(MINUS); break; default : _Query.Append(op.ToString()).Append(SPACE); break; } }