O object

SymbolOps

extends Object with Serializable

Members of Symbol

Supertypes

Object, Serializable

Members

def 

annots

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

Annotations attached to this symbol

Annotations attached to this symbol

def 

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 

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 

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 

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 

comment

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

The comment for this symbol, if any

The comment for this symbol, if any

def 

companionClass

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

The symbol of the companion class

The symbol of the companion class

def 

companionModule

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

The symbol of the companion module

The symbol of the companion module

def 

exists

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

Does this symbol represent a definition?

Does this symbol represent a definition?

def 

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 

fields

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

Fields directly declared in the class

Fields directly declared in the class

def 

flags

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

Flags of this symbol

Flags of this symbol

def 

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 

isAbstractType

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

def 

isAliasType

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

def 

isAnonymousClass

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

def 

isAnonymousFunction

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

def 

isBind

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

Is this the definition of a Bind pattern?

Is this the definition of a Bind pattern?

def 

isClassConstructor

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

def 

isClassDef

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

Is this the definition of a ClassDef tree?

Is this the definition of a ClassDef tree?

def 

isDefDef

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

Is this the definition of a DefDef tree?

Is this the definition of a DefDef tree?

def 

isDefinedInCurrentRun

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

def 

isLocalDummy

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

def 

isNoSymbol

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

Does this symbol represent a no definition?

Does this symbol represent a no definition?

def 

isPackageDef

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

Is this the definition of a PackageDef tree?

Is this the definition of a PackageDef tree?

def 

isRefinementClass

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

def 

isTerm

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

Is this the definition of a term?

Is this the definition of a term?

def 

isType

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

Is this the definition of a type?

Is this the definition of a type?

def 

isTypeDef

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

Is this the definition of a TypeDef tree

Is this the definition of a TypeDef tree

def 

isTypeParam

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

def 

isValDef

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

Is this the definition of a ValDef tree?

Is this the definition of a ValDef tree?

def 

localContext

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

def 

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 

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 

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 

moduleClass

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

The class symbol of the companion module class

The class symbol of the companion module class

def 

name

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

The name of this symbol

The name of this symbol

def 

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 

pos

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

The position of this symbol

The position of this symbol

def 

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 

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 

show

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

Shows the tree as fully typed source code

Shows the tree as fully typed source code

def 

showExtractors

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

Shows the tree as extractors

Shows the tree as extractors

def 

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 

signature

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

Signature of this definition

Signature of this definition

def 

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