public IMatchA <ItemToMatch> create_dsl_result(IMatchA <AttributeType> value_condition)
 {
     return(new AttributeMatch <ItemToMatch, AttributeType>(accessor, value_condition));
 }
Beispiel #2
0
 public OrMatch(IMatchA <ItemToMatch> left_side, IMatchA <ItemToMatch> right_side)
 {
     this.left_side  = left_side;
     this.right_side = right_side;
 }
 public IMatchA <ItemToMatch> create_dsl_result(IMatchA <AttributeType> value_condition)
 {
     return(original.create_dsl_result(value_condition).not());
 }
 public IEnumerable <Item> create_dsl_result(IMatchA <AttributeType> value_condition)
 {
     return(original.create_dsl_result(value_condition.not()));
 }
Beispiel #5
0
 public NegatingMatch(IMatchA <ItemToMatch> to_negate)
 {
     this.to_negate = to_negate;
 }
Beispiel #6
0
 public static IMatchA <ItemToMatch> or <ItemToMatch>(this IMatchA <ItemToMatch> left,
                                                      IMatchA <ItemToMatch> right)
 {
     return(new OrMatch <ItemToMatch>(left, right));
 }
        public IEnumerable <Item> create_dsl_result(IMatchA <AttributeType> value_condition)
        {
            var matcher = filter_extensions.create_dsl_result(value_condition);

            return(items.filter(matcher));
        }
Beispiel #8
0
 public static IMatchA <ItemToMatch> and <ItemToMatch>(this IMatchA <ItemToMatch> left,
                                                       IMatchA <ItemToMatch> right)
 {
     return(new AndMatch <ItemToMatch>(left, right));
 }
Beispiel #9
0
 public static IMatchA <ItemToMatch> not <ItemToMatch>(this IMatchA <ItemToMatch> to_negate)
 {
     return(new NegatingMatch <ItemToMatch>(to_negate));
 }
Beispiel #10
0
 public AttributeMatch(IGetTheValueOfAnAttribute <ItemToMatch, AttributeType> get_the_value, IMatchA <AttributeType> value_criteria)
 {
     this.get_the_value  = get_the_value;
     this.value_criteria = value_criteria;
 }
Beispiel #11
0
 public static IEnumerable <T> filter <T>(this IEnumerable <T> items, IMatchA <T> specification)
 {
     return(items.filter(specification.matches));
 }
Beispiel #12
0
 public static ReturnType for_value_matcher <ItemToMatch, AttributeType, ReturnType>(this IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, ReturnType> extension_point, IMatchA <AttributeType> value_condition)
 {
     return(extension_point.create_dsl_result(value_condition));
 }