Dotty Documentation

0.18.1-bin-SNAPSHOT

class ClassDefSymbolAPI
extends Object

[-] Constructors

ClassDefSymbolAPI ( self: ClassDefSymbol )

[-] Members

[+] private val self : ClassDefSymbol
[+] def caseFields ( implicit ctx: Context ) : List [ ValDefSymbol ]

Fields of a case class type -- only the ones declared in primary constructor

[+] def classMethod ( name: String ) ( implicit ctx: Context ) : List [ DefDefSymbol ]

Get non-private named methods defined directly inside the class

[+] def classMethods ( implicit ctx: Context ) : List [ DefDefSymbol ]

Get all non-private methods defined directly inside the class, exluding constructors

[+] def companionClass ( implicit ctx: Context ) : Option [ ClassDefSymbol ]

The class symbol of the companion module class

[+] def companionModule ( implicit ctx: Context ) : Option [ ValDefSymbol ]

The symbol of the companion module

[+] def field ( name: String ) ( implicit ctx: Context ) : Option [ Symbol ]

Field with the given name directly declared in the class

[+] def fields ( implicit ctx: Context ) : List [ Symbol ]

Fields directly declared in the class

[+] def method ( name: String ) ( implicit ctx: Context ) : List [ DefDefSymbol ]

Get named non-private methods declared or inherited

[+] def methods ( implicit ctx: Context ) : List [ DefDefSymbol ]

Get all non-private methods declared or inherited

[+] def moduleClass ( implicit ctx: Context ) : Option [ Symbol ]

The symbol of the class of the companion module

[+] def tree ( implicit ctx: Context ) : ClassDef

ClassDef tree of this defintion