morfologik.fsa
Class MatchResult

java.lang.Object
  extended by morfologik.fsa.MatchResult

public final class MatchResult
extends java.lang.Object

A matching result returned from FSATraversal.

See Also:
FSATraversal

Field Summary
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 Summary
MatchResult()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXACT_MATCH

public static final int EXACT_MATCH
The automaton has exactly one match for the input sequence.

See Also:
Constant Field Values

NO_MATCH

public static final int NO_MATCH
The automaton has no match for the input sequence.

See Also:
Constant Field Values

AUTOMATON_HAS_PREFIX

public static final int AUTOMATON_HAS_PREFIX
The automaton contains a prefix of the input sequence. That is: one of the input sequences used to build the automaton is a prefix of the input sequence that is shorter than the sequence.

index will contain an index of the first character of the input sequence not present in the dictionary.

See Also:
Constant Field Values

SEQUENCE_IS_A_PREFIX

public static final int SEQUENCE_IS_A_PREFIX
The sequence is a prefix of at least one sequence in the automaton. node returns the node from which all sequences with the given prefix start in the automaton.

See Also:
Constant Field Values

kind

public int kind
One of the match kind constants defined in this class.

See Also:
NO_MATCH, EXACT_MATCH, AUTOMATON_HAS_PREFIX, SEQUENCE_IS_A_PREFIX

index

public int index
Input sequence's index, interpretation depends on kind.


node

public int node
Automaton node, interpretation depends on the kind.

Constructor Detail

MatchResult

public MatchResult()