public SubstituteProcessorModification(IProcessorMatcher matcher, IEnumerable <IProcessor> substitutes)
 {
     Matcher     = matcher;
     Substitutes = substitutes;
 }
Ejemplo n.º 2
0
 public static IProcessorMatcher Or(this IProcessorMatcher originalMatcher, IProcessorMatcher alternativeMatcher)
 {
     return(new ProcessorMatcherDisjunction(originalMatcher, alternativeMatcher));
 }
Ejemplo n.º 3
0
 public ChainingModification Instead(IProcessorMatcher matcher, IEnumerable <IProcessor> substitutes)
 {
     configurations.AddLast(new SubstituteProcessorModification(matcher, substitutes));
     return(this);
 }
 public ProcessorMatcherDisjunction(IProcessorMatcher left, IProcessorMatcher right)
 {
     Left  = left ?? throw new ArgumentNullException(nameof(left), "You have to specify a first processor matcher before using it in disjunction operator.");
     Right = right ?? throw new ArgumentNullException(nameof(left), "You have to specify a second processor matcher before using it in disjunction operator.");;
 }
Ejemplo n.º 5
0
 public ChainingModification Before(IProcessorMatcher matcher, IEnumerable <IProcessor> predecessors)
 {
     configurations.AddLast(new BeforeProcessorModification(matcher, predecessors));
     return(this);
 }
Ejemplo n.º 6
0
 public ChainingModification Instead(IProcessorMatcher matcher, params IProcessor[] substitutes)
 {
     return(Instead(matcher, (IEnumerable <IProcessor>)substitutes));
 }
Ejemplo n.º 7
0
 public ChainingModification Before(IProcessorMatcher matcher, params IProcessor[] predecessors)
 {
     return(Before(matcher, (IEnumerable <IProcessor>)predecessors));
 }
Ejemplo n.º 8
0
 public ChainingModification After(IProcessorMatcher matcher, IEnumerable <IProcessor> successors)
 {
     configurations.AddLast(new AfterProcessorModification(matcher, successors));
     return(this);
 }
Ejemplo n.º 9
0
 public ChainingModification After(IProcessorMatcher matcher, params IProcessor[] successors)
 {
     After(matcher, (IEnumerable <IProcessor>)successors);
     return(this);
 }
 public AfterProcessorModification(IProcessorMatcher matcher, IEnumerable <IProcessor> successors)
 {
     Matcher    = matcher;
     Successors = successors;
 }
 public BeforeProcessorModification(IProcessorMatcher matcher, IEnumerable <IProcessor> predecessors)
 {
     Matcher      = matcher;
     Predecessors = predecessors;
 }