ClassDef

oxygen.quoted.ClassDef
See theClassDef companion object
final class ClassDef(val quotes: Quotes)(val unwrap: quotes.reflect.ClassDef) extends Definition

Attributes

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

Members list

Type members

Types

override type This <: ClassDef

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[Term | TypeTree]

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

override def unwrapWithin(using newQuotes: Quotes): newQuotes.reflect.ClassDef

Attributes

Definition Classes

Inherited methods

final 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
final def asExprOf[T](using Type[T]): Expr[T]

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

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

Attributes

Inherited from:
Tree
final def changeOwner(newOwner: Symbol): This

Changes the owner of the symbols in the tree

Changes the owner of the symbols in the tree

Attributes

Inherited from:
Tree
final def isExpr: Boolean

Does this tree represent a valid expression?

Does this tree represent a valid expression?

Attributes

Inherited from:
Tree
final def name: String

Name of the definition

Name of the definition

Attributes

Inherited from:
Definition
final def pos: Position

Position in the source code

Position in the source code

Attributes

Inherited from:
Tree
final def show(using printer: Printer[Tree]): String

Shows the tree as String

Shows the tree as String

Attributes

Inherited from:
Tree
final def symbol: Symbol

Symbol of defined or referred by this tree

Symbol of defined or referred by this tree

Attributes

Inherited from:
Tree

Concrete fields

val quotes: Quotes
val unwrap: quotes.reflect.ClassDef

Givens

Inherited givens

given givenQuotes: quotes.type

Attributes

Inherited from:
Tree