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 classExpression.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 classExpression.BaseExpression<E>An expression with no subexpression that is evaluated against a token using the supplied delegate.static classExpression.EndAssertion<E>A non-consuming expression that matches the end of a line.static classExpression.MatchingGroup<E>Represents a matching group that is referred to by order number.static classExpression.MinMax<E>A minimum to maximum number of occurrences of the enclosed expression.static classExpression.NamedGroup<E>Represents a matching group that is referred to by name.static classExpression.NonMatchingGroup<E>Represents a non-matching group.static classExpression.Option<E>Zero or one of the enclosed expression.static classExpression.Or<E>Disjunction of two experssions.static classExpression.Plus<E>One or more of the enclosed expression.static classExpression.Star<E>Kleene-star: zero or more of the enclosed expression.static classExpression.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()intminMatchingLength()
-
-
-
Method Detail
-
build
FiniteAutomaton.Automaton<E> build()
-
minMatchingLength
int minMatchingLength()
-
-