scala.reflect.internal

HasFlags

trait HasFlags extends AnyRef

Common code utilized by Modifiers (which carry the flags associated with Trees) and Symbol.

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

Type Members

  1. abstract type AccessBoundaryType

  2. abstract type AnnotationType

Abstract Value Members

  1. abstract def annotations: List[AnnotationType]

    A list of annotations attached to this entity.

  2. abstract def flags: Long

    Though both Symbol and Modifiers widen this method to public, it's defined protected here to give us the option in the future to route flag methods through accessors and disallow raw flag manipulation.

    Though both Symbol and Modifiers widen this method to public, it's defined protected here to give us the option in the future to route flag methods through accessors and disallow raw flag manipulation. And after that, perhaps, on some magical day: a typesafe enumeration.

    Attributes
    protected
  3. abstract def hasAccessBoundary: Boolean

    Whether this entity has a "privateWithin" visibility barrier attached.

  4. abstract def hasAllFlags(mask: Long): Boolean

    Whether this entity has ALL of the flags in the given mask.

  5. abstract def hasFlag(flag: Long): Boolean

    Whether this entity has ANY of the flags in the given mask.

  6. abstract def privateWithin: AccessBoundaryType

    Access level encoding: there are three scala flags (PRIVATE, PROTECTED, and LOCAL) which combine with value privateWithin (the "foo" in private[foo]) to define from where an entity can be accessed.

    Access level encoding: there are three scala flags (PRIVATE, PROTECTED, and LOCAL) which combine with value privateWithin (the "foo" in private[foo]) to define from where an entity can be accessed. The meanings are as follows:

    PRIVATE access restricted to class only. PROTECTED access restricted to class and subclasses only. LOCAL can only be set in conjunction with PRIVATE or PROTECTED. Further restricts access to the same object instance.

    In addition, privateWithin can be used to set a visibility barrier. When set, everything contained in the named enclosing package or class has access. It is incompatible with PRIVATE or LOCAL, but is additive with PROTECTED (i.e. if either the flags or privateWithin allow access, then it is allowed.)

    The java access levels translate as follows:

    java private: hasFlag(PRIVATE) && !hasAccessBoundary java package: !hasFlag(PRIVATE | PROTECTED) && (privateWithin == enclosing package) java protected: hasFlag(PROTECTED) && (privateWithin == enclosing package) java public: !hasFlag(PRIVATE | PROTECTED) && !hasAccessBoundary

Concrete Value Members

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

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

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

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

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

    Implicit information
    This member is added by an implicit conversion from HasFlags to ArrowAssoc[HasFlags] 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

    Definition Classes
    Any
  8. def accessString: String

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def calculateFlagString(basis: Long): String

    Attributes
    protected
  11. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def ensuring(cond: (HasFlags) ⇒ Boolean, msg: ⇒ Any): HasFlags

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

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

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

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

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def flagBitsToString(bits: Long): String

  20. def flagMask: Long

    The default mask determining which flags to display.

  21. def flagString(mask: Long): String

  22. def flagString: String

    The printable representation of this entity's flags and access boundary, restricted to flags in the given mask.

  23. def formatted(fmtstr: String): String

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

    Definition Classes
    AnyRef → Any
  25. def hasAbstractFlag: Boolean

  26. def hasAccessorFlag: Boolean

  27. def hasContravariantFlag: Boolean

  28. def hasDefault: Boolean

  29. def hasInConstructorFlag: Boolean

  30. def hasLocalFlag: Boolean

  31. def hasModuleFlag: Boolean

  32. def hasNoFlags(mask: Long): Boolean

    Whether this entity has NONE of the flags in the given mask.

  33. def hasPackageFlag: Boolean

  34. def hasStableFlag: Boolean

  35. def hasStaticFlag: Boolean

  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. def isAbstractOverride: Boolean

  38. def isAnyOverride: Boolean

  39. def isCase: Boolean

  40. def isCaseAccessor: Boolean

  41. def isClearing(f: Long, mask: Long): Boolean

    Attributes
    protected
  42. def isDeferred: Boolean

  43. def isFinal: Boolean

  44. def isImplicit: Boolean

  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. def isInterface: Boolean

  47. def isJavaDefined: Boolean

  48. def isLabel: Boolean

  49. def isLazy: Boolean

  50. def isLifted: Boolean

  51. def isMutable: Boolean

  52. def isOverride: Boolean

  53. def isParamAccessor: Boolean

  54. def isPrivate: Boolean

  55. def isPrivateLocal: Boolean

  56. def isProtected: Boolean

  57. def isProtectedLocal: Boolean

  58. def isPublic: Boolean

  59. def isSealed: Boolean

  60. def isSetting(f: Long, mask: Long): Boolean

    Attributes
    protected
  61. def isSuperAccessor: Boolean

  62. def isSynthetic: Boolean

  63. def isTrait: Boolean

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

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

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

    Definition Classes
    AnyRef
  67. def privateWithinString: String

  68. def resolveOverloadedFlag(flag: Long): String

    The string representation of a single bit, seen from this flag carrying entity.

  69. val self: Any

    Implicit information
    This member is added by an implicit conversion from HasFlags to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  70. val self: Any

    Implicit information
    This member is added by an implicit conversion from HasFlags to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  72. def toString(): String

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

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

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

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

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

Deprecated Value Members

  1. def defaultFlagString: String

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString

  2. def hasDefaultFlag: Boolean

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use hasDefault

  3. def hasFlagsToString(mask: Long): String

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString(mask)

  4. def hasTraitFlag: Boolean

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isTrait

  5. def isAbstract: Boolean

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0)

  6. def isParameter: Boolean

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isValueParameter or isTypeParameter

  7. def x: HasFlags

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

    (Since version 2.10.0) Use leftOfArrow instead

  8. def x: HasFlags

    Implicit information
    This member is added by an implicit conversion from HasFlags to Ensuring[HasFlags] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from HasFlags to StringFormat

Inherited by implicit conversion any2stringadd from HasFlags to StringAdd

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

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