scala.reflect.internal

Flags

class Flags extends ModifierFlags

All flags and associated operatins

Source
Flags.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Flags
  2. ModifierFlags
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Flags()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

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

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Flags to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Flags, B)

    Implicit information
    This member is added by an implicit conversion from Flags to ArrowAssoc[Flags] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Test two objects for equality.

    Test two objects for equality. The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    Any
  8. final val ABSOVERRIDE: Int(262144)

    Definition Classes
    ModifierFlags
  9. final val ABSTRACT: Int(8)

    Definition Classes
    ModifierFlags
  10. final val ACCESSOR: Int(134217728)

  11. final val ARTIFACT: Long(70368744177664L)

  12. final val AccessFlags: Int

    Definition Classes
    ModifierFlags
  13. final val AllFlags: Long(-1L)

    To be a little clearer to people who aren't habitual bit twiddlers.

  14. final val AntiFlags: Long(9151314442816847872L)

  15. final val AntiShift: Long(56L)

  16. final val BRIDGE: Int(67108864)

  17. final val BYNAMEPARAM: Int(65536)

    Definition Classes
    ModifierFlags
  18. final val BeanPropertyFlags: Int

  19. final val BridgeAndPrivateFlags: Long

  20. final val BridgeFlags: Long

    The two bridge flags

  21. final val CAPTURED: Int(65536)

  22. final val CASE: Int(2048)

    Definition Classes
    ModifierFlags
  23. final val CASEACCESSOR: Int(16777216)

    Definition Classes
    ModifierFlags
  24. final val CONTRAVARIANT: Int(131072)

    Definition Classes
    ModifierFlags
  25. final val COVARIANT: Int(65536)

    Definition Classes
    ModifierFlags
  26. final val ConstrFlags: Int(1048576)

    These appear to be flags which should be transferred from owner symbol to a newly created constructor symbol.

  27. final val DEFAULTINIT: Long(2199023255552L)

    Definition Classes
    ModifierFlags
  28. final val DEFAULTPARAM: Int(33554432)

    Definition Classes
    ModifierFlags
  29. final val DEFERRED: Int(16)

    Definition Classes
    ModifierFlags
  30. final val DefaultGetterFlags: Int

    When a symbol for a default getter is created, it inherits these flags from the method with the default.

    When a symbol for a default getter is created, it inherits these flags from the method with the default. Other flags applied at creation time are SYNTHETIC, DEFAULTPARAM, and possibly OVERRIDE, and maybe PRESUPER.

  31. final val EXISTENTIAL: Long(34359738368L)

  32. final val EXPANDEDNAME: Long(68719476736L)

  33. final val ExplicitFlags: Long

    These modifiers can be set explicitly in source programs.

    These modifiers can be set explicitly in source programs. This is used only as the basis for the default flag mask (which ones to display when printing a normal message.)

  34. final val FINAL: Int(32)

    Definition Classes
    ModifierFlags
  35. final val FieldFlags: Long

    When a symbol for a field is created, only these flags survive from Modifiers.

    When a symbol for a field is created, only these flags survive from Modifiers. Others which may be applied at creation time are: PRIVATE, LOCAL.

  36. final val FlagsNotPickled: Long

    These flags are not pickled

  37. final val GetterFlags: Long

    Masks for getters and setters, where the flags are derived from those on the field's modifiers.

    Masks for getters and setters, where the flags are derived from those on the field's modifiers. Both getters and setters get the ACCESSOR flag. Getters of immutable values also get STABLE.

  38. final val IMPLCLASS: Long(137438953472L)

  39. final val IMPLICIT: Int(512)

    Definition Classes
    ModifierFlags
  40. final val INCONSTRUCTOR: Int(131072)

  41. final val INTERFACE: Int(128)

    Definition Classes
    ModifierFlags
  42. final val IS_ERROR: Long(4294967296L)

  43. final val InitialFlags: Long(562949953421311L)

  44. final val JAVA: Int(1048576)

    Definition Classes
    ModifierFlags
  45. final val LABEL: Int(131072)

  46. final val LAZY: Long(2147483648L)

    Definition Classes
    ModifierFlags
  47. final val LIFTED: Long(17179869184L)

  48. final val LOCAL: Int(524288)

    Definition Classes
    ModifierFlags
  49. final val LOCKED: Long(549755813888L)

  50. final val LateFlags: Long(71494644084506624L)

  51. final val LateShift: Long(47L)

  52. final val MACRO: Int(32768)

    Definition Classes
    ModifierFlags
  53. final val METHOD: Int(64)

  54. final val MIXEDIN: Long(34359738368L)

  55. final val MODULE: Int(256)

  56. final val MODULEVAR: Int(1073741824)

  57. final val MUTABLE: Int(4096)

    Definition Classes
    ModifierFlags
  58. final val MaxBitPosition: Int(62)

  59. final val ModuleFlags: Int(256)

  60. final val ModuleToClassFlags: Int

    Module flags inherited by their module-class

  61. final val OVERLOADED: Long(8589934592L)

  62. final val OVERRIDE: Int(2)

    Definition Classes
    ModifierFlags
  63. val OverloadedFlagsMask: Long

  64. final val PACKAGE: Int(16384)

  65. final val PARAM: Int(8192)

    Definition Classes
    ModifierFlags
  66. final val PARAMACCESSOR: Int(536870912)

    Definition Classes
    ModifierFlags
  67. final val PRESUPER: Long(137438953472L)

    Definition Classes
    ModifierFlags
  68. final val PRIVATE: Int(4)

    Definition Classes
    ModifierFlags
  69. final val PROTECTED: Int(1)

    Definition Classes
    ModifierFlags
  70. final val PackageFlags: Int

  71. final val PickledFlags: Long

    These flags are pickled

  72. final val PrintableFlags: Long

    These modifiers appear in TreePrinter output.

  73. final val PrivateLocal: Int

    Definition Classes
    ModifierFlags
  74. final val ProtectedLocal: Int

    Definition Classes
    ModifierFlags
  75. final val SEALED: Int(1024)

    Definition Classes
    ModifierFlags
  76. final val SPECIALIZED: Long(1099511627776L)

  77. final val STABLE: Int(4194304)

  78. final val STATIC: Int(8388608)

    Definition Classes
    ModifierFlags
  79. final val SUPERACCESSOR: Int(268435456)

  80. final val SYNCHRONIZED: Long(35184372088832L)

  81. final val SYNTHETIC: Int(2097152)

  82. final val SetterFlags: Long

  83. final val TRAIT: Int(33554432)

    Definition Classes
    ModifierFlags
  84. final val TRANS_FLAG: Long(274877906944L)

  85. final val TRIEDCOOKING: Long(17592186044416L)

  86. final val TopLevelCreationFlags: Int

    These flags can be set when class or module symbol is first created.

    These flags can be set when class or module symbol is first created. They are the only flags to survive a call to resetFlags().

  87. final val VARARGS: Long(8796093022208L)

  88. final val VBRIDGE: Long(4398046511104L)

  89. final val ValueParameterFlags: Int

    When a symbol for a method parameter is created, only these flags survive from Modifiers.

    When a symbol for a method parameter is created, only these flags survive from Modifiers. Others which may be applied at creation time are: SYNTHETIC.

  90. final val VarianceFlags: Int

  91. final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown
    ClassCastException

    if the receiver object is not an instance of the erasure of type T0.

  92. def clone(): AnyRef

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  93. def ensuring(cond: (Flags) ⇒ Boolean, msg: ⇒ Any): Flags

    Implicit information
    This member is added by an implicit conversion from Flags to Ensuring[Flags] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  94. def ensuring(cond: (Flags) ⇒ Boolean): Flags

    Implicit information
    This member is added by an implicit conversion from Flags to Ensuring[Flags] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  95. def ensuring(cond: Boolean, msg: ⇒ Any): Flags

    Implicit information
    This member is added by an implicit conversion from Flags to Ensuring[Flags] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  96. def ensuring(cond: Boolean): Flags

    Implicit information
    This member is added by an implicit conversion from Flags to Ensuring[Flags] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  97. final def eq(arg0: AnyRef): Boolean

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

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

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to eq.

    See also equals in scala.Any.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

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

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

    The details of when and if the finalize method is invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  100. def flagToString(flag: Long): String

    Definition Classes
    FlagsModifierFlags
    Annotations
    @switch()
  101. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit information
    This member is added by an implicit conversion from Flags to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  102. final def getClass(): Class[_]

    A representation that corresponds to the dynamic class of the receiver object.

    A representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    Definition Classes
    AnyRef → Any
    Note

    not specified by SLS as a member of AnyRef

  103. def getterFlags(fieldFlags: Long): Long

  104. def hashCode(): Int

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in scala.Any.

    returns

    the hash code value for this object.

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

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    Definition Classes
    Any
  106. final val lateDEFERRED: Long

  107. final val lateFINAL: Long

  108. final val lateINTERFACE: Long

  109. final val lateMETHOD: Long

  110. final val lateMODULE: Long

  111. final def ne(arg0: AnyRef): Boolean

    Equivalent to !(this eq that).

    Equivalent to !(this eq that).

    returns

    true if the argument is not a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  112. final val notOVERRIDE: Long

  113. final val notPRIVATE: Long

  114. final val notPROTECTED: Long

  115. final def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  116. final def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  117. final val pickledListOrder: List[Long]

  118. val pickledToRawFlags: (Long) ⇒ Long

  119. final val rawFlagPickledOrder: Array[Long]

  120. val rawToPickledFlags: (Long) ⇒ Long

  121. def setterFlags(fieldFlags: Long): Long

  122. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  123. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    AnyRef → Any
  124. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  127. def [B](y: B): (Flags, B)

    Implicit information
    This member is added by an implicit conversion from Flags to ArrowAssoc[Flags] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from Flags to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (flags: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Flags to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (flags: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def flagsToString(flags: Long): String

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString on the flag-carrying member

  2. def flagsToString(flags: Long, privateWithin: String): String

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString on the flag-carrying member

  3. def x: Flags

    Implicit information
    This member is added by an implicit conversion from Flags to ArrowAssoc[Flags] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (flags: ArrowAssoc[Flags]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  4. def x: Flags

    Implicit information
    This member is added by an implicit conversion from Flags to Ensuring[Flags] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (flags: Ensuring[Flags]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from ModifierFlags

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Flags to StringAdd

Inherited by implicit conversion any2stringfmt from Flags to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Flags to ArrowAssoc[Flags]

Inherited by implicit conversion any2Ensuring from Flags to Ensuring[Flags]

No Group