scala.reflect.internal

Symbols

trait Symbols extends Symbols

Self Type
SymbolTable
Source
Symbols.scala
Linear Supertypes
Symbols, Symbols, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Symbols
  2. Symbols
  3. Symbols
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class AbstractTypeSymbol extends TypeSymbol

  2. class AliasTypeSymbol extends TypeSymbol

  3. class ClassSymbol extends TypeSymbol with ClassSymbolApi

    A class for class symbols

  4. trait ClassSymbolApi extends TypeSymbolApi with ClassSymbolBase

    The API of class symbols

  5. trait ClassSymbolBase extends TypeSymbolBase

    The base API that all class symbols support

  6. case class CyclicReference(sym: Symbol, info: Type) extends TypeError with Product with Serializable

    An exception for cyclic references of symbol definitions

  7. trait FreeSymbol extends Symbol

  8. class FreeTermSymbol extends TermSymbol with FreeSymbol with FreeTermSymbolApi

    The abstract type of free terms introduced by reification

  9. trait FreeTermSymbolApi extends TermSymbolApi with FreeTermSymbolBase

    The API of free term symbols

  10. trait FreeTermSymbolBase extends TermSymbolBase

    The base API that all free term symbols support

  11. class FreeTypeSymbol extends TypeSkolem with FreeSymbol with FreeTypeSymbolApi

    The abstract type of free types introduced by reification

  12. trait FreeTypeSymbolApi extends TypeSymbolApi with FreeTypeSymbolBase

    The API of free term symbols

  13. trait FreeTypeSymbolBase extends TypeSymbolBase

    The base API that all free type symbols support

  14. trait HasFlagsApi extends AnyRef

  15. trait ImplClassSymbol extends ClassSymbol

  16. case class InvalidCompanions(sym1: Symbol, sym2: Symbol) extends Throwable with Product with Serializable

  17. class MethodSymbol extends TermSymbol with MethodSymbolApi

    A class for method symbols

  18. type MethodSymbolApi = MethodSymbolBase

    The API of method symbols

    The API of method symbols

    Definition Classes
    Symbols
  19. trait MethodSymbolBase extends TermSymbolBase

    The base API that all method symbols support

  20. class ModuleClassSymbol extends ClassSymbol

    A class for module class symbols Note: Not all module classes are of this type; when unpickled, we get plain class symbols!

  21. class ModuleSymbol extends TermSymbol with ModuleSymbolApi

    A class for module symbols

  22. type ModuleSymbolApi = ModuleSymbolBase

    The API of module symbols

    The API of module symbols

    Definition Classes
    Symbols
  23. trait ModuleSymbolBase extends TermSymbolBase

    The base API that all module symbols support

  24. class NoSymbol extends Symbol

    An object representing a missing symbol

  25. class PackageClassSymbol extends ModuleClassSymbol

  26. class PackageObjectClassSymbol extends ModuleClassSymbol

  27. class RefinementClassSymbol extends ClassSymbol

  28. abstract class Symbol extends SymbolContextApiImpl with HasFlags with Annotatable[Symbol]

    The class for all symbols

  29. trait SymbolApi extends SymbolBase with HasFlagsApi

    The API of symbols

  30. trait SymbolBase extends AnyRef

    The base API that all symbols support

  31. abstract class SymbolContextApiImpl extends SymbolContextApi

  32. class TermSymbol extends Symbol with TermSymbolApi

    A class for term symbols

  33. trait TermSymbolApi extends SymbolApi with HasFlagsApi with TermSymbolBase

    The API of term symbols

  34. trait TermSymbolBase extends SymbolBase

    The base API that all term symbols support

  35. class TypeSkolem extends TypeSymbol

    A class for type parameters viewed from inside their scopes

  36. abstract class TypeSymbol extends Symbol with TypeSymbolApi

    A class of type symbols.

  37. trait TypeSymbolApi extends SymbolApi with HasFlagsApi with TypeSymbolBase

    The API of type symbols

  38. trait TypeSymbolBase extends SymbolBase

    The base API that all type symbols support

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    Any
  3. final def ##(): Int

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Symbols to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Symbols, B)

    Implicit information
    This member is added by an implicit conversion from Symbols to ArrowAssoc[Symbols] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Test two objects for equality.

    Test two objects for equality. The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    Any
  8. implicit val ClassSymbolTag: ClassTag[ClassSymbol]

    A tag that preserves the identity of the ClassSymbol abstract type from erasure.

    A tag that preserves the identity of the ClassSymbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  9. implicit val FreeTermSymbolTag: ClassTag[FreeTermSymbol]

    A tag that preserves the identity of the FreeTermSymbol abstract type from erasure.

    A tag that preserves the identity of the FreeTermSymbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  10. implicit val FreeTypeSymbolTag: ClassTag[FreeTypeSymbol]

    A tag that preserves the identity of the FreeTypeSymbol abstract type from erasure.

    A tag that preserves the identity of the FreeTypeSymbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  11. implicit val MethodSymbolTag: ClassTag[MethodSymbol]

    A tag that preserves the identity of the MethodSymbol abstract type from erasure.

    A tag that preserves the identity of the MethodSymbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  12. implicit val ModuleSymbolTag: ClassTag[ModuleSymbol]

    A tag that preserves the identity of the ModuleSymbol abstract type from erasure.

    A tag that preserves the identity of the ModuleSymbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  13. lazy val NoSymbol: NoSymbol

    Definition Classes
    SymbolsSymbols
  14. implicit val SymbolTag: ClassTag[Symbol]

    A tag that preserves the identity of the Symbol abstract type from erasure.

    A tag that preserves the identity of the Symbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  15. implicit val TermSymbolTag: ClassTag[TermSymbol]

    A tag that preserves the identity of the TermSymbol abstract type from erasure.

    A tag that preserves the identity of the TermSymbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  16. implicit val TypeSymbolTag: ClassTag[TypeSymbol]

    A tag that preserves the identity of the TypeSymbol abstract type from erasure.

    A tag that preserves the identity of the TypeSymbol abstract type from erasure. Can be used for pattern matching, instance tests, serialization and likes.

    Definition Classes
    SymbolsSymbols
  17. final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown
    ClassCastException

    if the receiver object is not an instance of the erasure of type T0.

  18. def clone(): AnyRef

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  19. def cloneSymbols(syms: List[Symbol]): List[Symbol]

    Convenience functions which derive symbols by cloning.

  20. def cloneSymbolsAndModify(syms: List[Symbol], infoFn: (Type) ⇒ Type): List[Symbol]

    Clone symbols and apply the given function to each new symbol's info.

    Clone symbols and apply the given function to each new symbol's info.

    syms

    the prototypical symbols

    infoFn

    the function to apply to the infos

    returns

    the newly created, info-adjusted symbols

  21. def cloneSymbolsAtOwner(syms: List[Symbol], owner: Symbol): List[Symbol]

  22. def cloneSymbolsAtOwnerAndModify(syms: List[Symbol], owner: Symbol, infoFn: (Type) ⇒ Type): List[Symbol]

  23. def connectModuleToClass(m: ModuleSymbol, moduleClass: ClassSymbol): ModuleSymbol

  24. def createFromClonedSymbols[T](syms: List[Symbol], tpe: Type)(creator: (List[Symbol], Type) ⇒ T): T

    Functions which perform the standard clone/substituting on the given symbols and type, then call the creator function with the new symbols and type as arguments.

  25. def createFromClonedSymbolsAtOwner[T](syms: List[Symbol], owner: Symbol, tpe: Type)(creator: (List[Symbol], Type) ⇒ T): T

  26. def deriveSymbols(syms: List[Symbol], symFn: (Symbol) ⇒ Symbol): List[Symbol]

    Derives a new list of symbols from the given list by mapping the given list across the given function.

    Derives a new list of symbols from the given list by mapping the given list across the given function. Then fixes the info of all the new symbols by substituting the new symbols for the original symbols.

    syms

    the prototypical symbols

    symFn

    the function to create new symbols

    returns

    the new list of info-adjusted symbols

  27. def deriveType(syms: List[Symbol], symFn: (Symbol) ⇒ Symbol)(tpe: Type): Type

    Derives a new Type by first deriving new symbols as in deriveSymbols, then performing the same oldSyms => newSyms substitution on tpe as is performed on the symbol infos in deriveSymbols.

    Derives a new Type by first deriving new symbols as in deriveSymbols, then performing the same oldSyms => newSyms substitution on tpe as is performed on the symbol infos in deriveSymbols.

    syms

    the prototypical symbols

    symFn

    the function to create new symbols

    tpe

    the prototypical type

    returns

    the new symbol-subsituted type

  28. def deriveTypeWithWildcards(syms: List[Symbol])(tpe: Type): Type

    Derives a new Type by instantiating the given list of symbols as WildcardTypes.

    Derives a new Type by instantiating the given list of symbols as WildcardTypes.

    syms

    the symbols to replace

    returns

    the new type with WildcardType replacing those syms

  29. val emptySymbolArray: Array[Symbol]

  30. def ensuring(cond: (Symbols) ⇒ Boolean, msg: ⇒ Any): Symbols

    Implicit information
    This member is added by an implicit conversion from Symbols to Ensuring[Symbols] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  31. def ensuring(cond: (Symbols) ⇒ Boolean): Symbols

    Implicit information
    This member is added by an implicit conversion from Symbols to Ensuring[Symbols] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def ensuring(cond: Boolean, msg: ⇒ Any): Symbols

    Implicit information
    This member is added by an implicit conversion from Symbols to Ensuring[Symbols] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. def ensuring(cond: Boolean): Symbols

    Implicit information
    This member is added by an implicit conversion from Symbols to Ensuring[Symbols] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. final def eq(arg0: AnyRef): Boolean

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

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

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to eq.

    See also equals in Any.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    AnyRef → Any
  36. def finalize(): Unit

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

    The details of when and if the finalize method is invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  37. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit information
    This member is added by an implicit conversion from Symbols to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  38. def freshExistentialName(suffix: String): TypeName

    Attributes
    protected
  39. final def getClass(): Class[_]

    A representation that corresponds to the dynamic class of the receiver object.

    A representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    Definition Classes
    AnyRef → Any
    Note

    not specified by SLS as a member of AnyRef

  40. def hashCode(): Int

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in Any.

    returns

    the hash code value for this object.

    Definition Classes
    AnyRef → Any
  41. var ids: Int

    Attributes
    protected
  42. final def isInstanceOf[T0]: Boolean

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    Definition Classes
    Any
  43. def makeNoSymbol: NoSymbol

    Attributes
    protected
  44. def mapParamss[T](sym: Symbol)(f: (Symbol) ⇒ T): List[List[T]]

    A deep map on a symbol's paramss.

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

    Equivalent to !(this eq that).

    Equivalent to !(this eq that).

    returns

    true if the argument is not a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  46. def newFreeTermSymbol(name: TermName, info: Type, value: ⇒ Any, flags: Long = 0L, origin: String): FreeTermSymbol

    Create a new free term.

    Create a new free term. Its owner is NoSymbol.

  47. def newFreeTypeSymbol(name: TypeName, info: Type, value: ⇒ Any, flags: Long = 0L, origin: String): FreeTypeSymbol

    Create a new free type.

    Create a new free type. Its owner is NoSymbol.

  48. def nextId(): Int

    Attributes
    protected
  49. final def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  50. final def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  51. val originalOwner: HashMap[Symbol, Symbol]

    The original owner of a class.

    The original owner of a class. Used by the backend to generate EnclosingMethod attributes.

  52. val self: Any

    Implicit information
    This member is added by an implicit conversion from Symbols to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  53. val self: Any

    Implicit information
    This member is added by an implicit conversion from Symbols to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  54. def symbolCount: Int

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

    Definition Classes
    AnyRef
  56. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    AnyRef → Any
  57. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  60. def [B](y: B): (Symbols, B)

    Implicit information
    This member is added by an implicit conversion from Symbols to ArrowAssoc[Symbols] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def x: Symbols

    Implicit information
    This member is added by an implicit conversion from Symbols to ArrowAssoc[Symbols] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Symbols

    Implicit information
    This member is added by an implicit conversion from Symbols to Ensuring[Symbols] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Symbols

Inherited from Symbols

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Symbols to StringAdd

Inherited by implicit conversion any2stringfmt from Symbols to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Symbols to ArrowAssoc[Symbols]

Inherited by implicit conversion any2Ensuring from Symbols to Ensuring[Symbols]