Uses of Class
org.antlr.v4.runtime.misc.Interval
Packages that use Interval
Package
Description
-
Uses of Interval in org.antlr.v4.runtime
Methods in org.antlr.v4.runtime that return IntervalModifier and TypeMethodDescriptionParserRuleContext.getSourceInterval()
RuleContext.getSourceInterval()
Methods in org.antlr.v4.runtime with parameters of type IntervalModifier and TypeMethodDescriptionDeprecated.This method returns the text for a range of characters within this input stream.Return the text of all tokens within the specifiedinterval
.Return the text associated with the tokens in the interval from the original token stream but with the alterations given to this rewriter. -
Uses of Interval in org.antlr.v4.runtime.misc
Fields in org.antlr.v4.runtime.misc declared as IntervalFields in org.antlr.v4.runtime.misc with type parameters of type IntervalMethods in org.antlr.v4.runtime.misc that return IntervalModifier and TypeMethodDescriptionInterval.differenceNotProperlyContained
(Interval other) Return the interval with elements from this not in other; other must not be totally enclosed (properly contained) within this, which would result in two disjoint intervals instead of the single one returned by this method.Interval.intersection
(Interval other) Return the interval in common between this and ostatic Interval
Interval.of
(int a, int b) Interval objects are used readonly so share all with the same single value a==b up to some max size.Return the interval computed from combining this and otherMethods in org.antlr.v4.runtime.misc that return types with arguments of type IntervalMethods in org.antlr.v4.runtime.misc with parameters of type IntervalModifier and TypeMethodDescriptionprotected void
boolean
Are two intervals adjacent such as 0..41 and 42..42?Interval.differenceNotProperlyContained
(Interval other) Return the interval with elements from this not in other; other must not be totally enclosed (properly contained) within this, which would result in two disjoint intervals instead of the single one returned by this method.boolean
Are both ranges disjoint? I.e., no overlap?Interval.intersection
(Interval other) Return the interval in common between this and oboolean
Interval.properlyContains
(Interval other) boolean
Interval.startsAfter
(Interval other) Does this.a start after other.b? May or may not be disjointboolean
Interval.startsAfterDisjoint
(Interval other) Does this start completely after other? Disjointboolean
Interval.startsAfterNonDisjoint
(Interval other) Does this start after other? NonDisjointboolean
Interval.startsBeforeDisjoint
(Interval other) Does this start completely before other? Disjointboolean
Interval.startsBeforeNonDisjoint
(Interval other) Does this start at or before other? NondisjointReturn the interval computed from combining this and otherConstructor parameters in org.antlr.v4.runtime.misc with type arguments of type Interval -
Uses of Interval in org.antlr.v4.runtime.tree
Methods in org.antlr.v4.runtime.tree that return IntervalModifier and TypeMethodDescriptionSyntaxTree.getSourceInterval()
Return anInterval
indicating the index in theTokenStream
of the first and last token associated with this subtree.TerminalNodeImpl.getSourceInterval()
-
Uses of Interval in org.antlr.v4.tool
Fields in org.antlr.v4.tool with type parameters of type IntervalMethods in org.antlr.v4.tool that return IntervalModifier and TypeMethodDescriptionGrammar.getStateToGrammarRegion
(int atnStateNumber) Given an ATN state number, return the token index range within the grammar from which that ATN state was derived.Methods in org.antlr.v4.tool that return types with arguments of type IntervalModifier and TypeMethodDescriptionGrammar.getStateToGrammarRegionMap
(GrammarRootAST ast, IntervalSet grammarTokenTypes)