trait HasFlags extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HasFlags
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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: 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. def accessString: String
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def calculateFlagString(basis: Long): String
    Attributes
    protected
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flagBitsToString(bits: Long): String
  12. def flagMask: Long

    The default mask determining which flags to display.

  13. def flagString(mask: Long): String
  14. def flagString: String

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

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hasAbstractFlag: Boolean
  17. def hasAccessorFlag: Boolean
  18. def hasDefault: Boolean
  19. def hasJavaAnnotationFlag: Boolean
  20. def hasJavaEnumFlag: Boolean
  21. def hasModuleFlag: Boolean
  22. def hasNoFlags(mask: Long): Boolean

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

  23. def hasPackageFlag: Boolean
  24. def hasStableFlag: Boolean
  25. def hasStaticFlag: Boolean
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def isAbstractOverride: Boolean
  28. def isAnyOverride: Boolean
  29. def isArtifact: Boolean
  30. def isCase: Boolean
  31. def isCaseAccessor: Boolean
  32. def isDeferred: Boolean
  33. def isFinal: Boolean
  34. def isImplicit: Boolean
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def isInterface: Boolean
  37. def isJavaDefined: Boolean
  38. def isLabel: Boolean
  39. def isLazy: Boolean
  40. def isLifted: Boolean
  41. def isLocalToThis: Boolean
  42. def isMacro: Boolean
  43. def isMutable: Boolean
  44. def isOverride: Boolean
  45. def isParamAccessor: Boolean
  46. def isParameter: Boolean
  47. def isPrivate: Boolean
  48. def isPrivateLocal: Boolean
  49. def isProtected: Boolean
  50. def isProtectedLocal: Boolean
  51. def isPublic: Boolean
  52. def isSealed: Boolean
  53. def isSpecialized: Boolean
  54. def isSuperAccessor: Boolean
  55. def isSynthetic: Boolean
  56. def isTrait: Boolean
  57. def isTraitOrInterface: Boolean
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  60. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  61. def resolveOverloadedFlag(flag: Long): String

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

  62. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  63. def toString(): String
    Definition Classes
    AnyRef → Any
  64. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Deprecated Value Members

  1. def hasLocalFlag: Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use isLocalToThis instead

  2. def isPackage: Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use hasPackageFlag instead

Inherited from AnyRef

Inherited from Any

Ungrouped