The primary constructor of a class or trait, noSymbol if not applicable.
The primary constructor of a class or trait, noSymbol if not applicable.
Extension methods of Symbol
Extension methods of Symbol
Fields of a case class type -- only the ones declared in primary constructor
Fields of a case class type -- only the ones declared in primary constructor
Case class or case object children of a sealed trait
Case class or case object children of a sealed trait
Field with the given name directly declared in the class
Field with the given name directly declared in the class
Get non-private named methods defined directly inside the class
Get non-private named methods defined directly inside the class
Get all non-private methods defined directly inside the class, excluding constructors
Get all non-private methods defined directly inside the class, excluding constructors
Get non-private named methods defined directly inside the class
Get non-private named methods defined directly inside the class
Get all non-private methods defined directly inside the class, excluding constructors
Get all non-private methods defined directly inside the class, excluding constructors
The full name of this symbol up to the root package
The full name of this symbol up to the root package
Get the annotation defined with annotSym attached to this symbol
Get the annotation defined with annotSym attached to this symbol
Is the annotation defined with annotSym attached to this symbol?
Is the annotation defined with annotSym attached to this symbol?
Does this symbol come from a currently compiled source file?
Does this symbol come from a currently compiled source file?
Dummy val symbol that owns all statements within the initialization of the class.
Dummy val symbol that owns all statements within the initialization of the class.
This may also contain local definitions such as classes defined in a locally block in the class.
Owner of this symbol.
Owner of this symbol. The owner is the symbol in which this symbol is defined. Returns NoSymbol if this symbol does not have an owner.
Get named non-private fields declared or inherited
Get named non-private fields declared or inherited
Get named non-private methods declared or inherited
Get named non-private methods declared or inherited
Type member with the given name directly declared in the class
Type member with the given name directly declared in the class
The symbol overriding this symbol in given subclass ofclazz.
The symbol overriding this symbol in given subclass ofclazz.
is a subclass of this symbol's owner
Owner of this symbol.
Owner of this symbol. The owner is the symbol in which this symbol is defined. Throws if this symbol does not have an owner.
The symbols of each type parameter list and value parameter list of this method, or Nil if this isn't a method.
The symbols of each type parameter list and value parameter list of this method, or Nil if this isn't a method.
The primary constructor of a class or trait, noSymbol if not applicable.
The primary constructor of a class or trait, noSymbol if not applicable.
This symbol is protected within the resulting type
This symbol is protected within the resulting type
Tree of this definition
Tree of this definition
If this symbol isClassDef it will return a ClassDef,
if this symbol isTypeDef it will return a TypeDef,
if this symbol isValDef it will return a ValDef,
if this symbol isDefDef it will return a DefDef
if this symbol isBind it will return a Bind,
else will throw
**Warning**: avoid using this method in macros.
**Caveat**: The tree is not guaranteed to exist unless the compiler
option -Yretain-trees is enabled.
**Anti-pattern**: The following code is an anti-pattern:
symbol.tree.info
It should be replaced by the following code:
tp.memberType(symbol)