public static class StringPda.StringPdaFactory<T> extends java.lang.Object implements PdaFactory<StringPda,java.lang.String,java.lang.String,T>
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Function<T,java.lang.String> |
formatter |
protected java.lang.String |
nullStart |
protected java.lang.String |
nullState |
protected java.lang.String |
nullStop |
Constructor and Description |
---|
StringPda.StringPdaFactory() |
StringPda.StringPdaFactory(java.lang.String nullStart,
java.lang.String nullStop) |
StringPda.StringPdaFactory(java.lang.String nullStart,
java.lang.String nullStop,
java.lang.String nullState) |
Modifier and Type | Method and Description |
---|---|
StringPda |
create(T start,
T stop) |
java.lang.String |
createPop(StringPda pda,
T token) |
java.lang.String |
createPush(StringPda pda,
T token) |
java.lang.String |
createState(StringPda pda,
T token) |
void |
setFollowers(StringPda pda,
java.lang.String owner,
java.lang.Iterable<java.lang.String> followers) |
StringPda.StringPdaFactory<T> |
setTokenFormatter(com.google.common.base.Function<T,java.lang.String> formatter) |
protected java.lang.String |
tokenToStr(T token,
java.lang.String nullValue) |
protected com.google.common.base.Function<T,java.lang.String> formatter
protected java.lang.String nullStart
protected java.lang.String nullState
protected java.lang.String nullStop
public StringPda.StringPdaFactory()
public StringPda.StringPdaFactory(java.lang.String nullStart, java.lang.String nullStop)
public StringPda.StringPdaFactory(java.lang.String nullStart, java.lang.String nullStop, java.lang.String nullState)
public StringPda create(T start, T stop)
create
in interface NfaFactory<StringPda,java.lang.String,T>
public java.lang.String createPop(StringPda pda, T token)
createPop
in interface PdaFactory<StringPda,java.lang.String,java.lang.String,T>
public java.lang.String createPush(StringPda pda, T token)
createPush
in interface PdaFactory<StringPda,java.lang.String,java.lang.String,T>
public java.lang.String createState(StringPda pda, T token)
createState
in interface NfaFactory<StringPda,java.lang.String,T>
public void setFollowers(StringPda pda, java.lang.String owner, java.lang.Iterable<java.lang.String> followers)
setFollowers
in interface NfaFactory<StringPda,java.lang.String,T>
public StringPda.StringPdaFactory<T> setTokenFormatter(com.google.common.base.Function<T,java.lang.String> formatter)
protected java.lang.String tokenToStr(T token, java.lang.String nullValue)