O object

Symbol

extends Object

Supertypes

Object

Members

def 

classSymbol

( fullName: String ) ( implicit  ctx: Context ) : Symbol

The class Symbol of a global class definition

The class Symbol of a global class definition

def 

currentOwner

( implicit  ctx: Context ) : Symbol

Returns the symbol of the current enclosing definition

Returns the symbol of the current enclosing definition

def 

extension_annots

( sym: Symbol ) ( implicit  ctx: Context ) : List[Term]

Annotations attached to this symbol

Annotations attached to this symbol

def 

extension_caseFields

( sym: Symbol ) ( implicit  ctx: Context ) : List[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

def 

extension_children

( sym: Symbol ) ( implicit  ctx: Context ) : List[Symbol]

Case class or case object children of a sealed trait

Case class or case object children of a sealed trait

def 

extension_classMethod

( sym: Symbol ) ( name: String ) ( implicit  ctx: Context ) : List[Symbol]

Get non-private named methods defined directly inside the class

Get non-private named methods defined directly inside the class

def 

extension_classMethods

( sym: Symbol ) ( implicit  ctx: Context ) : List[Symbol]

Get all non-private methods defined directly inside the class, exluding constructors

Get all non-private methods defined directly inside the class, exluding constructors

def 

extension_comment

( sym: Symbol ) ( implicit  ctx: Context ) : Option[Comment]

The comment for this symbol, if any

The comment for this symbol, if any

def 

extension_companionClass

( sym: Symbol ) ( implicit  ctx: Context ) : Symbol

The symbol of the companion class

The symbol of the companion class

def 

extension_companionModule

( sym: Symbol ) ( implicit  ctx: Context ) : Symbol

The symbol of the companion module

The symbol of the companion module

def 

extension_exists

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Does this symbol represent a definition?

Does this symbol represent a definition?

def 

extension_field

( sym: Symbol ) ( name: String ) ( implicit  ctx: Context ) : Symbol

Field with the given name directly declared in the class

Field with the given name directly declared in the class

def 

extension_fields

( sym: Symbol ) ( implicit  ctx: Context ) : List[Symbol]

Fields directly declared in the class

Fields directly declared in the class

def 

extension_flags

( sym: Symbol ) ( implicit  ctx: Context ) : Flags

Flags of this symbol

Flags of this symbol

def 

extension_fullName

( sym: Symbol ) ( implicit  ctx: Context ) : String

The full name of this symbol up to the root package

The full name of this symbol up to the root package

def 

extension_isAbstractType

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isAliasType

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isAnonymousClass

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isAnonymousFunction

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isBind

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a Bind pattern?

Is this the definition of a Bind pattern?

def 

extension_isClassConstructor

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isClassDef

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a ClassDef tree?

Is this the definition of a ClassDef tree?

def 

extension_isDefDef

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a DefDef tree?

Is this the definition of a DefDef tree?

def 

extension_isDefinedInCurrentRun

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isLocalDummy

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isNoSymbol

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Does this symbol represent a no definition?

Does this symbol represent a no definition?

def 

extension_isPackageDef

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a PackageDef tree?

Is this the definition of a PackageDef tree?

def 

extension_isRefinementClass

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isTerm

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a term?

Is this the definition of a term?

def 

extension_isType

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a type?

Is this the definition of a type?

def 

extension_isTypeDef

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a TypeDef tree

Is this the definition of a TypeDef tree

def 

extension_isTypeParam

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

def 

extension_isValDef

( sym: Symbol ) ( implicit  ctx: Context ) : Boolean

Is this the definition of a ValDef tree?

Is this the definition of a ValDef tree?

def 

extension_localContext

( sym: Symbol ) ( implicit  ctx: Context ) : Context

def 

extension_maybeOwner

( sym: Symbol ) ( implicit  ctx: Context ) : 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.

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.

def 

extension_method

( sym: Symbol ) ( name: String ) ( implicit  ctx: Context ) : List[Symbol]

Get named non-private methods declared or inherited

Get named non-private methods declared or inherited

def 

extension_methods

( sym: Symbol ) ( implicit  ctx: Context ) : List[Symbol]

Get all non-private methods declared or inherited

Get all non-private methods declared or inherited

def 

extension_moduleClass

( sym: Symbol ) ( implicit  ctx: Context ) : Symbol

The class symbol of the companion module class

The class symbol of the companion module class

def 

extension_name

( sym: Symbol ) ( implicit  ctx: Context ) : String

The name of this symbol

The name of this symbol

def 

extension_owner

( sym: Symbol ) ( implicit  ctx: Context ) : 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.

Owner of this symbol. The owner is the symbol in which this symbol is defined. Throws if this symbol does not have an owner.

def 

extension_paramSymss

( sym: Symbol ) ( implicit  ctx: Context ) : List[List[Symbol]]

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.

def 

extension_pos

( sym: Symbol ) ( implicit  ctx: Context ) : Position

The position of this symbol

The position of this symbol

def 

extension_primaryConstructor

( sym: Symbol ) ( implicit  x$1: Context ) : Symbol

The primary constructor of a class or trait, noSymbol if not applicable.

The primary constructor of a class or trait, noSymbol if not applicable.

def 

extension_privateWithin

( sym: Symbol ) ( implicit  ctx: Context ) : Option[Type]

This symbol is private within the resulting type

This symbol is private within the resulting type

def 

extension_protectedWithin

( sym: Symbol ) ( implicit  ctx: Context ) : Option[Type]

This symbol is protected within the resulting type

This symbol is protected within the resulting type

def 

extension_show

( sym: Symbol ) ( implicit  ctx: Context ) : String

Shows the tree as fully typed source code

Shows the tree as fully typed source code

def 

extension_showExtractors

( sym: Symbol ) ( implicit  ctx: Context ) : String

Shows the tree as extractors

Shows the tree as extractors

def 

extension_showWith

( sym: Symbol ) ( syntaxHighlight: SyntaxHighlight ) ( implicit  ctx: Context ) : String

Shows the tree as fully typed source code

Shows the tree as fully typed source code

def 

extension_signature

( sym: Symbol ) ( implicit  ctx: Context ) : Signature

Signature of this definition

Signature of this definition

def 

extension_tree

( sym: Symbol ) ( implicit  ctx: Context ) : Tree

Tree of this definition

if this symbol isPackageDef it will return a PackageDef, if this symbol isClassDef it will return a ClassDef, if this symbol isTy...

Tree of this definition

if this symbol isPackageDef it will return a PackageDef, 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

def 

extension_typeMember

( sym: Symbol ) ( name: String ) ( implicit  ctx: Context ) : Symbol

Type member with the given name directly declared in the class

Type member with the given name directly declared in the class

def 

extension_typeMembers

( sym: Symbol ) ( implicit  ctx: Context ) : List[Symbol]

Type member directly declared in the class

Type member directly declared in the class

def 

newBind

( parent: Symbol name: String flags: Flags tpe: Type ) ( implicit  ctx: Context ) : Symbol

Generates a pattern bind symbol with the given parent, name and type.

This symbol starts without an accompanying definition. It is the meta-programmer's...

Generates a pattern bind symbol with the given parent, name and type.

This symbol starts without an accompanying definition. It is the meta-programmer's responsibility to provide exactly one corresponding definition by passing this symbol to the BindDef constructor.

def 

newMethod

( parent: Symbol name: String tpe: Type ) ( implicit  ctx: Context ) : Symbol

Generates a new method symbol with the given parent, name and type.

This symbol starts without an accompanying definition. It is the meta-programmer's r...

Generates a new method symbol with the given parent, name and type.

This symbol starts without an accompanying definition. It is the meta-programmer's responsibility to provide exactly one corresponding definition by passing this symbol to the DefDef constructor.

def 

newMethod

( parent: Symbol name: String tpe: Type flags: Flags privateWithin: Symbol ) ( implicit  ctx: Context ) : Symbol

Works as the other newMethod, but with additional parameters.

Works as the other newMethod, but with additional parameters.

def 

newVal

( parent: Symbol name: String tpe: Type flags: Flags privateWithin: Symbol ) ( implicit  ctx: Context ) : Symbol

Generates a new val/var/lazy val symbol with the given parent, name and type.

This symbol starts without an accompanying definition. It is the meta-prog...

Generates a new val/var/lazy val symbol with the given parent, name and type.

This symbol starts without an accompanying definition. It is the meta-programmer's responsibility to provide exactly one corresponding definition by passing this symbol to the ValDef constructor.

Note: Also see Reflection.let

def 

noSymbol

( implicit  ctx: Context ) : Symbol

Definition not available

Definition not available

def 

requiredClass

( path: String ) ( implicit  ctx: Context ) : Symbol

Get class symbol if class is either defined in current compilation run or present on classpath.

Get class symbol if class is either defined in current compilation run or present on classpath.

def 

requiredMethod

( path: String ) ( implicit  ctx: Context ) : Symbol

Get method symbol if method is either defined in current compilation run or present on classpath. Throws if the method has an overload.

Get method symbol if method is either defined in current compilation run or present on classpath. Throws if the method has an overload.

def 

requiredModule

( path: String ) ( implicit  ctx: Context ) : Symbol

Get module symbol if module is either defined in current compilation run or present on classpath.

Get module symbol if module is either defined in current compilation run or present on classpath.

def 

requiredPackage

( path: String ) ( implicit  ctx: Context ) : Symbol

Get package symbol if package is either defined in current compilation run or present on classpath.

Get package symbol if package is either defined in current compilation run or present on classpath.