dotty.tools.dotc.core.Symbols

Symbol

Related Doc: package Symbols

class Symbol extends DotClass with TypeParamInfo with Showable

A Symbol represents a Scala definition/declaration or a package.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Symbol
  2. Showable
  3. TypeParamInfo
  4. DotClass
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type ThisName <: Name

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asClass: ClassSymbol

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. final def asTerm(implicit ctx: Context): TermSymbol

  7. final def asType(implicit ctx: Context): TypeSymbol

  8. def associatedFile(implicit ctx: Context): AbstractFile

    The source or class file from which this class or the class containing this symbol was generated, null if not applicable.

    The source or class file from which this class or the class containing this symbol was generated, null if not applicable. Overridden in ClassSymbol

  9. final def binaryFile(implicit ctx: Context): AbstractFile

    The class file from which this class was generated, null if not applicable.

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val coord: Coord

    The coordinates of the symbol (a position or an index)

  12. final def denot(implicit ctx: Context): SymDenotation

    The current denotation of this symbol

  13. final def entered(implicit ctx: Context): Symbol.this.type

    This symbol entered into owner's scope (owner must be a class).

  14. def enteredAfter(phase: DenotTransformer)(implicit ctx: Context): Symbol.this.type

    Enter this symbol in its class owner after given phase.

    Enter this symbol in its class owner after given phase. Create a fresh denotation for its owner class if the class has not yet already one that starts being valid after phase.

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def fallbackToText(printer: Printer): Text

    A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

    A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

    Definition Classes
    Showable
  18. def filter(p: (Symbol) ⇒ Boolean): Symbol

    If this symbol satisfies predicate p this symbol, otherwise NoSymbol

  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    Symbol → AnyRef → Any
  22. val id: Int

    A unique identifier of the symbol (unique per ContextBase)

  23. final def isClass: Boolean

  24. final def isDefinedInCurrentRun(implicit ctx: Context): Boolean

    Does this symbol come from a currently compiled source file?

  25. final def isFresh(implicit ctx: Context): Boolean

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def isStatic(implicit ctx: Context): Boolean

    Special cased here, because it may be used on naked symbols in substituters

  28. final def isTerm(implicit ctx: Context): Boolean

    Subclass tests and casts

  29. final def isType(implicit ctx: Context): Boolean

  30. def isTypeParam(implicit ctx: Context): Boolean

    Is this the info of a type parameter? Will return false for symbols that are not type parameters.

    Is this the info of a type parameter? Will return false for symbols that are not type parameters.

    Definition Classes
    SymbolTypeParamInfo
  31. final def name(implicit ctx: Context): ThisName

    The current name of this symbol

  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def orElse(that: ⇒ Symbol)(implicit ctx: Context): Symbol

    This symbol, if it exists, otherwise the result of evaluating that

  36. def paramBounds(implicit ctx: Context): TypeBounds

    The info of the type parameter

    The info of the type parameter

    Definition Classes
    SymbolTypeParamInfo
  37. def paramBoundsAsSeenFrom(pre: Type)(implicit ctx: Context): TypeBounds

    The info of the type parameter as seen from a prefix type.

    The info of the type parameter as seen from a prefix type. For type parameter symbols, this is the memberInfo as seen from prefix. For type lambda parameters, it's the same as paramBounds as asSeenFrom has already been applied to the whole type lambda.

    Definition Classes
    SymbolTypeParamInfo
  38. def paramBoundsOrCompleter(implicit ctx: Context): Type

    The parameter bounds, or the completer if the type parameter is an as-yet uncompleted symbol.

    The parameter bounds, or the completer if the type parameter is an as-yet uncompleted symbol.

    Definition Classes
    SymbolTypeParamInfo
  39. def paramName(implicit ctx: Context): TypeName

    The name of the type parameter

    The name of the type parameter

    Definition Classes
    SymbolTypeParamInfo
  40. def paramRef(implicit ctx: Context): TypeRef

    A type that refers to the parameter

    A type that refers to the parameter

    Definition Classes
    SymbolTypeParamInfo
  41. def paramVariance(implicit ctx: Context): Int

    The variance of the type parameter

    The variance of the type parameter

    Definition Classes
    SymbolTypeParamInfo
  42. def pos: Position

    The position of this symbol, or NoPosition is symbol was not loaded from source.

  43. def prefixString: String

    The prefix string to be used when displaying this symbol without denotation

    The prefix string to be used when displaying this symbol without denotation

    Attributes
    protected
  44. def show(implicit ctx: Context): String

    The string representation of this showable element.

    The string representation of this showable element.

    Definition Classes
    Showable
  45. def showDcl(implicit ctx: Context): String

  46. def showExtendedLocation(implicit ctx: Context): String

  47. def showFullName(implicit ctx: Context): String

  48. def showKind(implicit ctx: Context): String

  49. def showLocated(implicit ctx: Context): String

  50. def showName(implicit ctx: Context): String

  51. def showSummary(implicit ctx: Context): String

    Definition Classes
    Showable
  52. def showSummary(depth: Int)(implicit ctx: Context): String

    The summarized string representation of this showable element.

    The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

    Definition Classes
    Showable
  53. final def sourceFile(implicit ctx: Context): AbstractFile

    The source file from which this class was generated, null if not applicable.

  54. def superId(implicit ctx: Context): Int

    A unique, densely packed integer tag for each class symbol, -1 for all other symbols.

    A unique, densely packed integer tag for each class symbol, -1 for all other symbols. To save memory, this method should be called only if class is a super class of some other class.

  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. def toString(): String

    Definition Classes
    Symbol → AnyRef → Any
  57. def toText(printer: Printer): Text

    The text representation of this showable element.

    The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.

    Definition Classes
    SymbolShowable
  58. def unsupported(methodName: String): Nothing

    Throws an UnsupportedOperationException with the given method name.

    Throws an UnsupportedOperationException with the given method name.

    Definition Classes
    DotClass
  59. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Showable

Inherited from TypeParamInfo

Inherited from DotClass

Inherited from AnyRef

Inherited from Any

Ungrouped