Class Expression.Option<E>
java.lang.Object
edu.washington.cs.knowitall.regex.Expression.Option<E>
- Type Parameters:
E
-
- All Implemented Interfaces:
com.google.common.base.Predicate<E>
,Expression<E>
,Predicate<E>
- Enclosing interface:
- Expression<E>
Zero or one of the enclosed expression.
<foo>?
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.washington.cs.knowitall.regex.Expression
Expression.AssertionExpression<E>, Expression.BaseExpression<E>, Expression.EndAssertion<E>, Expression.MatchingGroup<E>, Expression.MinMax<E>, Expression.NamedGroup<E>, Expression.NonMatchingGroup<E>, Expression.Option<E>, Expression.Or<E>, Expression.Plus<E>, Expression.Star<E>, Expression.StartAssertion<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.base.Predicate
equals, test
-
Field Details
-
expr
Expression<E> expr
-
-
Constructor Details
-
Option
-
-
Method Details
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Predicate<E>
-
toString
-
build
Convert the expression into a NFA.- Specified by:
build
in interfaceExpression<E>
-
minMatchingLength
public int minMatchingLength()- Specified by:
minMatchingLength
in interfaceExpression<E>
-