kubernetes/vendor/github.com/antlr4-go/antlr/v4/interval_set.go

type Interval

// NewInterval creates a new interval with the given start and stop values.
func NewInterval(start, stop int) Interval {}

// Contains returns true if the given item is contained within the interval.
func (i Interval) Contains(item int) bool {}

// String generates a string representation of the interval.
func (i Interval) String() string {}

// Length returns the length of the interval.
func (i Interval) Length() int {}

type IntervalSet

// NewIntervalSet creates a new empty, writable, interval set.
func NewIntervalSet() *IntervalSet {}

func (i *IntervalSet) Equals(other *IntervalSet) bool {}

func (i *IntervalSet) first() int {}

func (i *IntervalSet) addOne(v int) {}

func (i *IntervalSet) addRange(l, h int) {}

func (i *IntervalSet) addInterval(v Interval) {}

func (i *IntervalSet) addSet(other *IntervalSet) *IntervalSet {}

func (i *IntervalSet) complement(start int, stop int) *IntervalSet {}

func (i *IntervalSet) contains(item int) bool {}

func (i *IntervalSet) length() int {}

func (i *IntervalSet) removeRange(v Interval) {}

func (i *IntervalSet) removeOne(v int) {}

func (i *IntervalSet) String() string {}

func (i *IntervalSet) StringVerbose(literalNames []string, symbolicNames []string, elemsAreChar bool) string {}

func (i *IntervalSet) GetIntervals() []Interval {}

func (i *IntervalSet) toCharString() string {}

func (i *IntervalSet) toIndexString() string {}

func (i *IntervalSet) toTokenString(literalNames []string, symbolicNames []string) string {}

func (i *IntervalSet) elementName(literalNames []string, symbolicNames []string, a int) string {}