cz.cuni.mff.ksi.jinfer.twostep.cleaning.nestedconcatenation
Class NestedConcatenation<T>
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NestedConcatenation
public NestedConcatenation()
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.
Generated on Fri Dec 9 00:01:25 CET 2011