Interface Expression<E>
-
- All Superinterfaces:
com.google.common.base.Predicate<E>
,java.util.function.Predicate<E>
- All Known Implementing Classes:
Expression.AssertionExpression
,Expression.BaseExpression
,Expression.EndAssertion
,Expression.MatchingGroup
,Expression.MinMax
,Expression.NamedGroup
,Expression.NonMatchingGroup
,Expression.Option
,Expression.Or
,Expression.Plus
,Expression.Star
,Expression.StartAssertion
public interface Expression<E> extends com.google.common.base.Predicate<E>
Interface for a component of a regular expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FiniteAutomaton.Automaton<E>
build()
int
minMatchingLength()
-
-
-
Method Detail
-
build
FiniteAutomaton.Automaton<E> build()
-
minMatchingLength
int minMatchingLength()
-
-