Uses of Interface
edu.washington.cs.knowitall.regex.Expression
-
Packages that use Expression Package Description edu.washington.cs.knowitall.regex -
-
Uses of Expression in edu.washington.cs.knowitall.regex
Classes in edu.washington.cs.knowitall.regex that implement Expression Modifier and Type Class 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.Fields in edu.washington.cs.knowitall.regex declared as Expression Modifier and Type Field Description (package private) Expression<E>
Expression.MinMax. expr
(package private) Expression<E>
Expression.Option. expr
Expression<E>
Expression.Plus. expr
Expression<E>
Expression.Star. expr
Expression<E>
Match.Group. expr
Expression<E>
Expression.Or. expr1
Expression<E>
Expression.Or. expr2
Expression<E>
FiniteAutomaton.Edge. expression
Expression<E>
FiniteAutomaton.TerminusState. expression
Fields in edu.washington.cs.knowitall.regex with type parameters of type Expression Modifier and Type Field Description java.util.List<Expression<E>>
Expression.MatchingGroup. expressions
java.util.List<Expression<E>>
RegularExpression. expressions
Methods in edu.washington.cs.knowitall.regex that return types with arguments of type Expression Modifier and Type Method Description java.util.List<Expression<E>>
RegularExpressionParser. tokenize(java.lang.String string)
Convert a list of tokens (<...>) to a list of expressions.Methods in edu.washington.cs.knowitall.regex with parameters of type Expression Modifier and Type Method Description boolean
Match. add(Expression<E> expr, E token, int pos)
Convenience method for add(new Group(expr, token, pos)). private FiniteAutomaton.State<E>
FiniteAutomaton.Automaton. buildMatch(java.util.Iterator<E> tokenIterator, Expression<E> expression, java.util.concurrent.atomic.AtomicInteger index, FiniteAutomaton.State<E> state, java.util.Iterator<FiniteAutomaton.AbstractEdge<E>> edgeIterator, Match.IntermediateMatch<E> match)
Retrace the path through the NFA and produce an object that represents the match.void
FiniteAutomaton.State. connect(FiniteAutomaton.State<E> dest, Expression<E> cost)
Add an edge between this state and dest.Method parameters in edu.washington.cs.knowitall.regex with type arguments of type Expression Modifier and Type Method Description static <E> FiniteAutomaton.Automaton<E>
RegularExpression. build(java.util.List<Expression<E>> exprs)
Build an NFA from the list of expressions.static <E> RegularExpression<E>
RegularExpression. compile(java.util.List<Expression<E>> expressions)
Create a regular expression without tokenization support.Constructors in edu.washington.cs.knowitall.regex with parameters of type Expression Constructor Description Automaton(Expression<E> expr)
Edge(FiniteAutomaton.State<E> dest, Expression<E> base)
EndState(Expression<E> expression)
Group(Expression<E> expr)
Group(Expression<E> expr, E token, int pos)
Group(Expression<E> expr, java.util.List<Match.Group.Token<E>> tokens)
MinMax(Expression<E> expr, int minOccurrences, int maxOccurrences)
Option(Expression<E> expr)
Or(Expression<E> expr1, Expression<E> expr2)
Plus(Expression<E> expr)
Star(Expression<E> expr)
StartState(Expression<E> expression)
TerminusState(Expression<E> expression)
Constructor parameters in edu.washington.cs.knowitall.regex with type arguments of type Expression Constructor Description MatchingGroup(java.util.List<Expression<E>> expressions)
NamedGroup(java.lang.String name, java.util.List<Expression<E>> expressions)
NonMatchingGroup(java.util.List<Expression<E>> expressions)
RegularExpression(java.util.List<Expression<E>> expressions)
-