org.apache.lucene.util.automaton
Class DaciukMihovAutomatonBuilder.State

java.lang.Object
  extended by org.apache.lucene.util.automaton.DaciukMihovAutomatonBuilder.State
Enclosing class:
DaciukMihovAutomatonBuilder

public static final class DaciukMihovAutomatonBuilder.State
extends Object

DFSA state with char labels on transitions.


Constructor Summary
DaciukMihovAutomatonBuilder.State()
           
 
Method Summary
static DaciukMihovAutomatonBuilder.State[] copyOf(DaciukMihovAutomatonBuilder.State[] original, int newLength)
          JDK1.5-replacement of Arrays.copyOf(char[], int)
 boolean equals(Object obj)
          Two states are equal if: they have an identical number of outgoing transitions, labeled with the same labels corresponding outgoing transitions lead to the same states (to states with an identical right-language).
 DaciukMihovAutomatonBuilder.State getState(int label)
          Returns the target state of a transition leaving this state and labeled with label.
 DaciukMihovAutomatonBuilder.State[] getStates()
          Returns an array of outgoing transitions from this state.
 int[] getTransitionLabels()
          Returns an array of outgoing transition labels.
 boolean hasChildren()
          Return true if this state has any children (outgoing transitions).
 int hashCode()
          Compute the hash code of the current status of this state.
 boolean isFinal()
          Is this state a final state in the automaton?
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaciukMihovAutomatonBuilder.State

public DaciukMihovAutomatonBuilder.State()
Method Detail

getState

public DaciukMihovAutomatonBuilder.State getState(int label)
Returns the target state of a transition leaving this state and labeled with label. If no such transition exists, returns null.


getTransitionLabels

public int[] getTransitionLabels()
Returns an array of outgoing transition labels. The array is sorted in lexicographic order and indexes correspond to states returned from getStates().


getStates

public DaciukMihovAutomatonBuilder.State[] getStates()
Returns an array of outgoing transitions from this state. The returned array must not be changed.


equals

public boolean equals(Object obj)
Two states are equal if:

Overrides:
equals in class Object

hasChildren

public boolean hasChildren()
Return true if this state has any children (outgoing transitions).


isFinal

public boolean isFinal()
Is this state a final state in the automaton?


hashCode

public int hashCode()
Compute the hash code of the current status of this state.

Overrides:
hashCode in class Object

copyOf

public static DaciukMihovAutomatonBuilder.State[] copyOf(DaciukMihovAutomatonBuilder.State[] original,
                                                         int newLength)
JDK1.5-replacement of Arrays.copyOf(char[], int)



Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.