dotty.tools.dotc.core.Flags

FlagSet

Related Doc: package Flags

final case class FlagSet(bits: Long) extends AnyVal with Product with Serializable

A FlagSet represents a set of flags. Flags are encoded as follows: The first two bits indicate whether a flagset applies to terms, to types, or to both. Bits 2..63 are available for properties and can be doubly used for terms and types. Combining two FlagSets with | will give a FlagSet that has the intersection of the applicability to terms/types of the two flag sets. It is checked that the intersection is not empty.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FlagSet
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FlagSet(bits: Long)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def &(that: FlagSet): FlagSet

    The intersection of this flag set and the given flag set

  4. def &~(that: FlagSet): FlagSet

    The intersection of this flag set with the complement of the given flag set

  5. def <=(that: FlagSet): Boolean

    Is this flag set a subset of that one?

  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val bits: Long

  9. def firstBit: Int

    The lowest non-kind bit set in this flagset

  10. def flagStrings: Seq[String]

    The list of non-empty names of flags that are set in this FlagSet

  11. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  12. def is(flags: FlagConjunction, butNot: FlagSet): Boolean

    Does this flag set have all of the flags in given flag conjunction? and at the same time contain none of the flags in the butNot set? Pre: The intersection of the typeflags of both sets must be non-empty.

  13. def is(flags: FlagConjunction): Boolean

    Does this flag set have all of the flags in given flag conjunction? Pre: The intersection of the typeflags of both sets must be non-empty.

  14. def is(flags: FlagSet, butNot: FlagSet): Boolean

    Does this flag set have a non-empty intersection with the given flag set, and at the same time contain none of the flags in the butNot set?

  15. def is(flags: FlagSet): Boolean

    Does this flag set have a non-empty intersection with the given flag set? This means that both the kind flags and the carrier bits have non-empty intersection.

  16. def isEmpty: Boolean

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isTermFlags: Boolean

    Does this flag set apply to terms?

  19. def isTypeFlags: Boolean

    Does this flag set apply to terms?

  20. def numFlags: Int

    The number of non-kind flags in this set

  21. def toCommonFlags: FlagSet

    This flag set with all flags transposed to be common flags

  22. def toString(): String

    The string representation of this flag set

    The string representation of this flag set

    Definition Classes
    FlagSet → Any
  23. def toTermFlags: FlagSet

    This flag set with all flags transposed to be term flags

  24. def toTypeFlags: FlagSet

    This flag set with all flags transposed to be type flags

  25. def |(that: FlagSet): FlagSet

    The union of this flag set and the given flag set

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped