ClassDef

oxygen.meta.Meta.Tree.Statement.Definition.ClassDef
See theClassDef companion object
final case class ClassDef(raw: quotes.reflect.ClassDef) extends Definition

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Definition
trait Statement
trait Tree
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def body: List[Statement]

Statements within the class

Statements within the class

class C {
  ??? // statements
}

Attributes

The primary constructor of this class

The primary constructor of this class

Attributes

def parents: List[TermOrTypeTree]

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

def self: Option[ValDef]

Self-type of the class

Self-type of the class

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

Attributes

Inherited methods

def asExpr: Expr[Any]

Convert this tree to an quoted.Expr[Any] if the tree is a valid expression or throws

Convert this tree to an quoted.Expr[Any] if the tree is a valid expression or throws

Attributes

Inherited from:
Tree
def asExprOf[A : Type]: Expr[A]

Attributes

Inherited from:
Tree
def asExprTyped[A]: Expr[A]

Attributes

Inherited from:
Tree
def isExpr: Boolean

Does this tree represent a valid expression?

Does this tree represent a valid expression?

Attributes

Inherited from:
Tree
def name: String

Attributes

Inherited from:
Definition
def pos: Position

Position in the source code

Position in the source code

Attributes

Inherited from:
Tree
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def show(using quotes.reflect.Printer[quotes.reflect.Tree]): String

Shows the tree as String

Shows the tree as String

Attributes

Inherited from:
Tree
def symbol: Symbol

Symbol of defined or referred by this tree

Symbol of defined or referred by this tree

Attributes

Inherited from:
Tree