public abstract class DFACompiler<T> extends Object implements MethodImplementor
| Modifier and Type | Field and Description |
|---|---|
static int |
byteCount |
protected MethodCompiler |
c |
protected DFA<T> |
dfa |
static int |
dfaCount |
protected T |
eofToken |
protected T |
errorToken |
static int |
MAXSTATES |
static int |
MAXSTATESUSEWIDE |
protected MethodWrapper |
method |
protected boolean |
repeats |
protected boolean |
subCompiler |
protected Class<?> |
tokenClass |
| Constructor and Description |
|---|
DFACompiler(DFA<T> dfa,
T errorToken,
T eofToken) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accepting(DFAState<T> s) |
protected void |
afterState(DFAState<T> s) |
protected void |
compile() |
protected void |
compile(DFAState<T> s,
boolean isLast) |
protected void |
compile(Range range,
String next,
boolean isLast) |
protected abstract DFACompiler<T> |
copy(DFA<T> ddfa) |
protected abstract void |
error() |
protected abstract void |
exit() |
protected void |
gotoNext(DFAState<T> s) |
void |
implement(MethodCompiler c,
Member member) |
protected boolean |
literal(DFAState<T> s) |
protected void |
pushback() |
void |
setSubCompiler(boolean subCompiler) |
public static int MAXSTATES
public static int MAXSTATESUSEWIDE
public static int dfaCount
public static int byteCount
protected MethodCompiler c
protected T errorToken
protected T eofToken
protected Class<?> tokenClass
protected MethodWrapper method
protected boolean subCompiler
protected boolean repeats
public void implement(MethodCompiler c, Member member) throws IOException
implement in interface MethodImplementorIOExceptionprotected void compile()
throws IOException,
NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected abstract void error()
throws IOException,
NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected void pushback()
throws IOException,
NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected abstract void exit()
throws IOException,
NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected void afterState(DFAState<T> s) throws IOException, NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected void compile(DFAState<T> s, boolean isLast) throws IOException, NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected void gotoNext(DFAState<T> s) throws IOException, NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected void accepting(DFAState<T> s) throws IOException, NoSuchMethodException
IOExceptionNoSuchMethodExceptionprotected void compile(Range range, String next, boolean isLast) throws IOException
IOExceptionprotected abstract DFACompiler<T> copy(DFA<T> ddfa)
public void setSubCompiler(boolean subCompiler)