Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.misc | |
org.antlr.v4.runtime.tree |
Modifier and Type | Method and Description |
---|---|
Interval |
RuleContext.getSourceInterval() |
Interval |
ParserRuleContext.getSourceInterval() |
Modifier and Type | Method and Description |
---|---|
String |
UnbufferedTokenStream.getText(Interval interval) |
String |
UnbufferedCharStream.getText(Interval interval) |
String |
TokenStreamRewriter.getText(Interval interval)
Return the text associated with the tokens in the interval from the
original token stream but with the alterations given to this rewriter.
|
String |
TokenStream.getText(Interval interval)
Return the text of all tokens within the specified
interval . |
String |
CharStream.getText(Interval interval)
This method returns the text for a range of characters within this input
stream.
|
String |
BufferedTokenStream.getText(Interval interval) |
String |
ANTLRInputStream.getText(Interval interval) |
String |
TokenStreamRewriter.getText(String programName,
Interval interval) |
Modifier and Type | Field and Description |
---|---|
static Interval |
Interval.INVALID |
Modifier and Type | Field and Description |
---|---|
protected List<Interval> |
IntervalSet.intervals
The list of sorted, disjoint intervals.
|
Modifier and Type | Method and Description |
---|---|
Interval |
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.
|
Interval |
Interval.intersection(Interval other)
Return the interval in common between this and o
|
static 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.
|
Interval |
Interval.union(Interval other)
Return the interval computed from combining this and other
|
Modifier and Type | Method and Description |
---|---|
List<Interval> |
IntervalSet.getIntervals()
Return a list of Interval objects.
|
Modifier and Type | Method and Description |
---|---|
protected void |
IntervalSet.add(Interval addition) |
boolean |
Interval.adjacent(Interval other)
Are two intervals adjacent such as 0..41 and 42..42?
|
Interval |
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 |
Interval.disjoint(Interval other)
Are both ranges disjoint? I.e., no overlap?
|
Interval |
Interval.intersection(Interval other)
Return the interval in common between this and o
|
boolean |
Interval.properlyContains(Interval other) |
boolean |
Interval.startsAfter(Interval other)
Does this.a start after other.b? May or may not be disjoint
|
boolean |
Interval.startsAfterDisjoint(Interval other)
Does this start completely after other? Disjoint
|
boolean |
Interval.startsAfterNonDisjoint(Interval other)
Does this start after other? NonDisjoint
|
boolean |
Interval.startsBeforeDisjoint(Interval other)
Does this start completely before other? Disjoint
|
boolean |
Interval.startsBeforeNonDisjoint(Interval other)
Does this start at or before other? Nondisjoint
|
Interval |
Interval.union(Interval other)
Return the interval computed from combining this and other
|
Constructor and Description |
---|
IntervalSet(List<Interval> intervals) |
Modifier and Type | Method and Description |
---|---|
Interval |
TerminalNodeImpl.getSourceInterval() |
Interval |
SyntaxTree.getSourceInterval()
Return an
Interval indicating the index in the
TokenStream of the first and last token associated with this
subtree. |
Copyright © 1992-2013 ANTLR. All Rights Reserved.