public interface Expression<E>
extends com.google.common.base.Predicate<E>
Modifier and Type | Interface and Description |
---|---|
static class |
Expression.AssertionExpression<E>
A non-consuming expression that matches a token against a property of
the text, such as the start or end of a line.
|
static class |
Expression.BaseExpression<E>
An expression with no subexpression that is evaluated against a token
using the supplied delegate.
|
static class |
Expression.EndAssertion<E>
A non-consuming expression that matches the end of a line.
|
static class |
Expression.MatchingGroup<E>
Represents a matching group that is referred to by order number.
|
static class |
Expression.MinMax<E>
A minimum to maximum number of occurrences of the enclosed expression.
|
static class |
Expression.NamedGroup<E>
Represents a matching group that is referred to by name.
|
static class |
Expression.NonMatchingGroup<E>
Represents a non-matching group.
|
static class |
Expression.Option<E>
Zero or one of the enclosed expression.
|
static class |
Expression.Or<E>
Disjunction of two experssions.
|
static class |
Expression.Plus<E>
One or more of the enclosed expression.
|
static class |
Expression.Star<E>
Kleene-star: zero or more of the enclosed expression.
|
static class |
Expression.StartAssertion<E>
A non-consuming expression that matches the start of a line.
|
Modifier and Type | Method and Description |
---|---|
FiniteAutomaton.Automaton<E> |
build() |
int |
minMatchingLength() |
FiniteAutomaton.Automaton<E> build()
int minMatchingLength()