V - the resulting type of applying this folderpublic static interface Regular.Folder<V>
Regular.Folder is a set of methods to
apply to the various cases of a regular expression, depending
on its form, as part of a (possibly) recursive traversal of
the regular expression structure. It is the natural
catamorphism of the tree-like structure of regular
expressions, and a generalization of the traditional
Java visitor.| Modifier and Type | Method and Description |
|---|---|
V |
alternate(Regular.Alternate alt)
Applying this on an
Regular.Alternate regular expression |
V |
binding(Regular.Binding binding)
Applying this on a
Regular.Binding regular expression |
V |
chars(Regular.Characters chars)
Applying this on a
Regular.Characters regular expression |
V |
eof()
Applying this on
Regular.EOF |
V |
epsilon()
Applying this on
Regular.EPSILON |
V |
repetition(Regular.Repetition rep)
Applying this on a
Regular.Repetition regular expression |
V |
sequence(Regular.Sequence seq)
Applying this on a
Regular.Sequence regular expression |
V epsilon()
Regular.EPSILONV eof()
Regular.EOFV chars(Regular.Characters chars)
Regular.Characters regular expressionV alternate(Regular.Alternate alt)
Regular.Alternate regular expressionV sequence(Regular.Sequence seq)
Regular.Sequence regular expressionV repetition(Regular.Repetition rep)
Regular.Repetition regular expressionV binding(Regular.Binding binding)
Regular.Binding regular expression