C# Class Antlr4.Runtime.Misc.Interval

An immutable inclusive interval a..b.
An immutable inclusive interval a..b.
Afficher le fichier Open project: antlr/antlr4 Class Usage Examples

Méthodes publiques

Свойство Type Description
Invalid Antlr4.Runtime.Misc.Interval
a int
b int

Méthodes publiques

Méthode Description
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

Method Details

Adjacent() public méthode

Are two intervals adjacent such as 0..41 and 42..42?
public Adjacent ( Antlr4 other ) : bool
other Antlr4
Résultat bool

DifferenceNotProperlyContained() public méthode

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
Résultat Antlr4.Runtime.Misc.Interval?

Disjoint() public méthode

Are both ranges disjoint? I.e., no overlap?
public Disjoint ( Antlr4 other ) : bool
other Antlr4
Résultat bool

Equals() public méthode

public Equals ( object o ) : bool
o object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Intersection() public méthode

Return the interval in common between this and o
public Intersection ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval
other Antlr4
Résultat Antlr4.Runtime.Misc.Interval

Interval() public méthode

public Interval ( int a, int b ) : System
a int
b int
Résultat System

Of() public static méthode

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
Résultat Antlr4.Runtime.Misc.Interval

ProperlyContains() public méthode

public ProperlyContains ( Antlr4 other ) : bool
other Antlr4
Résultat bool

StartsAfter() public méthode

Does this.a start after other.b? May or may not be disjoint
public StartsAfter ( Antlr4 other ) : bool
other Antlr4
Résultat bool

StartsAfterDisjoint() public méthode

Does this start completely after other? Disjoint
public StartsAfterDisjoint ( Antlr4 other ) : bool
other Antlr4
Résultat bool

StartsAfterNonDisjoint() public méthode

Does this start after other? NonDisjoint
public StartsAfterNonDisjoint ( Antlr4 other ) : bool
other Antlr4
Résultat bool

StartsBeforeDisjoint() public méthode

Does this start completely before other? Disjoint
public StartsBeforeDisjoint ( Antlr4 other ) : bool
other Antlr4
Résultat bool

StartsBeforeNonDisjoint() public méthode

Does this start at or before other? Nondisjoint
public StartsBeforeNonDisjoint ( Antlr4 other ) : bool
other Antlr4
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

Union() public méthode

Return the interval computed from combining this and other
public Union ( Antlr4 other ) : Antlr4.Runtime.Misc.Interval
other Antlr4
Résultat Antlr4.Runtime.Misc.Interval

Property Details

Invalid public_oe static_oe property

public static Antlr4.Runtime.Misc.Interval Invalid
Résultat Antlr4.Runtime.Misc.Interval

a public_oe property

The start of the interval.
The start of the interval.
public int a
Résultat int

b public_oe property

The end of the interval (inclusive).
The end of the interval (inclusive).
public int b
Résultat int