Uses of Class
org.antlr.analysis.State
Packages that use State
-
Uses of State in org.antlr.analysis
Subclasses of State in org.antlr.analysisModifier and TypeClassDescriptionclass
A DFA state represents a set of possible NFA configurations.class
A state within an NFA.Fields in org.antlr.analysis declared as StateMethods in org.antlr.analysis with parameters of type StateModifier and TypeMethodDescriptionprotected void
DecisionProbe.getSampleInputSequenceUsingStateSet
(State startState, State targetState, Set<DFAState> states, List<Label> labels) Given a start state and a final state, find a list of edge labels between the two ignoring epsilon.Constructors in org.antlr.analysis with parameters of type StateModifierConstructorDescriptionTransition
(int label, State target) Transition
(Label label, State target) -
Uses of State in org.antlr.tool
Fields in org.antlr.tool with type parameters of type StateModifier and TypeFieldDescriptionFASerializer.markedStates
To prevent infinite recursion when walking state machines, record which states we've visited.FASerializer.stateNumberTranslator
Rather 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.Methods in org.antlr.tool with parameters of type StateModifier and TypeMethodDescriptionprotected IntSet
NFAFactory.getCollapsedBlockAsSet
(State blk) Given a collapsed block of alts (a set of atoms), pull out the set and return it.Return a String containing a DOT description that, when displayed, will show the incoming state machine visually.protected String
DOTGenerator.getStateLabel
(State s) private String
FASerializer.getStateString
(int n, State s) Return a string representation of a state machine.protected void
FASerializer.walkFANormalizingStateNumbers
(State s) In stateNumberTranslator, get a map from State to new, normalized state number.protected void
DOTGenerator.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 void
FASerializer.walkSerializingFA
(List<String> lines, State s)