类的使用
org.antlr.analysis.State
-
使用State的程序包 程序包 说明 org.antlr.analysis org.antlr.tool -
-
org.antlr.analysis中State的使用
org.antlr.analysis中State的子类 修饰符和类型 类 说明 classDFAStateA DFA state represents a set of possible NFA configurations.classNFAStateA state within an NFA.声明为State的org.antlr.analysis中的字段 修饰符和类型 字段 说明 StateTransition. targetThe target of this transition参数类型为State的org.antlr.analysis中的方法 修饰符和类型 方法 说明 protected voidDecisionProbe. getSampleInputSequenceUsingStateSet(State startState, State targetState, java.util.Set<DFAState> states, java.util.List<Label> labels)Given a start state and a final state, find a list of edge labels between the two ignoring epsilon.参数类型为State的org.antlr.analysis中的构造器 构造器 说明 Transition(int label, State target)Transition(Label label, State target) -
org.antlr.tool中State的使用
类型参数类型为State的org.antlr.tool中的字段 修饰符和类型 字段 说明 protected java.util.Set<State>FASerializer. markedStatesTo prevent infinite recursion when walking state machines, record which states we've visited.protected java.util.Map<State,java.lang.Integer>FASerializer. stateNumberTranslatorRather than add a new instance variable to NFA and DFA just for serializing machines, map old state numbers to new state numbers by a State object → Integer new state number HashMap.参数类型为State的org.antlr.tool中的方法 修饰符和类型 方法 说明 protected IntSetNFAFactory. getCollapsedBlockAsSet(State blk)Given a collapsed block of alts (a set of atoms), pull out the set and return it.java.lang.StringDOTGenerator. getDOT(State startState)Return a String containing a DOT description that, when displayed, will show the incoming state machine visually.protected java.lang.StringDOTGenerator. getStateLabel(State s)java.lang.StringFASerializer. serialize(State s)java.lang.StringFASerializer. serialize(State s, boolean renumber)Return a string representation of a state machine.protected voidFASerializer. walkFANormalizingStateNumbers(State s)In stateNumberTranslator, get a map from State to new, normalized state number.protected voidDOTGenerator. walkRuleNFACreatingDOT(org.stringtemplate.v4.ST dot, State s)Do a depth-first walk of the state machine graph and fill a DOT description template.protected voidFASerializer. walkSerializingFA(java.util.List<java.lang.String> lines, State s)
-