ClassDef

scala.quoted.runtime.impl.QuotesImpl.reflect$.ClassDef$
object ClassDef extends ClassDefModule

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply(cls: Symbol, parents: List[Tree], body: List[Statement]): ClassDef

Create a class definition tree

Create a class definition tree

Attributes

body

List of members of the class. The members must align with the members of cls.

cls

The class symbol. A new class symbol can be created using Symbol.newClass.

parents

The parents trees class. The trees must align with the parent types of cls. Parents can be TypeTrees if they don't have term parameter, otherwise the can be Term containing the New applied to the parameters of the extended class.

def copy(original: Tree)(name: String, constr: DefDef, parents: List[Tree], selfOpt: Option[ValDef], body: List[Statement]): ClassDef
def unapply(cdef: ClassDef): (String, DefDef, List[Tree], Option[ValDef], List[Statement])