类的使用
org.antlr.analysis.Label
-
使用Label的程序包 程序包 说明 org.antlr.analysis org.antlr.tool -
-
org.antlr.analysis中Label的使用
org.antlr.analysis中Label的子类 修饰符和类型 类 说明 classActionLabelclassPredicateLabel声明为Label的org.antlr.analysis中的字段 修饰符和类型 字段 说明 LabelNFAState. incidentEdgeLabelFor o-A->o type NFA tranitions, record the label that leads to this state.LabelTransition. labelWhat label must be consumed to transition to target类型参数类型为Label的org.antlr.analysis中的字段 修饰符和类型 字段 说明 protected OrderedHashSet<Label>DFAState. reachableLabelsAs this state is constructed (i.e., as NFA states are added), we can easily check for non-epsilon transitions because the only transition that could be a valid label is transition(0).返回Label的org.antlr.analysis中的方法 修饰符和类型 方法 说明 protected LabelLL1DFA. getLabelForSet(IntervalSet edgeSet)返回变量类型为Label的类型的org.antlr.analysis中的方法 修饰符和类型 方法 说明 OrderedHashSet<Label>DFAState. getReachableLabels()java.util.List<Label>DecisionProbe. getSampleNonDeterministicInputSequence(DFAState targetState)Return a List<Label> indicating an input sequence that can be matched from the start state of the DFA to the targetState (which is known to have a problem).参数类型为Label的org.antlr.analysis中的方法 修饰符和类型 方法 说明 voidLabel. add(Label a)protected voidDFAState. addReachableLabel(Label label)Add label uniquely and disjointly; intersection with another set or int/char forces breaking up the set(s).intDFAState. addTransition(DFAState target, Label label)Add a transition from this state to target with label.protected static intNFAToDFAConverter. addTransition(DFAState d, Label label, DFAState targetState, java.util.Map<java.lang.Integer,Transition> targetToLabelMap)Add a transition from state d to targetState with label in normal case.intLabel. compareTo(Label o)static booleanLabel. intersect(Label label, Label edgeLabel)booleanLabel. matches(Label other)DFAStateNFAToDFAConverter. reach(DFAState d, Label label)Given the set of NFA states in DFA state d, find all NFA states reachable traversing label arcs.类型变量类型为Label的org.antlr.analysis中的方法参数 修饰符和类型 方法 说明 java.lang.StringDecisionProbe. getInputSequenceDisplay(java.util.List<? extends Label> labels)Given List<Label>, return a String with a useful representation of the associated input string.protected booleanDecisionProbe. getNFAPath(NFAState s, int labelIndex, java.util.List<? extends Label> labels, java.util.List<? super NFAState> path)Given a sample input sequence, you usually would like to know the path taken through the NFA.java.util.List<? extends NFAState>DecisionProbe. getNFAPathStatesForAlt(int firstAlt, int alt, java.util.List<? extends Label> labels)Given an alternative associated with a nondeterministic DFA state, find the path of NFA states associated with the labels sequence.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.参数类型为Label的org.antlr.analysis中的构造器 构造器 说明 Transition(Label label, State target) -
org.antlr.tool中Label的使用
参数类型为Label的org.antlr.tool中的方法 修饰符和类型 方法 说明 protected static java.lang.IntegerRandomPhrase. getTokenType(Label label)
-