类 NFA
- java.lang.Object
-
- org.antlr.analysis.NFA
-
public class NFA extends java.lang.Object
An NFA (collection of NFAStates) constructed from a grammar. This NFA is one big machine for entire grammar. Decision points are recorded by the Grammar object so we can, for example, convert to DFA or simulate the NFA (interpret a decision).
-
-
字段概要
字段 修饰符和类型 字段 说明 boolean
complete
protected NFAFactory
factory
Which factory created this NFA?Grammar
grammar
This NFA represents which grammar?static int
INVALID_ALT_NUMBER
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addState(NFAState state)
NFAFactory
getFactory()
int
getNewNFAStateNumber()
NFAState
getState(int s)
void
setFactory(NFAFactory factory)
-
-
-
字段详细资料
-
INVALID_ALT_NUMBER
public static final int INVALID_ALT_NUMBER
- 另请参阅:
- 常量字段值
-
grammar
public Grammar grammar
This NFA represents which grammar?
-
factory
protected NFAFactory factory
Which factory created this NFA?
-
complete
public boolean complete
-
-
构造器详细资料
-
NFA
public NFA(Grammar g)
-
-
方法详细资料
-
getNewNFAStateNumber
public int getNewNFAStateNumber()
-
addState
public void addState(NFAState state)
-
getState
public NFAState getState(int s)
-
getFactory
public NFAFactory getFactory()
-
setFactory
public void setFactory(NFAFactory factory)
-
-