SymbolOps
extends Object with SerializableMembers of Symbol
Supertypes
Object, SerializableMembers
annots
( sym: Symbol ) ( implicit ctx: Context ) : List[Term]Annotations attached to this symbol
Annotations attached to this symbol
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
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
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
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
comment
( sym: Symbol ) ( implicit ctx: Context ) : Option[Comment]The comment for this symbol, if any
companionClass
( sym: Symbol ) ( implicit ctx: Context ) : SymbolThe symbol of the companion class
The symbol of the companion class
companionModule
( sym: Symbol ) ( implicit ctx: Context ) : SymbolThe symbol of the companion module
The symbol of the companion module
exists
( sym: Symbol ) ( implicit ctx: Context ) : BooleanDoes this symbol represent a definition?
Does this symbol represent a definition?
field
( sym: Symbol ) ( name: String ) ( implicit ctx: Context ) : SymbolField with the given name directly declared in the class
Field with the given name directly declared in the class
fields
( sym: Symbol ) ( implicit ctx: Context ) : List[Symbol]Fields directly declared in the class
Fields directly declared in the class
flags
( sym: Symbol ) ( implicit ctx: Context ) : FlagsFlags of this symbol
Flags of this symbol
fullName
( sym: Symbol ) ( implicit ctx: Context ) : StringThe full name of this symbol up to the root package
The full name of this symbol up to the root package
isBind
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a Bind pattern?
Is this the definition of a Bind pattern?
isClassDef
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a ClassDef tree?
Is this the definition of a ClassDef tree?
isDefDef
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a DefDef tree?
Is this the definition of a DefDef tree?
isNoSymbol
( sym: Symbol ) ( implicit ctx: Context ) : BooleanDoes this symbol represent a no definition?
Does this symbol represent a no definition?
isPackageDef
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a PackageDef tree?
Is this the definition of a PackageDef tree?
isTerm
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a term?
Is this the definition of a term?
isType
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a type?
Is this the definition of a type?
isTypeDef
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a TypeDef tree
Is this the definition of a TypeDef tree
isValDef
( sym: Symbol ) ( implicit ctx: Context ) : BooleanIs this the definition of a ValDef tree?
Is this the definition of a ValDef tree?
maybeOwner
( sym: Symbol ) ( implicit ctx: Context ) : SymbolOwner 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.
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
methods
( sym: Symbol ) ( implicit ctx: Context ) : List[Symbol]Get all non-private methods declared or inherited
Get all non-private methods declared or inherited
moduleClass
( sym: Symbol ) ( implicit ctx: Context ) : SymbolThe class symbol of the companion module class
The class symbol of the companion module class
name
( sym: Symbol ) ( implicit ctx: Context ) : StringThe name of this symbol
The name of this symbol
owner
( sym: Symbol ) ( implicit ctx: Context ) : SymbolOwner 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.
pos
( sym: Symbol ) ( implicit ctx: Context ) : PositionThe position of this symbol
The position of this symbol
privateWithin
( sym: Symbol ) ( implicit ctx: Context ) : Option[Type]This symbol is private within the resulting type
This symbol is private within the resulting type
protectedWithin
( sym: Symbol ) ( implicit ctx: Context ) : Option[Type]This symbol is protected within the resulting type
This symbol is protected within the resulting type
show
( sym: Symbol ) ( implicit ctx: Context ) : StringShows the tree as fully typed source code
Shows the tree as fully typed source code
showExtractors
( sym: Symbol ) ( implicit ctx: Context ) : StringShows the tree as extractors
Shows the tree as extractors
showWith
( sym: Symbol ) ( syntaxHighlight: SyntaxHighlight ) ( implicit ctx: Context ) : StringShows the tree as fully typed source code
Shows the tree as fully typed source code
signature
( sym: Symbol ) ( implicit ctx: Context ) : SignatureSignature of this definition
Signature of this definition
tree
( sym: Symbol ) ( implicit ctx: Context ) : TreeTree 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
The comment for this symbol, if any