接口的使用
org.antlr.misc.IntSet
-
使用IntSet的程序包 程序包 说明 org.antlr.analysis org.antlr.codegen org.antlr.grammar.v3 org.antlr.misc org.antlr.tool -
-
org.antlr.analysis中IntSet的使用
声明为IntSet的org.antlr.analysis中的字段 修饰符和类型 字段 说明 protected IntSetLabel. labelSetA set of token types or character codes if label==SETIntSetDFA. recursiveAltSetTrack whether an alt discovers recursion for each alt during NFA to DFA conversion; >1 alt with recursion implies nonregular.返回IntSet的org.antlr.analysis中的方法 修饰符和类型 方法 说明 IntSetLabel. getSet()返回变量类型为IntSet的类型的org.antlr.analysis中的方法 修饰符和类型 方法 说明 java.util.List<IntSet>MachineProbe. getEdgeLabels(DFAState targetState)Return a list of edge labels from start state to targetState.参数类型为IntSet的org.antlr.analysis中的方法 修饰符和类型 方法 说明 booleanLabel. matches(IntSet set)voidLabel. setSet(IntSet set)类型变量类型为IntSet的org.antlr.analysis中的方法参数 修饰符和类型 方法 说明 java.lang.StringMachineProbe. getInputSequenceDisplay(Grammar g, java.util.List<IntSet> labels)Given List<IntSet>, return a String with a useful representation of the associated input string.参数类型为IntSet的org.antlr.analysis中的构造器 构造器 说明 Label(IntSet labelSet)Make a set labelLookaheadSet(IntSet s) -
org.antlr.codegen中IntSet的使用
参数类型为IntSet的org.antlr.codegen中的方法 修饰符和类型 方法 说明 org.stringtemplate.v4.STCodeGenerator. genSetExpr(org.stringtemplate.v4.STGroup templates, IntSet set, int k, boolean partOfDFA)For intervals such as [3..3, 30..35], generate an expression that tests the lookahead similar to LA(1)==3 || (LA(1)>=30&&LA(1)<=35) -
org.antlr.grammar.v3中IntSet的使用
返回IntSet的org.antlr.grammar.v3中的方法 修饰符和类型 方法 说明 IntSetTreeToNFAConverter. setRule()IntSetTreeToNFAConverter. setRule(GrammarAST t)参数类型为IntSet的org.antlr.grammar.v3中的方法 修饰符和类型 方法 说明 voidTreeToNFAConverter. setElement(IntSet elements) -
org.antlr.misc中IntSet的使用
实现IntSet的org.antlr.misc中的类 修饰符和类型 类 说明 classBitSetA BitSet to replace java.util.BitSet.classIntervalSetA set of integers that relies on ranges being common to do "run-length-encoded" like compression (if you view an IntSet like a BitSet with runs of 0s and 1s).返回IntSet的org.antlr.misc中的方法 修饰符和类型 方法 说明 IntSetBitSet. and(IntSet a)IntSetIntSet. and(IntSet a)Return the intersection of this set with the argument, creating a new set.IntSetBitSet. complement()IntSetBitSet. complement(IntSet set)IntSetIntSet. complement(IntSet elements)IntSetBitSet. or(IntSet a)return this | a in a new setIntSetIntervalSet. or(IntSet a)TODO: implement this!IntSetIntSet. or(IntSet a)IntSetBitSet. subtract(IntSet a)IntSetIntSet. subtract(IntSet a)参数类型为IntSet的org.antlr.misc中的方法 修饰符和类型 方法 说明 voidBitSet. addAll(IntSet set)voidIntervalSet. addAll(IntSet set)voidIntSet. addAll(IntSet set)Add all elements from incoming set to this set.IntSetBitSet. and(IntSet a)IntervalSetIntervalSet. and(IntSet other)Return a new set with the intersection of this set with other.IntSetIntSet. and(IntSet a)Return the intersection of this set with the argument, creating a new set.IntSetBitSet. complement(IntSet set)IntervalSetIntervalSet. complement(IntSet vocabulary)Given the set of possible values (rather than, say UNICODE or MAXINT), return a new set containing all elements in vocabulary, but not in this.IntSetIntSet. complement(IntSet elements)static BitSetBitSet. of(IntSet set)IntSetBitSet. or(IntSet a)return this | a in a new setIntSetIntervalSet. or(IntSet a)TODO: implement this!IntSetIntSet. or(IntSet a)IntSetBitSet. subtract(IntSet a)IntervalSetIntervalSet. subtract(IntSet other)Compute this-other via this&~other.IntSetIntSet. subtract(IntSet a) -
org.antlr.tool中IntSet的使用
声明为IntSet的org.antlr.tool中的字段 修饰符和类型 字段 说明 protected IntSetGrammar. charVocabularyTODO: hook this to the charVocabulary optionprotected IntSetGrammarAST. setValueIf this is a SET node, what are the elements?返回IntSet的org.antlr.tool中的方法 修饰符和类型 方法 说明 IntSetGrammar. complement(int atom)IntSetGrammar. complement(IntSet set)For lexer grammars, return everything in unicode not in set.IntSetGrammar. getAllCharValues()If there is a char vocabulary, use it; else return min to max char as defined by the target.protected IntSetNFAFactory. getCollapsedBlockAsSet(State blk)Given a collapsed block of alts (a set of atoms), pull out the set and return it.IntSetGrammar. getSetFromRule(TreeToNFAConverter nfabuilder, java.lang.String ruleName)Get the set equivalent (if any) of the indicated rule from this grammar.IntSetGrammarAST. getSetValue()IntSetGrammar. getTokenTypes()Return a set of all possible token or char types for this grammar参数类型为IntSet的org.antlr.tool中的方法 修饰符和类型 方法 说明 StateClusterNFAFactory. build_Set(IntSet set, GrammarAST associatedAST)From set build single edge graph o->o-set->o.IntSetGrammar. complement(IntSet set)For lexer grammars, return everything in unicode not in set.voidGrammarAST. setSetValue(IntSet setValue)
-