Packages

case class Modifiers(flags: Long, privateWithin: SymbolTable.Name, annotations: List[SymbolTable.Tree]) extends SymbolTable.ModifiersApi with HasFlags with Product with Serializable

privateWithin

the qualifier for a private (a type name) or tpnme.EMPTY, if none is given.

annotations

the annotations for the definition. Note: the typechecker drops these annotations, use the AnnotationInfo's (Symbol.annotations) in later phases.

Linear Supertypes
Serializable, java.io.Serializable, Product, Equals, HasFlags, SymbolTable.ModifiersApi, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Modifiers
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HasFlags
  7. ModifiersApi
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Modifiers(flags: Long, privateWithin: SymbolTable.Name, annotations: List[SymbolTable.Tree])

    privateWithin

    the qualifier for a private (a type name) or tpnme.EMPTY, if none is given.

    annotations

    the annotations for the definition. Note: the typechecker drops these annotations, use the AnnotationInfo's (Symbol.annotations) in later phases.

Type Members

  1. type AccessBoundaryType = SymbolTable.Name
    Definition Classes
    ModifiersHasFlags
  2. type AnnotationType = SymbolTable.Tree
    Definition Classes
    ModifiersHasFlags

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def &(flag: Long): SymbolTable.Modifiers
  4. def &~(flag: Long): SymbolTable.Modifiers
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def accessString: String
    Definition Classes
    HasFlags
  7. val annotations: List[SymbolTable.Tree]

    A list of annotations attached to this entity.

    A list of annotations attached to this entity.

    Definition Classes
    ModifiersHasFlagsModifiersApi
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def calculateFlagString(basis: Long): String
    Attributes
    protected
    Definition Classes
    HasFlags
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flagBitsToString(bits: Long): String
    Definition Classes
    HasFlags
  14. def flagMask: Long

    The default mask determining which flags to display.

    The default mask determining which flags to display.

    Definition Classes
    HasFlags
  15. def flagString(mask: Long): String
    Definition Classes
    HasFlags
  16. def flagString: String

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

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

    Definition Classes
    HasFlags
  17. val 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.

    Definition Classes
    ModifiersHasFlagsModifiersApi
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hasAbstractFlag: Boolean
    Definition Classes
    HasFlags
  20. def hasAccessBoundary: Boolean

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

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

    Definition Classes
    ModifiersHasFlags
  21. def hasAccessorFlag: Boolean
    Definition Classes
    HasFlags
  22. def hasAllFlags(mask: Long): Boolean

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

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

    Definition Classes
    ModifiersHasFlags
  23. def hasAnnotationNamed(name: SymbolTable.TypeName): Boolean
  24. def hasDefault: Boolean
    Definition Classes
    HasFlags
  25. def hasFlag(flag: Long): Boolean

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

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

    Definition Classes
    ModifiersHasFlagsModifiersApi
  26. def hasJavaAnnotationFlag: Boolean
    Definition Classes
    HasFlags
  27. def hasJavaEnumFlag: Boolean
    Definition Classes
    HasFlags
  28. def hasModuleFlag: Boolean
    Definition Classes
    HasFlags
  29. def hasNoFlags(mask: Long): Boolean

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

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

    Definition Classes
    HasFlags
  30. def hasPackageFlag: Boolean
    Definition Classes
    HasFlags
  31. def hasStableFlag: Boolean
    Definition Classes
    HasFlags
  32. def hasStaticFlag: Boolean
    Definition Classes
    HasFlags
  33. def isAbstractOverride: Boolean
    Definition Classes
    HasFlags
  34. def isAnyOverride: Boolean
    Definition Classes
    HasFlags
  35. def isArtifact: Boolean
    Definition Classes
    HasFlags
  36. def isCase: Boolean
    Definition Classes
    HasFlags
  37. def isCaseAccessor: Boolean
    Definition Classes
    HasFlags
  38. def isDeferred: Boolean
    Definition Classes
    HasFlags
  39. def isFinal: Boolean
    Definition Classes
    HasFlags
  40. def isImplicit: Boolean
    Definition Classes
    HasFlags
  41. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  42. def isInterface: Boolean
    Definition Classes
    HasFlags
  43. def isJavaDefined: Boolean
    Definition Classes
    HasFlags
  44. def isLabel: Boolean
    Definition Classes
    HasFlags
  45. def isLazy: Boolean
    Definition Classes
    HasFlags
  46. def isLifted: Boolean
    Definition Classes
    HasFlags
  47. def isLocalToThis: Boolean
    Definition Classes
    HasFlags
  48. def isMacro: Boolean
    Definition Classes
    HasFlags
  49. def isMutable: Boolean
    Definition Classes
    HasFlags
  50. def isOverride: Boolean
    Definition Classes
    HasFlags
  51. def isParamAccessor: Boolean
    Definition Classes
    HasFlags
  52. def isParameter: Boolean
    Definition Classes
    HasFlags
  53. def isPrivate: Boolean
    Definition Classes
    HasFlags
  54. def isPrivateLocal: Boolean
    Definition Classes
    HasFlags
  55. def isProtected: Boolean
    Definition Classes
    HasFlags
  56. def isProtectedLocal: Boolean
    Definition Classes
    HasFlags
  57. def isPublic: Boolean
    Definition Classes
    HasFlags
  58. def isSealed: Boolean
    Definition Classes
    HasFlags
  59. def isSpecialized: Boolean
    Definition Classes
    HasFlags
  60. def isSuperAccessor: Boolean
    Definition Classes
    HasFlags
  61. def isSynthetic: Boolean
    Definition Classes
    HasFlags
  62. def isTrait: Boolean
    Definition Classes
    HasFlags
  63. def isTraitOrInterface: Boolean
    Definition Classes
    HasFlags
  64. def mapAnnotations(f: (List[SymbolTable.Tree]) ⇒ List[SymbolTable.Tree]): SymbolTable.Modifiers

    Creates a new instance of Modifiers with the annotations transformed according to the given function.

    Creates a new instance of Modifiers with the annotations transformed according to the given function.

    Definition Classes
    ModifiersModifiersApi
  65. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  66. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  67. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  68. var positions: Map[Long, SymbolTable.Position]
  69. val privateWithin: SymbolTable.Name

    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

    Definition Classes
    ModifiersHasFlagsModifiersApi
  70. def resolveOverloadedFlag(flag: Long): String

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

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

    Definition Classes
    HasFlags
  71. def setPositions(poss: Map[Long, SymbolTable.Position]): Modifiers.this.type
  72. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  73. def toString(): String
    Definition Classes
    Modifiers → AnyRef → Any
  74. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  77. def withAnnotations(annots: List[SymbolTable.Tree]): SymbolTable.Modifiers
  78. def withPosition(flag: Long, position: SymbolTable.Position): SymbolTable.Modifiers
  79. def |(flag: Long): SymbolTable.Modifiers
  80. def |(flag: Int): SymbolTable.Modifiers

Deprecated Value Members

  1. def hasLocalFlag: Boolean
    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use isLocalToThis instead

  2. def isPackage: Boolean
    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use hasPackageFlag instead

Inherited from Serializable

Inherited from java.io.Serializable

Inherited from Product

Inherited from Equals

Inherited from HasFlags

Inherited from SymbolTable.ModifiersApi

Inherited from AnyRef

Inherited from Any

Ungrouped