Package | Description |
---|---|
org.antlr.v4.runtime.misc |
Modifier and Type | Class and Description |
---|---|
class |
IntervalSet
A 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).
|
Modifier and Type | Method and Description |
---|---|
IntSet |
IntSet.addAll(IntSet set)
Add all elements from incoming set to this set.
|
IntSet |
IntSet.and(IntSet a)
Return the intersection of this set with the argument, creating
a new set.
|
IntSet |
IntSet.complement(IntSet elements) |
IntSet |
IntSet.or(IntSet a) |
IntSet |
IntSet.subtract(IntSet a) |
Modifier and Type | Method and Description |
---|---|
IntSet |
IntSet.addAll(IntSet set)
Add all elements from incoming set to this set.
|
IntervalSet |
IntervalSet.addAll(IntSet set) |
IntSet |
IntSet.and(IntSet a)
Return the intersection of this set with the argument, creating
a new set.
|
IntervalSet |
IntervalSet.and(IntSet other)
Return a new set with the intersection of this set with other.
|
IntSet |
IntSet.complement(IntSet elements) |
IntervalSet |
IntervalSet.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.
|
IntSet |
IntSet.or(IntSet a) |
IntervalSet |
IntervalSet.or(IntSet a) |
IntSet |
IntSet.subtract(IntSet a) |
IntervalSet |
IntervalSet.subtract(IntSet other)
Compute this-other via this&~other.
|
Copyright © 1992-2013 ANTLR. All Rights Reserved.