scala.reflect.internal

Flags

object Flags extends Flags

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

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. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. 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
  6. final val ABSOVERRIDE: Int(262144)

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

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

    Definition Classes
    Flags
  9. final val AccessFlags: Int

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

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

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

    Definition Classes
    Flags
  11. final val AntiFlags: Long(9151314442816847872L)

    Definition Classes
    Flags
  12. final val AntiShift: Long(56L)

    Definition Classes
    Flags
  13. final val BRIDGE: Int(67108864)

    Definition Classes
    Flags
  14. final val BYNAMEPARAM: Int(65536)

    Definition Classes
    ModifierFlags
  15. final val BeanPropertyFlags: Int

    Definition Classes
    Flags
  16. final val BridgeAndPrivateFlags: Long

    Definition Classes
    Flags
  17. final val BridgeFlags: Long

    The two bridge flags

    The two bridge flags

    Definition Classes
    Flags
  18. final val CAPTURED: Int(65536)

    Definition Classes
    Flags
  19. final val CASE: Int(2048)

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

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

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

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

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

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

    Definition Classes
    Flags
  24. final val DEFAULTINIT: Long(2199023255552L)

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

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

    Definition Classes
    ModifierFlags
  27. 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.

    Definition Classes
    Flags
  28. final val EXISTENTIAL: Long(34359738368L)

    Definition Classes
    Flags
  29. final val EXPANDEDNAME: Long(68719476736L)

    Definition Classes
    Flags
  30. 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.)

    Definition Classes
    Flags
  31. final val FINAL: Int(32)

    Definition Classes
    ModifierFlags
  32. 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.

    Definition Classes
    Flags
  33. 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.

    Definition Classes
    Flags
  34. final val IMPLCLASS: Long(137438953472L)

    Definition Classes
    Flags
  35. final val IMPLICIT: Int(512)

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

    Definition Classes
    Flags
  37. final val INTERFACE: Int(128)

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

    Definition Classes
    Flags
  39. final val InitialFlags: Long(562949953421311L)

    Definition Classes
    Flags
  40. final val JAVA: Int(1048576)

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

    Definition Classes
    Flags
  42. final val LAZY: Long(2147483648L)

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

    Definition Classes
    Flags
  44. final val LOCAL: Int(524288)

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

    Definition Classes
    Flags
  46. final val LateFlags: Long(71494644084506624L)

    Definition Classes
    Flags
  47. final val LateShift: Long(47L)

    Definition Classes
    Flags
  48. final val MACRO: Int(32768)

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

    Definition Classes
    Flags
  50. final val MIXEDIN: Long(34359738368L)

    Definition Classes
    Flags
  51. final val MODULE: Int(256)

    Definition Classes
    Flags
  52. final val MODULEVAR: Int(1073741824)

    Definition Classes
    Flags
  53. final val MUTABLE: Int(4096)

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

    Definition Classes
    Flags
  55. final val ModuleFlags: Int(256)

    Definition Classes
    Flags
  56. final val ModuleToClassFlags: Int

    Module flags inherited by their module-class

    Module flags inherited by their module-class

    Definition Classes
    Flags
  57. final val OVERLOADED: Long(8589934592L)

    Definition Classes
    Flags
  58. final val OVERRIDE: Int(2)

    Definition Classes
    ModifierFlags
  59. val OverloadedFlagsMask: Long

    Definition Classes
    Flags
  60. final val PACKAGE: Int(16384)

    Definition Classes
    Flags
  61. final val PARAM: Int(8192)

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

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

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

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

    Definition Classes
    ModifierFlags
  66. final val PackageFlags: Int

    Definition Classes
    Flags
  67. final val PickledFlags: Long(4294967295L)

    Definition Classes
    Flags
  68. final val PrintableFlags: Long

    These modifiers appear in TreePrinter output.

    These modifiers appear in TreePrinter output.

    Definition Classes
    Flags
  69. final val PrivateLocal: Int

    Definition Classes
    ModifierFlags
  70. final val ProtectedLocal: Int

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

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

    Definition Classes
    Flags
  73. final val STABLE: Int(4194304)

    Definition Classes
    Flags
  74. final val STATIC: Int(8388608)

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

    Definition Classes
    Flags
  76. final val SYNCHRONIZED: Long(35184372088832L)

    Definition Classes
    Flags
  77. final val SYNTHETIC: Int(2097152)

    Definition Classes
    Flags
  78. final val SetterFlags: Long

    Definition Classes
    Flags
  79. final val TRAIT: Int(33554432)

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

    Definition Classes
    Flags
  81. final val TRIEDCOOKING: Long(17592186044416L)

    Definition Classes
    Flags
  82. 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().

    Definition Classes
    Flags
  83. final val VARARGS: Long(8796093022208L)

    Definition Classes
    Flags
  84. final val VBRIDGE: Long(4398046511104L)

    Definition Classes
    Flags
  85. 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.

    Definition Classes
    Flags
  86. final val VarianceFlags: Int

    Definition Classes
    Flags
  87. 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.

  88. 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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  89. 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
  90. 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 Any.

    returns

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

    Definition Classes
    AnyRef → Any
  91. 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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  92. def flagToString(flag: Long): String

    Definition Classes
    FlagsModifierFlags
    Annotations
    @switch()
  93. 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

  94. def getterFlags(fieldFlags: Long): Long

    Definition Classes
    Flags
  95. def hashCode(): Int

    The hashCode method for reference types.

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

    returns

    the hash code value for this object.

    Definition Classes
    AnyRef → Any
  96. 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
  97. final val lateDEFERRED: Long

    Definition Classes
    Flags
  98. final val lateFINAL: Long

    Definition Classes
    Flags
  99. final val lateINTERFACE: Long

    Definition Classes
    Flags
  100. final val lateMETHOD: Long

    Definition Classes
    Flags
  101. final val lateMODULE: Long

    Definition Classes
    Flags
  102. 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
  103. final val notOVERRIDE: Long

    Definition Classes
    Flags
  104. final val notPRIVATE: Long

    Definition Classes
    Flags
  105. final val notPROTECTED: Long

    Definition Classes
    Flags
  106. 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

  107. 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

  108. final val pickledListOrder: List[Long]

    Definition Classes
    Flags
  109. def pickledToRawFlags(pflags: Long): Long

    Definition Classes
    Flags
  110. final val rawFlagPickledOrder: Array[Long]

    Definition Classes
    Flags
  111. def rawFlagsToPickled(flags: Long): Long

    Definition Classes
    Flags
  112. def setterFlags(fieldFlags: Long): Long

    Definition Classes
    Flags
  113. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  114. 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
  115. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def flagsToString(flags: Long): String

    Definition Classes
    Flags
    Annotations
    @deprecated
    Deprecated

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

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

    Definition Classes
    Flags
    Annotations
    @deprecated
    Deprecated

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

Inherited from Flags

Inherited from ModifierFlags

Inherited from AnyRef

Inherited from Any