Dotty Documentation

0.14.0-bin-SNAPSHOT

case class Modifiers
extends Object with Product with Serializable

Modifiers and annotations for definitions

[-] Constructors

Modifiers ( flags: FlagSet , privateWithin: TypeName , annotations: List [ Tree ] , mods: List [ Mod ] )

[-] Members

[+] val annotations : List [ Tree ]
[+] val flags : FlagSet
[+] val mods : List [ Mod ]
[+] val privateWithin : TypeName
[+] def & ( fs: FlagSet ) : Modifiers
[+] def &~ ( fs: FlagSet ) : Modifiers
[+] def hasAnnotations : Boolean
[+] def hasFlags : Boolean
[+] def hasMod ( cls: Class [ Nothing <: Any ] ) : Boolean
[+] def hasPrivateWithin : Boolean
[+] def is ( fs: FlagSet ) : Boolean
[+] def is ( fc: FlagConjunction ) : Boolean
[+] def is ( fc: FlagSet , butNot: FlagSet ) : Boolean
[+] private def isEnum : Boolean
[+] def isEnumCase : Boolean
[+] def isEnumClass : Boolean
[+] def toTermFlags : Modifiers
[+] def toTypeFlags : Modifiers
[+] def withAddedAnnotation ( annot: Tree ) : Modifiers
[+] def withAddedMod ( mod: Mod ) : Modifiers
[+] def withAnnotations ( annots: List [ Tree ] ) : Modifiers
[+] def withFlags ( flags: FlagSet ) : Modifiers
[+] def withMods ( ms: List [ Mod ] ) : Modifiers

Modifiers with given list of Mods. It is checked that all modifiers are already accounted for in flags and privateWithin.

[+] def withPrivateWithin ( pw: TypeName ) : Modifiers
[+] def | ( fs: FlagSet ) : Modifiers