jInfer

cz.cuni.mff.ksi.jinfer.twostep.cleaning.chained
Class Chained<T>

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.twostep.cleaning.chained.Chained<T>
All Implemented Interfaces:
RegularExpressionCleaner<T>

public class Chained<T>
extends Object
implements RegularExpressionCleaner<T>

Chains one or more cleaners in a row, pipelining output from first one to input of second one, and so on. Resulting in sequentially applying cleaners selected in preferences.


Constructor Summary
Chained(List<RegularExpressionCleanerFactory> cleanerFactories)
          Create with list of factories of cleaner to use in a chain.
 
Method Summary
 Regexp<T> cleanRegularExpression(Regexp<T> regexp)
          Clean given regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chained

public Chained(List<RegularExpressionCleanerFactory> cleanerFactories)
Create with list of factories of cleaner to use in a chain.

Parameters:
cleanerFactories - list of factories of other cleaners to call.
Method Detail

cleanRegularExpression

public Regexp<T> cleanRegularExpression(Regexp<T> regexp)
Description copied from interface: RegularExpressionCleaner
Clean given regular expression. Returns new regexp which should be nicer in some way (no empty constructs, or no shorter form). But which has to express same language.

Specified by:
cleanRegularExpression in interface RegularExpressionCleaner<T>
Parameters:
regexp - regexp to clean
Returns:
cleaned regexp.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011