Modifier and Type | Field and Description |
---|---|
(package private) FSA |
fsa |
(package private) int |
hash |
(package private) int |
state |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
data() |
String |
dataString() |
void |
delta(byte symbol) |
void |
delta(char chr) |
void |
delta(String string)
Jumps ahead by string
|
void |
deltaWord(String string)
Jumps ahead by a word - if this is not the first word, it must be preceeded by space.
|
int |
hash() |
boolean |
hasPerfectHash() |
boolean |
isFinal() |
boolean |
isStartState() |
boolean |
isValid() |
ByteBuffer |
lookup(String str) |
boolean |
peekDelta(byte symbol)
Returns whether the given symbol would take us to a valid state, without changing the state
|
void |
start() |
boolean |
tryDelta(byte symbol) |
boolean |
tryDelta(String string)
Jumps ahead by string if that puts us into a valid state, does nothing otherwise
|
boolean |
tryDeltaWord(String string)
Tries to jump ahead by one word.
|
FSA fsa
int state
int hash
private State(FSA fsa)
public void start()
public void delta(byte symbol)
public boolean peekDelta(byte symbol)
public boolean tryDelta(byte symbol)
public void delta(char chr)
public void delta(String string)
public boolean tryDelta(String string)
public void deltaWord(String string)
public boolean tryDeltaWord(String string)
public boolean isFinal()
public boolean isStartState()
public boolean isValid()
public ByteBuffer data()
public String dataString()
public int hash()
public ByteBuffer lookup(String str)
public boolean hasPerfectHash()
Copyright © 2018. All rights reserved.