Property | Type | Description | |
---|---|---|---|
CompleteCharSet | Antlr4.Runtime.Misc.IntervalSet | ||
EmptySet | Antlr4.Runtime.Misc.IntervalSet |
Property | Type | Description | |
---|---|---|---|
@readonly | bool | ||
intervals | IList |
Method | Description | |
---|---|---|
Add ( int el ) : void |
Add a single element to the set. Add a single element to the set. An isolated element is stored as a range el..el. |
|
Add ( int a, int b ) : void |
Add interval; i.e., add all integers from a to b to set. Add interval; i.e., add all integers from a to b to set. If b<a, do nothing. Keep list in sorted order (by left range value). If overlap, combine ranges. For example, If this is {1..5, 10..20}, adding 6..7 yields {1..5, 6..7, 10..20}. Adding 4..8 yields {1..8, 10..20}. |
|
AddAll ( IIntSet set ) : Antlr4.Runtime.Misc.IntervalSet | ||
And ( IIntSet other ) : Antlr4.Runtime.Misc.IntervalSet |
|
|
Clear ( ) : void | ||
Complement ( IIntSet vocabulary ) : Antlr4.Runtime.Misc.IntervalSet |
|
|
Complement ( int minElement, int maxElement ) : Antlr4.Runtime.Misc.IntervalSet | ||
Contains ( int el ) : bool |
|
|
Equals ( object obj ) : bool |
Are two IntervalSets equal? Because all intervals are sorted and disjoint, equals is a simple linear walk over both lists to make sure they are the same. Are two IntervalSets equal? Because all intervals are sorted and disjoint, equals is a simple linear walk over both lists to make sure they are the same. Interval.equals() is used by the List.equals() method to check the ranges. |
|
GetHashCode ( ) : int | ||
GetIntervals ( ) : IList |
Return a list of Interval objects. Return a list of Interval objects. |
|
IntervalSet ( Antlr4 set ) : System | ||
IntervalSet ( IList |
||
Of ( int a, int b ) : Antlr4.Runtime.Misc.IntervalSet |
Create a set with all ints within range [a..b] (inclusive)
|
|
Or ( Antlr4 sets ) : Antlr4.Runtime.Misc.IntervalSet |
combine all sets in the array returned the or'd value
|
|
Or ( IIntSet a ) : Antlr4.Runtime.Misc.IntervalSet | ||
Remove ( int el ) : void | ||
SetReadonly ( bool @readonly ) : void | ||
Subtract ( IIntSet a ) : Antlr4.Runtime.Misc.IntervalSet | ||
ToArray ( ) : int[] | ||
ToIntegerList ( ) : ArrayList |
||
ToList ( ) : IList |
||
ToSet ( ) : HashSet |
||
ToString ( ) : string | ||
ToString ( IVocabulary vocabulary ) : string | ||
ToString ( bool elemAreChar ) : string |
Method | Description | |
---|---|---|
Add ( |
Method | Description | |
---|---|---|
ElementName ( IVocabulary vocabulary, int a ) : string | ||
IIntSet ( IIntSet set ) : IIntSet | ||
IntervalSet ( ) : System | ||
Of ( int a ) : Antlr4.Runtime.Misc.IntervalSet | ||
Subtract ( Antlr4 left, Antlr4 right ) : Antlr4.Runtime.Misc.IntervalSet |
public AddAll ( IIntSet set ) : Antlr4.Runtime.Misc.IntervalSet | ||
set | IIntSet | |
return | Antlr4.Runtime.Misc.IntervalSet |
public And ( IIntSet other ) : Antlr4.Runtime.Misc.IntervalSet | ||
other | IIntSet | |
return | Antlr4.Runtime.Misc.IntervalSet |
public Complement ( IIntSet vocabulary ) : Antlr4.Runtime.Misc.IntervalSet | ||
vocabulary | IIntSet | |
return | Antlr4.Runtime.Misc.IntervalSet |
public Complement ( int minElement, int maxElement ) : Antlr4.Runtime.Misc.IntervalSet | ||
minElement | int | |
maxElement | int | |
return | Antlr4.Runtime.Misc.IntervalSet |
public IntervalSet ( IList |
||
intervals | IList |
|
return | System |
public static Of ( int a, int b ) : Antlr4.Runtime.Misc.IntervalSet | ||
a | int | |
b | int | |
return | Antlr4.Runtime.Misc.IntervalSet |
public static Or ( Antlr4 sets ) : Antlr4.Runtime.Misc.IntervalSet | ||
sets | Antlr4 | |
return | Antlr4.Runtime.Misc.IntervalSet |
public Or ( IIntSet a ) : Antlr4.Runtime.Misc.IntervalSet | ||
a | IIntSet | |
return | Antlr4.Runtime.Misc.IntervalSet |
public Subtract ( IIntSet a ) : Antlr4.Runtime.Misc.IntervalSet | ||
a | IIntSet | |
return | Antlr4.Runtime.Misc.IntervalSet |
public ToString ( IVocabulary vocabulary ) : string | ||
vocabulary | IVocabulary | |
return | string |
public ToString ( bool elemAreChar ) : string | ||
elemAreChar | bool | |
return | string |
public static Antlr4.Runtime.Misc.IntervalSet CompleteCharSet | ||
return | Antlr4.Runtime.Misc.IntervalSet |
public static Antlr4.Runtime.Misc.IntervalSet EmptySet | ||
return | Antlr4.Runtime.Misc.IntervalSet |