C# 클래스 Antlr4.Runtime.Misc.Interval

An immutable inclusive interval a..b.
An immutable inclusive interval a..b.
파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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