scala.reflect.internal.Trees

Modifiers

case class Modifiers(flags: Long, privateWithin: Name, annotations: List[Tree]) extends AbsModifiers 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.

Definition Classes
Trees → Trees
Source
Trees.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, HasFlags, AbsModifiers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Modifiers
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HasFlags
  7. AbsModifiers
  8. AnyRef
  9. 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

Instance Constructors

  1. new Modifiers(flags: Long, privateWithin: Name, annotations: List[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 = Name

    Definition Classes
    ModifiersHasFlags
  2. type AnnotationType = Tree

    Definition Classes
    ModifiersHasFlags

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 &(flag: Long): Modifiers

  5. def &~(flag: Long): Modifiers

  6. def +(other: String): String

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

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

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

    Definition Classes
    Any
  10. def accessString: String

    Definition Classes
    HasFlags
  11. val annotations: List[Tree]

    the annotations for the definition.

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

    Definition Classes
    ModifiersHasFlags → AbsModifiers
  12. final def asInstanceOf[T0]: T0

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

    Attributes
    protected
    Definition Classes
    HasFlags
  14. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    AnyRef
  20. def finalize(): Unit

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

    Definition Classes
    HasFlags
  22. def flagMask: Long

    The default mask determining which flags to display.

    The default mask determining which flags to display.

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

    Definition Classes
    HasFlags
  24. 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
  25. 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
    ModifiersHasFlags
  26. def formatted(fmtstr: String): String

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

    Definition Classes
    AnyRef → Any
  28. def hasAbstractFlag: Boolean

    Definition Classes
    HasFlags
  29. def hasAccessBoundary: Boolean

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

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

    Definition Classes
    ModifiersHasFlags
  30. def hasAccessorFlag: Boolean

    Definition Classes
    HasFlags
  31. 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
  32. def hasAnnotationNamed(name: TypeName): Boolean

  33. def hasContravariantFlag: Boolean

    Definition Classes
    HasFlags
  34. def hasDefault: Boolean

    Definition Classes
    HasFlags
  35. 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
    ModifiersHasFlags
  36. def hasInConstructorFlag: Boolean

    Definition Classes
    HasFlags
  37. def hasLocalFlag: Boolean

    Definition Classes
    HasFlags
  38. def hasModifier(mod: Modifier): Boolean

    Definition Classes
    Modifiers → AbsModifiers
  39. def hasModuleFlag: Boolean

    Definition Classes
    HasFlags
  40. 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
  41. def hasPackageFlag: Boolean

    Definition Classes
    HasFlags
  42. def hasStableFlag: Boolean

    Definition Classes
    HasFlags
  43. def hasStaticFlag: Boolean

    Definition Classes
    HasFlags
  44. def isAbstractOverride: Boolean

    Definition Classes
    HasFlags
  45. def isAnyOverride: Boolean

    Definition Classes
    HasFlags
  46. def isCase: Boolean

    Definition Classes
    HasFlags
  47. def isCaseAccessor: Boolean

    Definition Classes
    HasFlags
  48. def isClearing(f: Long, mask: Long): Boolean

    Attributes
    protected
    Definition Classes
    HasFlags
  49. def isDeferred: Boolean

    Definition Classes
    HasFlags
  50. def isFinal: Boolean

    Definition Classes
    HasFlags
  51. def isImplicit: Boolean

    Definition Classes
    HasFlags
  52. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  53. def isInterface: Boolean

    Definition Classes
    HasFlags
  54. def isJavaDefined: Boolean

    Definition Classes
    HasFlags
  55. def isLabel: Boolean

    Definition Classes
    HasFlags
  56. def isLazy: Boolean

    Definition Classes
    HasFlags
  57. def isLifted: Boolean

    Definition Classes
    HasFlags
  58. def isMutable: Boolean

    Definition Classes
    HasFlags
  59. def isOverride: Boolean

    Definition Classes
    HasFlags
  60. def isParamAccessor: Boolean

    Definition Classes
    HasFlags
  61. def isPrivate: Boolean

    Definition Classes
    HasFlags
  62. def isPrivateLocal: Boolean

    Definition Classes
    HasFlags
  63. def isProtected: Boolean

    Definition Classes
    HasFlags
  64. def isProtectedLocal: Boolean

    Definition Classes
    HasFlags
  65. def isPublic: Boolean

    Definition Classes
    HasFlags
  66. def isSealed: Boolean

    Definition Classes
    HasFlags
  67. def isSetting(f: Long, mask: Long): Boolean

    Attributes
    protected
    Definition Classes
    HasFlags
  68. def isSuperAccessor: Boolean

    Definition Classes
    HasFlags
  69. def isSynthetic: Boolean

    Definition Classes
    HasFlags
  70. def isTrait: Boolean

    Definition Classes
    HasFlags
  71. def mapAnnotations(f: (List[Tree]) ⇒ List[Tree]): Modifiers

    Definition Classes
    Modifiers → AbsModifiers
  72. def modifiers: Set[Modifier]

    Definition Classes
    Modifiers → AbsModifiers
  73. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  76. var positions: Map[Long, Position]

  77. val privateWithin: Name

    the qualifier for a private (a type name) or tpnme.

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

    Definition Classes
    ModifiersHasFlags → AbsModifiers
  78. def privateWithinString: String

    Definition Classes
    HasFlags
  79. 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
  80. val self: Any

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

    Implicit information
    This member is added by an implicit conversion from Modifiers to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  82. def setPositions(poss: Map[Long, Position]): Modifiers.this.type

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

    Definition Classes
    AnyRef
  84. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  88. def withAnnotations(annots: List[Tree]): Modifiers

  89. def withPosition(flag: Long, position: Position): Modifiers

  90. def |(flag: Long): Modifiers

  91. def [B](y: B): (Modifiers, B)

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

Deprecated Value Members

  1. def defaultFlagString: String

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString

  2. def hasDefaultFlag: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use hasDefault

  3. def hasFlagsToString(mask: Long): String

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString(mask)

  4. def hasTraitFlag: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isTrait

  5. def isAbstract: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0)

  6. def isParameter: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isValueParameter or isTypeParameter

  7. def x: Modifiers

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

    (Since version 2.10.0) Use leftOfArrow instead

  8. def x: Modifiers

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

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HasFlags

Inherited from AbsModifiers

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from Modifiers to StringFormat

Inherited by implicit conversion any2stringadd from Modifiers to StringAdd

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

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