public final class MatchResult extends Object
FSATraversal
.FSATraversal
Modifier and Type | Field and Description |
---|---|
static int |
AUTOMATON_HAS_PREFIX
The automaton contains a prefix of the input sequence.
|
static int |
EXACT_MATCH
The automaton has exactly one match for the input sequence.
|
int |
index
Input sequence's index, interpretation depends on
kind . |
int |
kind
One of the match kind constants defined in this class.
|
static int |
NO_MATCH
The automaton has no match for the input sequence.
|
int |
node
Automaton node, interpretation depends on the
kind . |
static int |
SEQUENCE_IS_A_PREFIX
The sequence is a prefix of at least one sequence in the automaton.
|
Constructor and Description |
---|
MatchResult() |
public static final int EXACT_MATCH
public static final int NO_MATCH
public static final int AUTOMATON_HAS_PREFIX
index
will contain an index of the
first character of the input sequence not present in the
dictionary.
public static final int SEQUENCE_IS_A_PREFIX
node
returns the node from which all sequences
with the given prefix start in the automaton.public int kind
NO_MATCH
,
EXACT_MATCH
,
AUTOMATON_HAS_PREFIX
,
SEQUENCE_IS_A_PREFIX
public int index
kind
.public int node
kind
.Copyright © 2016. All rights reserved.