Uses of Class
org.antlr.v4.runtime.misc.IntervalSet
Packages that use IntervalSet
Package
Description
-
Uses of IntervalSet in org.antlr.v4.analysis
Methods in org.antlr.v4.analysis with parameters of type IntervalSetModifier and TypeMethodDescriptionstatic boolean
AnalysisPipeline.disjoint
(IntervalSet[] altLook) Return whether lookahead sets are disjoint; no lookahead ⇒ not disjoint -
Uses of IntervalSet in org.antlr.v4.automata
Fields in org.antlr.v4.automata declared as IntervalSetModifier and TypeFieldDescriptionfinal IntervalSet
LexerATNFactory.CharSetParseState.prevProperty
Methods in org.antlr.v4.automata that return IntervalSetModifier and TypeMethodDescriptionLexerATNFactory.getSetFromCharSetLiteral
(GrammarAST charSetAST) Methods in org.antlr.v4.automata with parameters of type IntervalSetModifier and TypeMethodDescriptionprivate void
LexerATNFactory.applyPrevState
(GrammarAST charSetAST, IntervalSet set, LexerATNFactory.CharSetParseState state) LexerATNFactory.applyPrevStateAndMoveToCodePoint
(GrammarAST charSetAST, IntervalSet set, LexerATNFactory.CharSetParseState state, int codePoint) LexerATNFactory.applyPrevStateAndMoveToProperty
(GrammarAST charSetAST, IntervalSet set, LexerATNFactory.CharSetParseState state, IntervalSet property) private void
LexerATNFactory.checkCharAndAddToSet
(GrammarAST ast, IntervalSet set, int c) private void
LexerATNFactory.checkRangeAndAddToSet
(GrammarAST mainAst, IntervalSet set, int a, int b) private CharactersDataCheckStatus
LexerATNFactory.checkRangeAndAddToSet
(GrammarAST rootAst, GrammarAST ast, IntervalSet set, int a, int b, boolean caseInsensitive, CharactersDataCheckStatus previousStatus) Constructors in org.antlr.v4.automata with parameters of type IntervalSetModifierConstructorDescriptionCharSetParseState
(LexerATNFactory.CharSetParseState.Mode mode, boolean inRange, int prevCodePoint, IntervalSet prevProperty) -
Uses of IntervalSet in org.antlr.v4.codegen
Methods in org.antlr.v4.codegen with parameters of type IntervalSetModifier and TypeMethodDescriptionBlankOutputModelFactory.getLL1Test
(IntervalSet look, GrammarAST blkAST) OutputModelFactory.getLL1Test
(IntervalSet look, GrammarAST blkAST) ParserFactory.getLL1Test
(IntervalSet look, GrammarAST blkAST) -
Uses of IntervalSet in org.antlr.v4.codegen.model
Methods in org.antlr.v4.codegen.model with parameters of type IntervalSetModifier and TypeMethodDescriptionChoice.addCodeForLookaheadTempVar
(IntervalSet look) LL1Loop.addCodeForLoopLookaheadTempVar
(IntervalSet look) private static TestSetInline.Bitset[]
TestSetInline.createBitsets
(OutputModelFactory factory, IntervalSet set, int wordSize, boolean useZeroOffset) Choice.getAltLookaheadAsStringLists
(IntervalSet[] altLookSets) Choice.getThrowNoViableAlt
(OutputModelFactory factory, GrammarAST blkAST, IntervalSet expecting) Constructors in org.antlr.v4.codegen.model with parameters of type IntervalSetModifierConstructorDescriptionSync
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, IntervalSet expecting, int decision, String position) TestSetInline
(OutputModelFactory factory, GrammarAST ast, IntervalSet set, int wordSize) ThrowEarlyExitException
(OutputModelFactory factory, GrammarAST ast, IntervalSet expecting) ThrowNoViableAlt
(OutputModelFactory factory, GrammarAST blkOrEbnfRootAST, IntervalSet expecting) ThrowRecognitionException
(OutputModelFactory factory, GrammarAST ast, IntervalSet expecting) -
Uses of IntervalSet in org.antlr.v4.misc
Fields in org.antlr.v4.misc declared as IntervalSetModifier and TypeFieldDescriptionfinal IntervalSet
EscapeSequenceParsing.Result.propertyIntervalSet
Methods in org.antlr.v4.misc with parameters of type IntervalSetModifier and TypeMethodDescriptionstatic String
CharSupport.getIntervalSetEscapedString
(IntervalSet intervalSet) Constructors in org.antlr.v4.misc with parameters of type IntervalSetModifierConstructorDescriptionResult
(EscapeSequenceParsing.Result.Type type, int codePoint, IntervalSet propertyIntervalSet, int startOffset, int parseLength) -
Uses of IntervalSet in org.antlr.v4.runtime
Fields in org.antlr.v4.runtime declared as IntervalSetMethods in org.antlr.v4.runtime that return IntervalSetModifier and TypeMethodDescriptionprotected IntervalSet
DefaultErrorStrategy.getErrorRecoverySet
(Parser recognizer) protected IntervalSet
DefaultErrorStrategy.getExpectedTokens
(Parser recognizer) Parser.getExpectedTokens()
Computes the set of input symbols which could follow the current parser state and context, as given byRecognizer.getState()
andParser.getContext()
, respectively.RecognitionException.getExpectedTokens()
Gets the set of input symbols which could potentially follow the previously matched symbol at the time this exception was thrown.Parser.getExpectedTokensWithinCurrentRule()
Methods in org.antlr.v4.runtime with parameters of type IntervalSetModifier and TypeMethodDescriptionprotected void
DefaultErrorStrategy.consumeUntil
(Parser recognizer, IntervalSet set) Consume tokens until one matches the given token set. -
Uses of IntervalSet in org.antlr.v4.runtime.atn
Fields in org.antlr.v4.runtime.atn declared as IntervalSetModifier and TypeFieldDescriptionATNState.nextTokenWithinRule
Used to cache lookahead during parsing, not used during constructionfinal IntervalSet
SetTransition.set
Fields in org.antlr.v4.runtime.atn with type parameters of type IntervalSetModifier and TypeFieldDescriptionprivate final Map
<IntervalSet, Boolean> ATNSerializer.sets
Note that we use a LinkedHashMap as a set to mainintain insertion order while deduplicating entries with the same key.Methods in org.antlr.v4.runtime.atn that return IntervalSetModifier and TypeMethodDescriptionLL1Analyzer.getDecisionLookahead
(ATNState s) Calculates the SLL(1) expected lookahead set for each outgoing transition of anATNState
.ATN.getExpectedTokens
(int stateNumber, RuleContext context) Computes the set of input symbols which could follow ATN state numberstateNumber
in the specified fullcontext
.AtomTransition.label()
RangeTransition.label()
SetTransition.label()
Transition.label()
LL1Analyzer.LOOK
(ATNState s, ATNState stopState, RuleContext ctx) Compute set of tokens that can follows
in the ATN in the specifiedctx
.LL1Analyzer.LOOK
(ATNState s, RuleContext ctx) Compute set of tokens that can follows
in the ATN in the specifiedctx
.ATN.nextTokens
(ATNState s) Compute the set of valid tokens that can occur starting ins
and staying in same rule.ATN.nextTokens
(ATNState s, RuleContext ctx) Compute the set of valid tokens that can occur starting in states
.Methods in org.antlr.v4.runtime.atn that return types with arguments of type IntervalSetMethods in org.antlr.v4.runtime.atn with parameters of type IntervalSetModifier and TypeMethodDescriptionprotected void
LL1Analyzer._LOOK
(ATNState s, ATNState stopState, PredictionContext ctx, IntervalSet look, Set<ATNConfig> lookBusy, BitSet calledRuleStack, boolean seeThruPreds, boolean addEOF) Compute set of tokens that can follows
in the ATN in the specifiedctx
.Method parameters in org.antlr.v4.runtime.atn with type arguments of type IntervalSetModifier and TypeMethodDescriptionprivate void
ATNSerializer.addEdges
(int nedges, Map<IntervalSet, Integer> setIndices) private int
ATNDeserializer.deserializeSets
(int[] data, int p, List<IntervalSet> sets) protected Transition
ATNDeserializer.edgeFactory
(ATN atn, int type, int src, int trg, int arg1, int arg2, int arg3, List<IntervalSet> sets) private static void
ATNSerializer.serializeSets
(IntegerList data, Collection<IntervalSet> sets) Constructors in org.antlr.v4.runtime.atn with parameters of type IntervalSetModifierConstructorDescriptionNotSetTransition
(ATNState target, IntervalSet set) SetTransition
(ATNState target, IntervalSet set) -
Uses of IntervalSet in org.antlr.v4.runtime.misc
Fields in org.antlr.v4.runtime.misc declared as IntervalSetModifier and TypeFieldDescriptionstatic final IntervalSet
IntervalSet.COMPLETE_CHAR_SET
static final IntervalSet
IntervalSet.EMPTY_SET
Methods in org.antlr.v4.runtime.misc that return IntervalSetModifier and TypeMethodDescriptionReturn a newIntSet
object containing all elements that are present in both the current set and the specified seta
.IntervalSet.complement
(int minElement, int maxElement) IntervalSet.complement
(IntSet vocabulary) Return a newIntSet
object containing all elements that are present inelements
but not present in the current set.static IntervalSet
IntervalSet.of
(int a) Create a set with a single element, el.static IntervalSet
IntervalSet.of
(int a, int b) Create a set with all ints within range [a..b] (inclusive)static IntervalSet
IntervalSet.or
(IntervalSet[] sets) combine all sets in the array returned the or'd valuestatic IntervalSet
IntervalSet.subtract
(IntervalSet left, IntervalSet right) Compute the set difference between two interval sets.static IntervalSet
Methods in org.antlr.v4.runtime.misc with parameters of type IntervalSetModifier and TypeMethodDescriptionstatic IntervalSet
IntervalSet.or
(IntervalSet[] sets) combine all sets in the array returned the or'd valuestatic IntervalSet
IntervalSet.subtract
(IntervalSet left, IntervalSet right) Compute the set difference between two interval sets.Constructors in org.antlr.v4.runtime.misc with parameters of type IntervalSet -
Uses of IntervalSet in org.antlr.v4.tool
Methods in org.antlr.v4.tool with parameters of type IntervalSetModifier and TypeMethodDescriptionGrammar.getStateToGrammarRegionMap
(GrammarRootAST ast, IntervalSet grammarTokenTypes) -
Uses of IntervalSet in org.antlr.v4.tool.ast
Methods in org.antlr.v4.tool.ast with parameters of type IntervalSetModifier and TypeMethodDescriptionGrammarAST.getNodesWithType
(IntervalSet types) GrammarAST.getNodesWithTypePreorderDFS
(IntervalSet types) void
GrammarAST.getNodesWithTypePreorderDFS_
(List<GrammarAST> nodes, IntervalSet types) -
Uses of IntervalSet in org.antlr.v4.unicode
Fields in org.antlr.v4.unicode with type parameters of type IntervalSetModifier and TypeFieldDescriptionprivate static final Map
<String, IntervalSet> UnicodeData.propertyCodePointRanges
Methods in org.antlr.v4.unicode that return IntervalSetModifier and TypeMethodDescriptionstatic IntervalSet
UnicodeData.getPropertyCodePoints
(String propertyCodeOrAlias) Given a Unicode property (general category code, binary property name, or script name), returns theIntervalSet
of Unicode code point ranges which have that property.Methods in org.antlr.v4.unicode with parameters of type IntervalSetModifier and TypeMethodDescriptionprivate static void
UnicodeDataTemplateController.addUnicodeSetToIntervalSet
(com.ibm.icu.text.UnicodeSet unicodeSet, IntervalSet intervalSet) UnicodeDataTemplateController.convertToRawArray
(IntervalSet intervalSet) Method parameters in org.antlr.v4.unicode with type arguments of type IntervalSetModifier and TypeMethodDescriptionprivate static void
UnicodeDataTemplateController.addEmojiPresentationPropertyCodesToCodePointRanges
(Map<String, IntervalSet> propertyCodePointRanges) private static void
UnicodeDataTemplateController.addIntervalForCategory
(Map<String, IntervalSet> categoryMap, String categoryName, int start, int finish) private static void
UnicodeDataTemplateController.addIntPropertyRanges
(int property, String namePrefix, Map<String, IntervalSet> propertyCodePointRanges) private static void
UnicodeDataTemplateController.addTR35ExtendedPictographicPropertyCodesToCodePointRanges
(Map<String, IntervalSet> propertyCodePointRanges) private static void
UnicodeDataTemplateController.addUnicodeBinaryPropertyCodesToCodePointRanges
(Map<String, IntervalSet> propertyCodePointRanges) private static void
UnicodeDataTemplateController.addUnicodeCategoryCodesToCodePointRanges
(Map<String, IntervalSet> propertyCodePointRanges) private static void
UnicodeDataTemplateController.addUnicodeIntPropertyCodesToCodePointRanges
(Map<String, IntervalSet> propertyCodePointRanges)