Class Expression.AssertionExpression<E>
- java.lang.Object
-
- edu.washington.cs.knowitall.regex.Expression.AssertionExpression<E>
-
- Type Parameters:
E
-
- All Implemented Interfaces:
com.google.common.base.Predicate<E>
,Expression<E>
,java.util.function.Predicate<E>
- Direct Known Subclasses:
Expression.EndAssertion
,Expression.StartAssertion
- Enclosing interface:
- Expression<E>
public abstract static class Expression.AssertionExpression<E> extends java.lang.Object implements Expression<E>
A non-consuming expression that matches a token against a property of the text, such as the start or end of a line.
-
-
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>
-
-
Constructor Summary
Constructors Constructor Description AssertionExpression()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
apply(boolean hasStart, java.util.List<E> tokens, int count)
boolean
apply(E entity)
FiniteAutomaton.Automaton<E>
build()
Convert the expression into a NFA.int
minMatchingLength()
-
-
-
Method Detail
-
apply
public boolean apply(E entity)
- Specified by:
apply
in interfacecom.google.common.base.Predicate<E>
-
apply
public abstract boolean apply(boolean hasStart, java.util.List<E> tokens, int count)
-
build
public FiniteAutomaton.Automaton<E> build()
Convert the expression into a NFA.- Specified by:
build
in interfaceExpression<E>
-
minMatchingLength
public int minMatchingLength()
- Specified by:
minMatchingLength
in interfaceExpression<E>
-
-