Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 protected BaseBuiltInCalculatingOperator(string symbol, int priority, OperatorIndependency independency, string description) : base(symbol, priority, independency)
 {
     if (description == null)
     {
         var attribute = Attribute.GetCustomAttribute(GetType(), typeof(DescriptionAttribute)) as DescriptionAttribute;
         Description = (attribute != null) ? attribute.Description : "";
     }
     else
     {
         Description = description;
     }
 }
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 protected BaseBuiltInCalculatingOperator(string symbol, int priority, OperatorIndependency independency, string description)
     : base(symbol, priority, independency)
 {
     if (description == null)
     {
         var attribute = Attribute.GetCustomAttribute(GetType(), typeof(DescriptionAttribute)) as DescriptionAttribute;
         Description = (attribute != null) ? attribute.Description : "";
     }
     else
     {
         Description = description;
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of this class.
        /// </summary>
        /// <param name="symbol">The symbol of this operator.</param>
        /// <param name="independency">The independency of this operator.</param>
        /// <param name="description">The description of this operator.</param>
        protected BaseBuiltInComparativeOperator(string symbol, OperatorIndependency independency, string description) : base(symbol, independency)
        {
            _builder = new OperandBuilder();

            if (description == null)
            {
                var attribute = Attribute.GetCustomAttribute(GetType(), typeof(DescriptionAttribute)) as DescriptionAttribute;
                Description = (attribute != null) ? attribute.Description : "";
            }
            else
            {
                Description = description;
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public Add(string symbol, int priority, OperatorIndependency independency, string description)
     : base(symbol, priority, independency, description)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected ComparativeOperator(string symbol, OperatorIndependency independency)
     : base(symbol, independency)
 {
 }
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected CalculatingOperator(string symbol, int priority, OperatorIndependency independency)
     : base(symbol, independency)
 {
     Priority = priority;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="ignoreCase">Whether or not this operator should ignore case.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public Equal(string symbol, bool ignoreCase, OperatorIndependency independency, string description)
     : base(symbol, independency, description)
 {
     this.ignoreCase = ignoreCase;
 }
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="ignoreCase">Whether or not this operator should ignore case.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public SuffixSearch(string symbol, bool ignoreCase, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
     _ignoreCase = ignoreCase;
 }
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public GreaterThanOrEqual(string symbol, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
 }
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this class.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected FidelyOperator(string symbol, OperatorIndependency independency)
 {
     Symbol       = symbol;
     Independency = independency;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public LessThan(string symbol, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this class.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected FidelyOperator(string symbol, OperatorIndependency independency)
 {
     Symbol = symbol;
     Independency = independency;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected CalculatingOperator(string symbol, int priority, OperatorIndependency independency)
     : base(symbol, independency)
 {
     Priority = priority;
 }
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected ComparativeOperator(string symbol, OperatorIndependency independency)
     : base(symbol, independency)
 {
 }
Exemplo n.º 15
0
 public NullCalculator(string symbol, int priority, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, priority, independency)
 {
 }
Exemplo n.º 16
0
 public NullComparer(string symbol, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, independency)
 {
 }
Exemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public Multiply(string symbol, int priority, OperatorIndependency independency, string description)
     : base(symbol, priority, independency, description)
 {
 }
Exemplo n.º 18
0
 public NullComparer(string symbol, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, independency)
 {
 }
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="ignoreCase">Whether or not this operator should ignore case.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public NotPartialMatch(string symbol, bool ignoreCase, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
     _ignoreCase = ignoreCase;
 }
Exemplo n.º 20
0
 public NullCalculator(string symbol, int priority, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, priority, independency)
 {
 }