dotty.tools.dotc.ast.untpd

Modifiers

Related Doc: package untpd

case class Modifiers(flags: FlagSet = EmptyFlags, privateWithin: TypeName = tpnme.EMPTY, annotations: List[untpd.Tree] = Nil, mods: List[Mod] = Nil) extends Positioned with Cloneable with Product with Serializable

Modifiers and annotations for definitions

flags

The set flags

privateWithin

If a private or protected has is followed by a qualifier [q], the name q, "" as a typename otherwise.

annotations

The annotations preceding the modifiers

Linear Supertypes
Serializable, Serializable, Cloneable, Cloneable, Positioned, Product, Equals, DotClass, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Modifiers
  2. Serializable
  3. Serializable
  4. Cloneable
  5. Cloneable
  6. Positioned
  7. Product
  8. Equals
  9. DotClass
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Modifiers(flags: FlagSet = EmptyFlags, privateWithin: TypeName = tpnme.EMPTY, annotations: List[untpd.Tree] = Nil, mods: List[Mod] = Nil)

    flags

    The set flags

    privateWithin

    If a private or protected has is followed by a qualifier [q], the name q, "" as a typename otherwise.

    annotations

    The annotations preceding the modifiers

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def &(fs: FlagSet): Modifiers

  4. def &~(fs: FlagSet): Modifiers

  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def addPos(pos: Position): Modifiers.this.type

    This item with a position that's the union of the given pos and the current position.

    This item with a position that's the union of the given pos and the current position.

    Definition Classes
    Positioned
  7. val annotations: List[untpd.Tree]

    The annotations preceding the modifiers

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def checkPos(nonOverlapping: Boolean)(implicit ctx: Context): Unit

    Check that all positioned items in this tree satisfy the following conditions:

    Check that all positioned items in this tree satisfy the following conditions:

    • Parent positions contain child positions
    • If item is a non-empty tree, it has a position
    Definition Classes
    Positioned
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def contains(that: Positioned): Boolean

    Definition Classes
    Positioned
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. val flags: FlagSet

    The set flags

  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hasAnnotations: Boolean

  17. def hasFlags: Boolean

  18. def hasPrivateWithin: Boolean

  19. def initialPos: Position

    The initial, synthetic position.

    The initial, synthetic position. This is usually the union of all positioned children's positions.

    Definition Classes
    Positioned
  20. def is(fc: FlagConjunction): Boolean

  21. def is(fs: FlagSet): Boolean

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val mods: List[Mod]

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

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

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

    Definition Classes
    AnyRef
  27. def pos: Position

    The item's position.

    The item's position.

    Definition Classes
    Positioned
  28. val privateWithin: TypeName

    If a private or protected has is followed by a qualifier [q], the name q, "" as a typename otherwise.

  29. def setPos(pos: Position): Unit

    Destructively update curPos to given position.

    Destructively update curPos to given position. Also, set any missing positions in children.

    Attributes
    protected
    Definition Classes
    Positioned
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toTermFlags: Modifiers

  32. def toTypeFlags: Modifiers

  33. def unsupported(methodName: String): Nothing

    Throws an UnsupportedOperationException with the given method name.

    Throws an UnsupportedOperationException with the given method name.

    Definition Classes
    DotClass
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withAddedAnnotation(annot: untpd.Tree): Modifiers

  38. def withAddedMod(mod: Mod): Modifiers

  39. def withAnnotations(annots: List[untpd.Tree]): Modifiers

  40. def withFlags(flags: FlagSet): Modifiers

  41. def withMods(ms: List[Mod]): Modifiers

  42. def withPos(posd: Positioned): Modifiers.this.type

    Definition Classes
    Positioned
  43. def withPos(pos: Position): Modifiers.this.type

    A positioned item like this one with the position set to pos.

    A positioned item like this one with the position set to pos. if the positioned item is source-derived, a clone is returned. If the positioned item is synthetic, the position is updated destructively and the item itself is returned.

    Definition Classes
    Positioned
  44. def withPrivateWithin(pw: TypeName): Modifiers

  45. def |(fs: FlagSet): Modifiers

Inherited from Serializable

Inherited from Serializable

Inherited from Cloneable

Inherited from Cloneable

Inherited from Positioned

Inherited from Product

Inherited from Equals

Inherited from DotClass

Inherited from AnyRef

Inherited from Any

Ungrouped