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

type ATNConfigSet

// Alts returns the combined set of alts for all the configurations in this set.
func (b *ATNConfigSet) Alts() *BitSet {}

// NewATNConfigSet creates a new ATNConfigSet instance.
func NewATNConfigSet(fullCtx bool) *ATNConfigSet {}

// Add merges contexts with existing configs for (s, i, pi, _),
// where 's' is the ATNConfig.state, 'i' is the ATNConfig.alt, and
// 'pi' is the [ATNConfig].semanticContext.
//
// We use (s,i,pi) as the key.
// Updates dipsIntoOuterContext and hasSemanticContext when necessary.
func (b *ATNConfigSet) Add(config *ATNConfig, mergeCache *JPCMap) bool {}

// GetStates returns the set of states represented by all configurations in this config set
func (b *ATNConfigSet) GetStates() *JStore[ATNState, Comparator[ATNState]] {}

func (b *ATNConfigSet) GetPredicates() []SemanticContext {}

func (b *ATNConfigSet) OptimizeConfigs(interpreter *BaseATNSimulator) {}

func (b *ATNConfigSet) AddAll(coll []*ATNConfig) bool {}

// Compare The configs are only equal if they are in the same order and their Equals function returns true.
// Java uses ArrayList.equals(), which requires the same order.
func (b *ATNConfigSet) Compare(bs *ATNConfigSet) bool {}

func (b *ATNConfigSet) Equals(other Collectable[ATNConfig]) bool {}

func (b *ATNConfigSet) Hash() int {}

func (b *ATNConfigSet) hashCodeConfigs() int {}

func (b *ATNConfigSet) Contains(item *ATNConfig) bool {}

func (b *ATNConfigSet) ContainsFast(item *ATNConfig) bool {}

func (b *ATNConfigSet) Clear() {}

func (b *ATNConfigSet) String() string {}

// NewOrderedATNConfigSet creates a config set with a slightly different Hash/Equal pair
// for use in lexers.
func NewOrderedATNConfigSet() *ATNConfigSet {}