ClassDefMethods

scala.quoted.Quotes.reflectModule.ClassDefMethods

Extension methods of ClassDef.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Extensions

Extensions

extension (self: Quotes.this.reflectModule.this.ClassDef)

Statements within the class

Statements within the class

class C {
  ??? // statements
}

Attributes

Returns

the list of statements within the class body

Source
Quotes.scala

The primary constructor of this class.

The primary constructor of this class.

Attributes

Source
Quotes.scala

List of extended parent classes or traits. The first parent is always a class.

List of extended parent classes or traits. The first parent is always a class.

Attributes

Source
Quotes.scala

Self-type of the class

Self-type of the class

type T
class C { self: T =>
  ???
}

Attributes

Returns

the self-type ValDef if one is declared, or None

Source
Quotes.scala