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. Hide All
  2. Show all
  1. Modifiers
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HasFlags
  7. AbsModifiers
  8. AnyRef
  9. Any
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
  3. type FlagsType = Long

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

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

    Definition Classes
    Any
  8. 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
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def defaultFlagString: String

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. 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
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hasAbstractFlag: Boolean

    Definition Classes
    HasFlags
  17. def hasAccessBoundary: Boolean

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

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

    Definition Classes
    ModifiersHasFlags
  18. def hasAccessorFlag: Boolean

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

  21. def hasContravariantFlag: Boolean

    Definition Classes
    HasFlags
  22. def hasDefault: Boolean

    Definition Classes
    HasFlags
  23. def hasDefaultFlag: Boolean

    Definition Classes
    HasFlags
  24. 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
  25. def hasFlagsToString(mask: Long): 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
    ModifiersHasFlags
  26. def hasInConstructorFlag: Boolean

    Definition Classes
    HasFlags
  27. def hasLocalFlag: Boolean

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

    Definition Classes
    Modifiers → AbsModifiers
  29. def hasModuleFlag: Boolean

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

    Definition Classes
    HasFlags
  32. def hasPreSuperFlag: Boolean

    Definition Classes
    HasFlags
  33. def hasStableFlag: Boolean

    Definition Classes
    HasFlags
  34. def hasStaticFlag: Boolean

    Definition Classes
    HasFlags
  35. def hasTraitFlag: Boolean

    Definition Classes
    HasFlags
  36. def isAbstractOverride: Boolean

    Definition Classes
    HasFlags
  37. def isAnyOverride: Boolean

    Definition Classes
    HasFlags
  38. def isByNameParam: Boolean

    Definition Classes
    HasFlags
  39. def isCase: Boolean

    Definition Classes
    HasFlags
  40. def isCaseAccessor: Boolean

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

    Attributes
    protected
    Definition Classes
    HasFlags
  42. def isDefaultInit: Boolean

    Definition Classes
    HasFlags
  43. def isDeferred: Boolean

    Definition Classes
    HasFlags
  44. def isFinal: Boolean

    Definition Classes
    HasFlags
  45. def isImplicit: Boolean

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

    Definition Classes
    Any
  47. def isInterface: Boolean

    Definition Classes
    HasFlags
  48. def isJavaDefined: Boolean

    Definition Classes
    HasFlags
  49. def isLabel: Boolean

    Definition Classes
    HasFlags
  50. def isLazy: Boolean

    Definition Classes
    HasFlags
  51. def isLifted: Boolean

    Definition Classes
    HasFlags
  52. def isMutable: Boolean

    Definition Classes
    HasFlags
  53. def isOverride: Boolean

    Definition Classes
    HasFlags
  54. def isParamAccessor: Boolean

    Definition Classes
    HasFlags
  55. def isParameter: Boolean

    Definition Classes
    HasFlags
  56. def isPrivate: Boolean

    Definition Classes
    HasFlags
  57. def isPrivateLocal: Boolean

    Definition Classes
    HasFlags
  58. def isProtected: Boolean

    Definition Classes
    HasFlags
  59. def isProtectedLocal: Boolean

    Definition Classes
    HasFlags
  60. def isPublic: Boolean

    Definition Classes
    HasFlags
  61. def isSealed: Boolean

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

    Attributes
    protected
    Definition Classes
    HasFlags
  63. def isSuperAccessor: Boolean

    Definition Classes
    HasFlags
  64. def isSynthetic: Boolean

    Definition Classes
    HasFlags
  65. def isTrait: Boolean

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

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

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

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

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

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

  72. 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
  73. def setPositions(poss: Map[Long, Position]): Modifiers.this.type

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

    Definition Classes
    AnyRef
  75. def toString(): String

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

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

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

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

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

  81. def |(flag: Long): Modifiers

Deprecated Value Members

  1. def isAbstract: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0)

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HasFlags

Inherited from AbsModifiers

Inherited from AnyRef

Inherited from Any