dotty.tools.dotc.core

Flags

Related Doc: package core

object Flags

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Flags
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class FlagConjunction(bits: Long) extends Product with Serializable

    A class representing flag sets that should be tested conjunctively.

    A class representing flag sets that should be tested conjunctively. I.e. for a flag conjunction fc, x is fc tests whether x contains all flags in fc.

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

    A FlagSet represents a set of flags.

    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.

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final val AbsOverride: FlagSet

    Labeled with of abstract & override

  5. final val Abstract: FlagSet

    Labeled with abstract modifier (an abstract class) Note: You should never see Abstract on any symbol except a class.

    Labeled with abstract modifier (an abstract class) Note: You should never see Abstract on any symbol except a class. Note: the flag counts as common, because it can be combined with OVERRIDE in a term.

  6. final val AbstractAndOverride: FlagConjunction

  7. final val AbstractFinal: FlagConjunction

  8. final val AbstractOrTrait: FlagSet

    An abstract class or a trait

  9. final val AbstractSealed: FlagConjunction

  10. final val AccessFlags: FlagSet

    Flags representing access rights

  11. final val Accessor: FlagSet

    A value or variable accessor (getter or setter)

  12. final val AccessorCreationFlags: FlagSet

    Accessors always have these flags set

  13. final val AccessorOrSealed: FlagSet

  14. final val AliasPreferred: FlagSet

    If symbol of a type alias has these flags, prefer the alias

  15. final val AnyFlags: FlagSet

  16. final val Artifact: FlagSet

    Symbol should be ignored when typechecking; will be marked ACC_SYNTHETIC in bytecode

  17. final val BaseTypeArg: FlagSet

    A binding for a type parameter of a base class or trait.

    A binding for a type parameter of a base class or trait. TODO: Replace with combination of isType, ExpandedName, and Override?

  18. final val BindDefinedType: FlagSet

    A type that is defined by a type bind

  19. final val Bridge: FlagSet

    A bridge method.

    A bridge method. Set by Erasure

  20. final val Captured: FlagSet

    Variable is accessed from nested function.

  21. final val Case: FlagSet

    A case class or its companion object

  22. final val CaseAccessor: FlagSet

    A case parameter accessor

  23. final val CaseAccessorOrBaseTypeArg: FlagSet

  24. final val CaseClass: FlagSet

  25. final val CaseVal: FlagSet

  26. final def ClassTypeParamCreationFlags: FlagSet

    The flags of a class type parameter

  27. final val Contravariant: FlagSet

  28. final val ContravariantOrLabel: FlagSet

    A contravariant type variable / a label method

  29. final val Covariant: FlagSet

  30. final val CovariantOrOuter: FlagSet

    A covariant type variable / an outer accessor

  31. final val DefaultMethod: FlagSet

    Symbol is a Java default method

  32. final val DefaultParameter: FlagConjunction

    Is a default parameter in Scala 2

  33. final val DefaultParameterized: FlagSet

    A method that has default params

  34. final val Deferred: FlagSet

    A declared, but not defined member

  35. final val DeferredOrParamAccessor: FlagSet

    A deferred member or a parameter accessor (these don't have right hand sides)

  36. final val DeferredTerm: FlagSet

  37. final val DeferredType: FlagSet

  38. final val EmptyFlags: FlagSet

    The empty flag set

  39. final val Enum: FlagSet

    Symbol is a Java enum

  40. final val Erroneous: FlagSet

    An error symbol

  41. final val ExpandedName: FlagSet

    Symbol's name is expanded

  42. final val ExpandedTypeParam: FlagConjunction

    A type parameter with synthesized name

  43. final val Final: FlagSet

    Labeled with final modifier

  44. final val FinalOrInline: FlagSet

    value that's final or inline

  45. final val Fresh: FlagSet

    Symbol always defines a fresh named type

  46. final val FromStartFlags: FlagSet

    Flags guaranteed to be set upon symbol creation

  47. final val Frozen: FlagSet

    Class is not allowed to accept new members because fingerprint of subclass has been taken

  48. final val FullyCompleted: FlagSet

    All class attributes are fully defined

  49. final val HasDefaultParams: FlagSet

    Has defined or inherited default parameters

  50. final val HigherKinded: FlagSet

  51. final val ImplClass: FlagSet

    Symbol is an implementation class of a Scala2 trait

  52. final val Implicit: FlagSet

  53. final val ImplicitCommon: FlagSet

    Labeled with implicit modifier (implicit value)

  54. final val InSuperCall: FlagSet

    Symbol is defined in a super call

  55. final val InheritedDefaultParams: FlagSet

    A method that is known to have inherited default parameters

  56. final val Inline: FlagSet

    Symbol is inlined

  57. final val InlineMethod: FlagConjunction

    An inline method

  58. final val InlineParam: FlagConjunction

    An inline parameter

  59. final val JavaDefined: FlagSet

    Symbol is defined by a Java class

  60. final val JavaInterface: FlagConjunction

    A Java interface

  61. final val JavaModule: FlagConjunction

    A Java companion object

  62. final val JavaProtected: FlagConjunction

    A Java companion object

  63. final val JavaStatic: FlagSet

    Symbol is implemented as a Java static

  64. final val JavaStaticTerm: FlagSet

  65. final val JavaStaticType: FlagSet

  66. final val JavaTrait: FlagConjunction

    A Java interface, potentially with default methods

  67. final val JavaVarargs: FlagSet

    Symbol is a Java-style varargs method

  68. final val Label: FlagSet

  69. final val Lazy: FlagSet

    Labeled with lazy (a lazy val).

  70. final val LazyOrDeferred: FlagSet

    A lazy or deferred value

  71. final val LazyOrTrait: FlagSet

  72. final val Lifted: FlagSet

    Class has been lifted out to package level, local value has been lifted out to class level

  73. final val Local: FlagSet

    Symbol is local to current class (i.e.

    Symbol is local to current class (i.e. private[this] or protected[this] pre: Private or Protected are also set

  74. final val LocalContravariant: FlagConjunction

    A contravariant type parameter instance

  75. final val LocalCovariant: FlagConjunction

    A covariant type parameter instance

  76. final val Macro: FlagSet

    A macro (Scala 2.x only)

  77. final val Method: FlagSet

  78. final val MethodOrHKCommon: FlagSet

    A method symbol.

  79. final val MethodOrLazy: FlagSet

    Either method or lazy

  80. final val MethodOrLazyOrDeferred: FlagSet

    Either method or lazy or deferred

  81. final val MixedIn: FlagSet

    Term member has been mixed in

  82. final val ModifierFlags: FlagSet

    Flags representing modifiers that can appear in trees

  83. final val Module: FlagSet

    A value or class implementing a module

  84. final val ModuleClass: FlagSet

  85. final val ModuleClassCreationFlags: FlagSet

    Module classes always have these flags set

  86. final val ModuleCreationFlags: FlagSet

    Modules always have these flags set

  87. final val ModuleOrFinal: FlagSet

    Either a module or a final class

  88. final val ModuleVal: FlagSet

  89. final val Mutable: FlagSet

    A mutable var

  90. final val MutableOrLazy: FlagSet

    Either mutable or lazy

  91. final val NamedTypeParam: FlagConjunction

    A type parameter introduced with [type ...

    A type parameter introduced with [type ... ]

  92. final val NoDefaultParams: FlagSet

    A method that is known to have no default parameters

  93. final val NoInits: FlagSet

    Trait does not have fields or initialization code

  94. final val NoInitsInterface: FlagSet

  95. final val NoInitsTrait: FlagConjunction

    A trait that does not need to be initialized

  96. final val OuterAccessor: FlagSet

  97. final val Override: FlagSet

    Labeled with override modifier

  98. final val Package: FlagSet

    A value or class representing a package

  99. final val PackageClass: FlagSet

  100. final val PackageCreationFlags: FlagSet

    Packages and package classes always have these flags set

  101. final val PackageVal: FlagSet

  102. final val Param: FlagSet

    A (term or type) parameter to a class or method

  103. final val ParamAccessor: FlagSet

    A field generated for a primary constructor parameter (no matter if it's a 'val' or not), or an accessor of such a field.

  104. final val ParamAndLocal: FlagConjunction

    A local parameter

  105. final val ParamForwarder: FlagConjunction

    A parameter forwarder

  106. final val ParamOrAccessor: FlagSet

    A parameter or parameter accessor

  107. final val Permanent: FlagSet

    A denotation that is valid in all run-ids

  108. final val PickledFlags: FlagSet

    These flags are pickled

  109. final val Private: FlagSet

    Labeled with private modifier

  110. final val PrivateAccessor: FlagConjunction

    A private accessor

  111. final val PrivateLocal: FlagConjunction

    Labeled private[this]

  112. final val PrivateLocalParam: FlagConjunction

    A private[this] parameter

  113. final val PrivateLocalParamAccessor: FlagConjunction

    A private[this] parameter accessor

  114. final val PrivateMethod: FlagConjunction

    A private method

  115. final val PrivateOrFinalOrInline: FlagSet

    Labeled private, final, or inline

  116. final val PrivateOrLocal: FlagSet

    Labeled private or protected[local]

  117. final val PrivateParamAccessor: FlagConjunction

    A private parameter accessor

  118. final val PrivateTerm: FlagSet

  119. final val PrivateType: FlagSet

  120. final val Protected: FlagSet

    Labeled with protected modifier

  121. final val ProtectedLocal: FlagConjunction

    Labeled protected[this]

  122. final val PureInterface: FlagSet

    A trait that has only abstract methods as members (and therefore can be represented by a Java interface

  123. final val PureInterfaceCreationFlags: FlagSet

    Pure interfaces always have these flags

  124. final val RetainedModuleClassFlags: FlagSet

    Flags that can apply to a module class

  125. final val RetainedModuleValAndClassFlags: FlagSet

    Flags that can apply to both a module val and a module class, except those that are added at creation anyway

  126. final val RetainedModuleValFlags: FlagSet

    Flags that can apply to a module val

  127. final val RetainedTypeArgFlags: FlagSet

    Flags that are passed from a type parameter of a class to a refinement symbol that sets the type parameter

  128. final val Scala2Existential: FlagSet

  129. final val Scala2ExistentialCommon: FlagSet

    An existentially bound symbol (Scala 2.x only)

  130. final val Scala2ModuleVar: FlagSet

    A module variable (Scala 2.x only)

  131. final val Scala2Overloaded: FlagSet

    An overloaded symbol (Scala 2.x only)

  132. final val Scala2PreSuper: FlagSet

    A definition that's initialized before the super call (Scala 2.x only)

  133. final val Scala2Trait: FlagConjunction

  134. final val Scala2x: FlagSet

    An unpickled Scala 2.x class

  135. final val Sealed: FlagSet

    Labeled with sealed modifier (sealed class)

  136. final val SelfName: FlagSet

    Symbol is a self name

  137. final val SelfNameOrImplClass: FlagSet

  138. final val SelfSymFlags: FlagSet

    The flags of the self symbol

  139. final val SourceModifierFlags: FlagSet

    Flags representing source modifiers

  140. final val Specialized: FlagSet

    Symbol is a generated specialized member

  141. final val Stable: FlagSet

    Lazy val or method is known or assumed to be stable and realizable

  142. final val StaticProtected: FlagConjunction

    Java symbol which is protected and static

  143. final val SuperAccessor: FlagSet

    A super accessor

  144. final val SuperAccessorOrScala2x: FlagSet

  145. final val Synchronized: FlagSet

    Symbol is a method which should be marked ACC_SYNCHRONIZED

  146. final val Synthetic: FlagSet

    A compiler-generated symbol, which is visible for type-checking (compare with artifact)

  147. final val SyntheticArtifact: FlagConjunction

  148. final val SyntheticCase: FlagConjunction

  149. final val SyntheticModule: FlagConjunction

  150. final val SyntheticOrPrivate: FlagSet

    A synthetic or private definition

  151. final val SyntheticTermParam: FlagConjunction

  152. final val SyntheticTypeParam: FlagConjunction

  153. final val TermParam: FlagSet

  154. final val TermParamAccessor: FlagSet

  155. final val Touched: FlagSet

    Denotation is in train of being loaded and completed, used to catch cyclic dependencies

  156. final val Trait: FlagSet

    A trait

  157. final val TypeParam: FlagSet

  158. final val TypeParamAccessor: FlagSet

  159. final val TypeParamOrAccessor: FlagSet

    A type parameter or type parameter accessor

  160. final val UndefinedFlags: FlagSet

    The undefined flag set

  161. final val UnstableValue: FlagSet

    A value that's unstable unless complemented with a Stable flag

  162. final val VBridge: FlagSet

    Symbol is a Java varargs bridge

  163. final val ValidForever: FlagSet

    Is valid forever

  164. final val VarianceFlags: FlagSet

    Flags that express the variance of a type parameter.

  165. def allOf(flagss: FlagSet*): FlagConjunction

    The conjunction of all flags in given flag set

  166. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  167. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  168. def commonFlags(flagss: FlagSet*): FlagSet

  169. implicit def conjToFlagSet(conj: FlagConjunction): FlagSet

  170. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  171. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  172. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  173. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  174. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  175. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  176. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  177. final def notify(): Unit

    Definition Classes
    AnyRef
  178. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  179. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  180. def toString(): String

    Definition Classes
    AnyRef → Any
  181. def union(flagss: FlagSet*): FlagSet

    The union of all flags in given flag set

  182. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  183. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  184. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped