Dotty Documentation

0.18.1-bin-SNAPSHOT

class SymbolAPI
extends Object

[-] Constructors

SymbolAPI ( self: Symbol )

[-] Members

[+] private val self : Symbol
[+] def annots ( implicit ctx: Context ) : List [ Term ]

Annotations attached to this symbol

[+] def asBindDef ( implicit ctx: Context ) : BindSymbol

Unsafe cast as to BindSymbol. Use IsBindSymbol to safely check and cast to BindSymbol

[+] def asClassDef ( implicit ctx: Context ) : ClassDefSymbol

Unsafe cast as to ClassSymbol. Use IsClassDefSymbol to safely check and cast to ClassSymbol

[+] def asDefDef ( implicit ctx: Context ) : DefDefSymbol

Unsafe cast as to DefSymbol. Use IsDefDefSymbol to safely check and cast to DefSymbol

[+] def asPackageDef ( implicit ctx: Context ) : PackageDefSymbol

Unsafe cast as to PackageSymbol. Use IsPackageSymbol to safely check and cast to PackageSymbol

[+] def asTypeDef ( implicit ctx: Context ) : TypeDefSymbol

Unsafe cast as to TypeSymbol. Use IsTypeDefSymbol to safely check and cast to TypeSymbol

[+] def asValDef ( implicit ctx: Context ) : ValDefSymbol

Unsafe cast as to ValSymbol. Use IsValDefSymbol to safely check and cast to ValSymbol

[+] def comment ( implicit ctx: Context ) : Option [ Comment ]

The comment for this symbol, if any

[+] def flags ( implicit ctx: Context ) : Flags

Flags of this symbol

[+] def fullName ( implicit ctx: Context ) : String

The full name of this symbol up to the root package

[+] def isAbstractType ( implicit ctx: Context ) : Boolean
[+] def isAliasType ( implicit ctx: Context ) : Boolean
[+] def isAnonymousClass ( implicit ctx: Context ) : Boolean
[+] def isAnonymousFunction ( implicit ctx: Context ) : Boolean
[+] def isClass ( implicit ctx: Context ) : Boolean
[+] def isClassConstructor ( implicit ctx: Context ) : Boolean
[+] def isDefDef ( implicit ctx: Context ) : Boolean
[+] def isDefinedInCurrentRun ( implicit ctx: Context ) : Boolean
[+] def isLocalDummy ( implicit ctx: Context ) : Boolean
[+] def isRefinementClass ( implicit ctx: Context ) : Boolean
[+] def isTerm ( implicit ctx: Context ) : Boolean
[+] def isType ( implicit ctx: Context ) : Boolean
[+] def isValDef ( implicit ctx: Context ) : Boolean
[+] def localContext ( implicit ctx: Context ) : Context
[+] def name ( implicit ctx: Context ) : String

The name of this symbol

[+] def owner ( implicit ctx: Context ) : Symbol

Owner of this symbol. The owner is the symbol in which this symbol is defined

[+] def pos ( implicit ctx: Context ) : Position

The position of this symbol

[+] def privateWithin ( implicit ctx: Context ) : Option [ Type ]

This symbol is private within the resulting type

[+] def protectedWithin ( implicit ctx: Context ) : Option [ Type ]

This symbol is protected within the resulting type