jInfer

cz.cuni.mff.ksi.jinfer.twostep.cleaning.nestedconcatenation
Class NestedConcatenation<T>

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

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

Replaces nested concatenations is resulting regular expressions. For example expression: (a, (b, c)) will be transformed to nicer expression: (a, b, c).


Constructor Summary
NestedConcatenation()
           
 
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

NestedConcatenation

public NestedConcatenation()
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