Interface Expression<E>
- All Superinterfaces:
com.google.common.base.Predicate<E>
,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 ClassesModifier and TypeInterfaceDescriptionstatic class
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
An expression with no subexpression that is evaluated against a token using the supplied delegate.static class
A non-consuming expression that matches the end of a line.static class
Represents a matching group that is referred to by order number.static class
A minimum to maximum number of occurrences of the enclosed expression.static class
Represents a matching group that is referred to by name.static class
Represents a non-matching group.static class
Zero or one of the enclosed expression.static class
Disjunction of two experssions.static class
One or more of the enclosed expression.static class
Kleene-star: zero or more of the enclosed expression.static class
A non-consuming expression that matches the start of a line. -
Method Summary
Methods inherited from interface com.google.common.base.Predicate
apply, equals, test
-
Method Details
-
build
FiniteAutomaton.Automaton<E> build() -
minMatchingLength
int minMatchingLength()
-