Package dev.yasint.regexsynth.core
Interface Expression
- All Known Implementing Classes:
IntegerRange,RegexSet,TrieStructure
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface Expression
An abstract representation of a expression. This can be either
a complete expression or a 'partial' expression.
The toRegex lambda function returns a string representation
of a regular expression. (It can be any of the regex constructs)
-
Method Summary
Modifier and Type Method Description default Expressiondebug(java.util.function.Consumer<java.lang.StringBuilder> callback)java.lang.StringBuildertoRegex()