public SubstituteProcessorModification(IProcessorMatcher matcher, IEnumerable <IProcessor> substitutes) { Matcher = matcher; Substitutes = substitutes; }
public static IProcessorMatcher Or(this IProcessorMatcher originalMatcher, IProcessorMatcher alternativeMatcher) { return(new ProcessorMatcherDisjunction(originalMatcher, alternativeMatcher)); }
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.");; }
public ChainingModification Before(IProcessorMatcher matcher, IEnumerable <IProcessor> predecessors) { configurations.AddLast(new BeforeProcessorModification(matcher, predecessors)); return(this); }
public ChainingModification Instead(IProcessorMatcher matcher, params IProcessor[] substitutes) { return(Instead(matcher, (IEnumerable <IProcessor>)substitutes)); }
public ChainingModification Before(IProcessorMatcher matcher, params IProcessor[] predecessors) { return(Before(matcher, (IEnumerable <IProcessor>)predecessors)); }
public ChainingModification After(IProcessorMatcher matcher, IEnumerable <IProcessor> successors) { configurations.AddLast(new AfterProcessorModification(matcher, successors)); return(this); }
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; }