C# Класс Antlr4.Runtime.Misc.Interval

An immutable inclusive interval a..b.
An immutable inclusive interval a..b.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Invalid Antlr4.Runtime.Misc.Interval
a int
b int

Открытые методы

Метод Описание
Adjacent ( Antlr4 other ) : bool

Are two intervals adjacent such as 0..41 and 42..42?

DifferenceNotProperlyContained ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval?

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.

Disjoint ( Antlr4 other ) : bool

Are both ranges disjoint? I.e., no overlap?

Equals ( object o ) : bool
GetHashCode ( ) : int
Intersection ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval

Return the interval in common between this and o

Interval ( int a, int b ) : System
Of ( int a, int b ) : Antlr4.Runtime.Misc.Interval

Interval objects are used readonly so share all with the same single value a==b up to some max size.

Interval objects are used readonly so share all with the same single value a==b up to some max size. Use an array as a perfect hash. Return shared object for 0..INTERVAL_POOL_MAX_VALUE or a new Interval object with a..a in it. On Java.g4, 218623 IntervalSets have a..a (set with 1 element).

ProperlyContains ( Antlr4 other ) : bool
StartsAfter ( Antlr4 other ) : bool

Does this.a start after other.b? May or may not be disjoint

StartsAfterDisjoint ( Antlr4 other ) : bool

Does this start completely after other? Disjoint

StartsAfterNonDisjoint ( Antlr4 other ) : bool

Does this start after other? NonDisjoint

StartsBeforeDisjoint ( Antlr4 other ) : bool

Does this start completely before other? Disjoint

StartsBeforeNonDisjoint ( Antlr4 other ) : bool

Does this start at or before other? Nondisjoint

ToString ( ) : string
Union ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval

Return the interval computed from combining this and other

Описание методов

Adjacent() публичный метод

Are two intervals adjacent such as 0..41 and 42..42?
public Adjacent ( Antlr4 other ) : bool
other Antlr4
Результат bool

DifferenceNotProperlyContained() публичный метод

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.
public DifferenceNotProperlyContained ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval?
other Antlr4
Результат Antlr4.Runtime.Misc.Interval?

Disjoint() публичный метод

Are both ranges disjoint? I.e., no overlap?
public Disjoint ( Antlr4 other ) : bool
other Antlr4
Результат bool

Equals() публичный метод

public Equals ( object o ) : bool
o object
Результат bool

GetHashCode() публичный метод

public GetHashCode ( ) : int
Результат int

Intersection() публичный метод

Return the interval in common between this and o
public Intersection ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval
other Antlr4
Результат Antlr4.Runtime.Misc.Interval

Interval() публичный метод

public Interval ( int a, int b ) : System
a int
b int
Результат System

Of() публичный статический метод

Interval objects are used readonly so share all with the same single value a==b up to some max size.
Interval objects are used readonly so share all with the same single value a==b up to some max size. Use an array as a perfect hash. Return shared object for 0..INTERVAL_POOL_MAX_VALUE or a new Interval object with a..a in it. On Java.g4, 218623 IntervalSets have a..a (set with 1 element).
public static Of ( int a, int b ) : Antlr4.Runtime.Misc.Interval
a int
b int
Результат Antlr4.Runtime.Misc.Interval

ProperlyContains() публичный метод

public ProperlyContains ( Antlr4 other ) : bool
other Antlr4
Результат bool

StartsAfter() публичный метод

Does this.a start after other.b? May or may not be disjoint
public StartsAfter ( Antlr4 other ) : bool
other Antlr4
Результат bool

StartsAfterDisjoint() публичный метод

Does this start completely after other? Disjoint
public StartsAfterDisjoint ( Antlr4 other ) : bool
other Antlr4
Результат bool

StartsAfterNonDisjoint() публичный метод

Does this start after other? NonDisjoint
public StartsAfterNonDisjoint ( Antlr4 other ) : bool
other Antlr4
Результат bool

StartsBeforeDisjoint() публичный метод

Does this start completely before other? Disjoint
public StartsBeforeDisjoint ( Antlr4 other ) : bool
other Antlr4
Результат bool

StartsBeforeNonDisjoint() публичный метод

Does this start at or before other? Nondisjoint
public StartsBeforeNonDisjoint ( Antlr4 other ) : bool
other Antlr4
Результат bool

ToString() публичный метод

public ToString ( ) : string
Результат string

Union() публичный метод

Return the interval computed from combining this and other
public Union ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval
other Antlr4
Результат Antlr4.Runtime.Misc.Interval

Описание свойств

Invalid публичное статическое свойство

public static Antlr4.Runtime.Misc.Interval Invalid
Результат Antlr4.Runtime.Misc.Interval

a публичное свойство

The start of the interval.
The start of the interval.
public int a
Результат int

b публичное свойство

The end of the interval (inclusive).
The end of the interval (inclusive).
public int b
Результат int