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 Expression debug​(java.util.function.Consumer<java.lang.StringBuilder> callback)  
    java.lang.StringBuilder toRegex()  
  • Method Details

    • toRegex

      java.lang.StringBuilder toRegex()
    • debug

      default Expression debug​(java.util.function.Consumer<java.lang.StringBuilder> callback)