Interface RangesBuffer
- All Superinterfaces:
CharacterSet,SortedListOfRanges
- All Known Implementing Classes:
IntRangesBuffer
Extensions of
SortedListOfRanges specific to mutable implementations.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddRange(int lo, int hi) Add[lo hi]to this list.voidappendRange(int lo, int hi) Appends[lo hi]to this list.voidclear()Removes all ranges from this list.<T extends RangesBuffer>
Tcreate()Create a new instance of this class.voidinsertRange(int index, int lo, int hi) Insert[lo hi]at the given index.voidreplaceRanges(int fromIndex, int toIndex, int lo, int hi) Replace all ranges fromfromIndex(inclusive) totoIndex(exclusive) with the single range[lo hi].Methods inherited from interface com.oracle.truffle.regex.charset.SortedListOfRanges
addRangeTo, adjacent, adjacent, appendRangesTo, binarySearch, binarySearchExactMatch, binarySearchExactMatch, binarySearchGetFirstIntersecting, binarySearchGetFirstIntersecting, binarySearchGetFirstIntersectingOrAdjacent, binarySearchGetFirstIntersectingOrAdjacent, binarySearchNoIntersectingFound, containedBy, contains, contains, contains, contains, defaultToString, equal, equal, equalsListOfRanges, getHi, getLo, getMax, getMin, intersects, intersects, intersects, inverseGetMax, inverseGetMin, inverseRangesToString, inverseValueCount, isEmpty, isSingle, leftOf, leftOf, matches2CharsWith1BitDifference, matchesEverything, matchesMinAndMax, matchesNothing, matchesSingleAscii, matchesSingleChar, matchesSomething, rangesAreSortedAndDisjoint, rangesAreSortedNonAdjacentAndDisjoint, rangesToString, rightOf, rightOf, size, size, sizeOfInverse, valueCount, valueCountEquals, valueCountMax
-
Method Details
-
clear
void clear()Removes all ranges from this list. -
appendRange
void appendRange(int lo, int hi) Appends[lo hi]to this list. The given range must beright ofand non-adjacent to the last range in this list. -
insertRange
-
replaceRanges
-
create
Create a new instance of this class. -
addRange
default void addRange(int lo, int hi) Add[lo hi]to this list. The list is altered such that all values of the given range are included andSortedListOfRanges.rangesAreSortedNonAdjacentAndDisjoint()holds after the operation.
-