Type

scala.reflect.api.Symbols

ClassSymbol

Related Doc: package Symbols

Permalink

abstract type ClassSymbol >: Null <: Universe.ClassSymbolApi with Universe.TypeSymbol

The type of class symbols representing class and trait definitions.

Source
Symbols.scala
Linear Supertypes
Universe.<refinement>, Universe.<refinement>, Universe.ClassSymbolApi, Universe.TypeSymbolApi, Universe.SymbolApi, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. ClassSymbol
  2. <refinement>
  3. <refinement>
  4. ClassSymbolApi
  5. TypeSymbolApi
  6. SymbolApi
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final type NameType = Universe.TypeName

    Permalink

    Type symbols have their names of type TypeName.

    Type symbols have their names of type TypeName.

    Definition Classes
    TypeSymbolApiSymbolApi

Abstract Value Members

  1. abstract def alternatives: List[Universe.Symbol]

    Permalink

    The overloaded alternatives of this symbol

    The overloaded alternatives of this symbol

    Definition Classes
    SymbolApi
  2. abstract def annotations: List[Universe.Annotation]

    Permalink

    A list of annotations attached to this Symbol.

    A list of annotations attached to this Symbol.

    Definition Classes
    SymbolApi
  3. abstract def baseClasses: List[Universe.Symbol]

    Permalink

    The list of all base classes of this type (including its own typeSymbol) in linearization order, starting with the class itself and ending in class Any.

    The list of all base classes of this type (including its own typeSymbol) in linearization order, starting with the class itself and ending in class Any.

    Definition Classes
    ClassSymbolApi
  4. abstract def companion: Universe.Symbol

    Permalink

    For a class: its companion object if exists.

    For a class: its companion object if exists. For a module or a module class: companion class of the module if exists. For a package or a package class: NoSymbol. For all others: NoSymbol.

    Definition Classes
    SymbolApi
  5. abstract def filter(cond: (Universe.Symbol) ⇒ Boolean): Universe.Symbol

    Permalink

    Filters the underlying alternatives (or a single-element list composed of the symbol itself if the symbol is not overloaded).

    Filters the underlying alternatives (or a single-element list composed of the symbol itself if the symbol is not overloaded). Returns an overloaded symbol is there are multiple matches. Returns a NoSymbol if there are no matches.

    Definition Classes
    SymbolApi
  6. abstract def fullName: String

    Permalink

    The encoded full path name of this symbol, where outer names and inner names are separated by periods.

    The encoded full path name of this symbol, where outer names and inner names are separated by periods.

    Definition Classes
    SymbolApi
  7. abstract def info: Universe.Type

    Permalink

    The type signature of this symbol.

    The type signature of this symbol.

    This method always returns signatures in the most generic way possible, even if the underlying symbol is obtained from an instantiation of a generic type. For example, signature of the method def map[B](f: (A) ⇒ B): List[B], which refers to the type parameter A of the declaring class List[A], will always feature A, regardless of whether map is loaded from the List[_] or from List[Int]. To get a signature with type parameters appropriately instantiated, one should use infoIn.

    Definition Classes
    SymbolApi
  8. abstract def infoIn(site: Universe.Type): Universe.Type

    Permalink

    The type signature of this symbol seen as a member of given type site.

    The type signature of this symbol seen as a member of given type site.

    Definition Classes
    SymbolApi
  9. abstract def isAbstract: Boolean

    Permalink

    Is this symbol abstract (i.e.

    Is this symbol abstract (i.e. an abstract class, an abstract method, value or type member)?

    Definition Classes
    SymbolApi
  10. abstract def isAbstractOverride: Boolean

    Permalink

    Is this symbol labelled as "abstract override"?

    Is this symbol labelled as "abstract override"?

    Definition Classes
    SymbolApi
  11. abstract def isAliasType: Boolean

    Permalink

    Does this symbol represent the definition of a type alias?

    Does this symbol represent the definition of a type alias?

    Definition Classes
    TypeSymbolApi
  12. abstract def isCaseClass: Boolean

    Permalink

    Does this symbol represent a case class?

    Does this symbol represent a case class?

    Definition Classes
    ClassSymbolApi
  13. abstract def isConstructor: Boolean

    Permalink

    Does this method represent a constructor?

    Does this method represent a constructor?

    If owner is a class, then this is a vanilla JVM constructor. If owner is a trait, then this is a mixin constructor.

    Definition Classes
    SymbolApi
  14. abstract def isContravariant: Boolean

    Permalink

    Is the type parameter represented by this symbol contravariant?

    Is the type parameter represented by this symbol contravariant?

    Definition Classes
    TypeSymbolApi
  15. abstract def isCovariant: Boolean

    Permalink

    Is the type parameter represented by this symbol contravariant?

    Is the type parameter represented by this symbol contravariant?

    Definition Classes
    TypeSymbolApi
  16. abstract def isDerivedValueClass: Boolean

    Permalink

    Does this symbol represent the definition of a custom value class? Namely, is AnyVal among its parent classes?

    Does this symbol represent the definition of a custom value class? Namely, is AnyVal among its parent classes?

    Definition Classes
    ClassSymbolApi
  17. abstract def isExistential: Boolean

    Permalink

    Does this symbol represent an existentially bound type?

    Does this symbol represent an existentially bound type?

    Definition Classes
    TypeSymbolApi
  18. abstract def isFinal: Boolean

    Permalink

    Is this symbol final?

    Is this symbol final?

    Definition Classes
    SymbolApi
  19. abstract def isImplementationArtifact: Boolean

    Permalink

    Does this symbol represent an implementation artifact that isn't meant for public use? Examples of such artifacts are erasure bridges and outer fields.

    Does this symbol represent an implementation artifact that isn't meant for public use? Examples of such artifacts are erasure bridges and outer fields.

    Definition Classes
    SymbolApi
  20. abstract def isImplicit: Boolean

    Permalink

    Does this symbol represent an implicit value, definition, class or parameter?

    Does this symbol represent an implicit value, definition, class or parameter?

    Definition Classes
    SymbolApi
  21. abstract def isJava: Boolean

    Permalink

    Is this symbol defined by Java?

    Is this symbol defined by Java?

    Definition Classes
    SymbolApi
  22. abstract def isMacro: Boolean

    Permalink

    Is this symbol a macro?

    Is this symbol a macro?

    Definition Classes
    SymbolApi
  23. abstract def isNumeric: Boolean

    Permalink

    Does this symbol represent the definition of a numeric value class? Namely, is it one of scala.Double, scala.Float, scala.Long, scala.Int, scala.Char, scala.Short, scala.Byte, scala.Unit or scala.Boolean?

    Does this symbol represent the definition of a numeric value class? Namely, is it one of scala.Double, scala.Float, scala.Long, scala.Int, scala.Char, scala.Short, scala.Byte, scala.Unit or scala.Boolean?

    Definition Classes
    ClassSymbolApi
  24. abstract def isPackage: Boolean

    Permalink

    Does this symbol represent the definition of a package? Known issues: https://issues.scala-lang.org/browse/SI-6732.

    Does this symbol represent the definition of a package? Known issues: https://issues.scala-lang.org/browse/SI-6732.

    Definition Classes
    SymbolApi
  25. abstract def isPackageClass: Boolean

    Permalink

    Does this symbol represent a package class? If yes, isClass is also guaranteed to be true.

    Does this symbol represent a package class? If yes, isClass is also guaranteed to be true.

    Definition Classes
    SymbolApi
  26. abstract def isParameter: Boolean

    Permalink

    Is this symbol a parameter (either a method parameter or a type parameter)?

    Is this symbol a parameter (either a method parameter or a type parameter)?

    Definition Classes
    SymbolApi
  27. abstract def isPrimitive: Boolean

    Permalink

    Does this symbol represent the definition of a primitive class? Namely, is it one of scala.Double, scala.Float, scala.Long, scala.Int, scala.Char, scala.Short, scala.Byte, scala.Unit or scala.Boolean?

    Does this symbol represent the definition of a primitive class? Namely, is it one of scala.Double, scala.Float, scala.Long, scala.Int, scala.Char, scala.Short, scala.Byte, scala.Unit or scala.Boolean?

    Definition Classes
    ClassSymbolApi
  28. abstract def isPrivate: Boolean

    Permalink

    Does this symbol represent a private declaration or definition? If yes, privateWithin might tell more about this symbol's visibility scope.

    Does this symbol represent a private declaration or definition? If yes, privateWithin might tell more about this symbol's visibility scope.

    Definition Classes
    SymbolApi
  29. abstract def isPrivateThis: Boolean

    Permalink

    Does this symbol represent a declaration or definition written in a source file as private[this] or generated in tree/symbol form with the combination of flags LOCAL and PRIVATE? If yes, isPrivate is guaranteed to be true,

    Does this symbol represent a declaration or definition written in a source file as private[this] or generated in tree/symbol form with the combination of flags LOCAL and PRIVATE? If yes, isPrivate is guaranteed to be true,

    Definition Classes
    SymbolApi
  30. abstract def isProtected: Boolean

    Permalink

    Does this symbol represent a protected declaration or definition? If yes, privateWithin might tell more about this symbol's visibility scope.

    Does this symbol represent a protected declaration or definition? If yes, privateWithin might tell more about this symbol's visibility scope.

    Definition Classes
    SymbolApi
  31. abstract def isProtectedThis: Boolean

    Permalink

    Does this symbol represent a declaration or definition written in a source file as protected[this] or generated in tree/symbol form with the combination of flags LOCAL and PROTECTED? If yes, isProtected is guaranteed to be true,

    Does this symbol represent a declaration or definition written in a source file as protected[this] or generated in tree/symbol form with the combination of flags LOCAL and PROTECTED? If yes, isProtected is guaranteed to be true,

    Definition Classes
    SymbolApi
  32. abstract def isPublic: Boolean

    Permalink

    Does this symbol represent a public declaration or definition?

    Does this symbol represent a public declaration or definition?

    Definition Classes
    SymbolApi
  33. abstract def isSealed: Boolean

    Permalink

    Does this symbol represent a sealed class?

    Does this symbol represent a sealed class?

    Definition Classes
    ClassSymbolApi
  34. abstract def isSpecialized: Boolean

    Permalink

    Is this symbol a specialized type parameter or a generated specialized member?

    Is this symbol a specialized type parameter or a generated specialized member?

    Definition Classes
    SymbolApi
  35. abstract def isStatic: Boolean

    Permalink

    Is this symbol static (i.e.

    Is this symbol static (i.e. with no outer instance)? Q: When exactly is a sym marked as STATIC? A: If it's a member of a toplevel object, or of an object contained in a toplevel object, or any number of levels deep. http://groups.google.com/group/scala-internals/browse_thread/thread/d385bcd60b08faf6

    Definition Classes
    SymbolApi
  36. abstract def isSynthetic: Boolean

    Permalink

    Does this symbol represent a synthetic (i.e.

    Does this symbol represent a synthetic (i.e. a compiler-generated) entity? Examples of synthetic entities are accessors for vals and vars or mixin constructors in trait implementation classes.

    Definition Classes
    SymbolApi
  37. abstract def isTrait: Boolean

    Permalink

    Does this symbol represent a trait?

    Does this symbol represent a trait?

    Definition Classes
    ClassSymbolApi
  38. abstract def knownDirectSubclasses: Set[Universe.Symbol]

    Permalink

    If this is a sealed class, its known direct subclasses.

    If this is a sealed class, its known direct subclasses. Otherwise, the empty set.

    Definition Classes
    ClassSymbolApi
  39. abstract def map(f: (Universe.Symbol) ⇒ Universe.Symbol): Universe.Symbol

    Permalink

    If this is a NoSymbol, returns NoSymbol, otherwise returns the result of applying f to this symbol.

    If this is a NoSymbol, returns NoSymbol, otherwise returns the result of applying f to this symbol.

    Definition Classes
    SymbolApi
  40. abstract def module: Universe.Symbol

    Permalink

    The module corresponding to this module class, or NoSymbol if this symbol is not a module class.

    The module corresponding to this module class, or NoSymbol if this symbol is not a module class.

    Definition Classes
    ClassSymbolApi
  41. abstract def name: Symbol.NameType

    Permalink

    The name of the symbol as a member of the Name type.

    The name of the symbol as a member of the Name type.

    Definition Classes
    SymbolApi
  42. abstract def orElse(alt: ⇒ Universe.Symbol): Universe.Symbol

    Permalink

    Provides an alternate if symbol is a NoSymbol.

    Provides an alternate if symbol is a NoSymbol.

    Definition Classes
    SymbolApi
  43. abstract def overrides: List[Universe.Symbol]

    Permalink

    Returns all symbols overridden by this symbol.

    Returns all symbols overridden by this symbol.

    Definition Classes
    SymbolApi
  44. abstract def owner: Universe.Symbol

    Permalink

    The owner of this symbol.

    The owner of this symbol. This is the symbol that directly contains the current symbol's definition. The NoSymbol symbol does not have an owner, and calling this method on one causes an internal error. The owner of the Scala root class scala.reflect.api.Mirror.RootClass and the Scala root object scala.reflect.api.Mirror.RootPackage is NoSymbol. Every other symbol has a chain of owners that ends in scala.reflect.api.Mirror.RootClass.

    Definition Classes
    SymbolApi
  45. abstract def pos: Universe.Position

    Permalink

    Position of the tree.

    Position of the tree.

    Definition Classes
    SymbolApi
  46. abstract def primaryConstructor: Universe.Symbol

    Permalink

    For a Scala class or module class, the primary constructor of the class.

    For a Scala class or module class, the primary constructor of the class. For a Scala trait, its mixin constructor. For a Scala package class, NoSymbol. For a Java class, NoSymbol.

    Known issues: Due to SI-8367, primaryConstructor may return unexpected results when called for Java classes (for some vague definition of a "Java class", which apparently not only includes javac-produced classfiles, but also consists of classes defined in Scala programs under the java.lang package). What's even worse, for some Java classes we can't even guarantee stability of the return value - depending on your classloader configuration and/or JDK version you might get different primaryConstructor for the same ClassSymbol. We have logged these issues at SI-8193.

    Definition Classes
    ClassSymbolApi
  47. abstract def privateWithin: Universe.Symbol

    Permalink

    Set when symbol has a modifier of the form private[X] or protected[X], NoSymbol otherwise.

    Set when symbol has a modifier of the form private[X] or protected[X], NoSymbol otherwise.

    Access level encoding: there are three scala flags (PRIVATE, PROTECTED, and LOCAL) which combine with value privateWithin (the "foo" in private[foo]) to define from where an entity can be accessed. The meanings are as follows:

    PRIVATE access restricted to class only. PROTECTED access restricted to class and subclasses only. LOCAL can only be set in conjunction with PRIVATE or PROTECTED. Further restricts access to the same object instance.

    In addition, privateWithin can be used to set a visibility barrier. When set, everything contained in the named enclosing package or class has access. It is incompatible with PRIVATE or LOCAL, but is additive with PROTECTED (i.e. if either the flags or privateWithin allow access, then it is allowed.)

    The java access levels translate as follows:

    java private: isPrivate && (privateWithin == NoSymbol) java package: !isPrivate && !isProtected && (privateWithin == enclosingPackage) java protected: isProtected && (privateWithin == enclosingPackage) java public: !isPrivate && !isProtected && (privateWithin == NoSymbol)

    Definition Classes
    SymbolApi
  48. abstract def selfType: Universe.Type

    Permalink

    If this symbol is a class or trait, its self type, otherwise the type of the symbol itself.

    If this symbol is a class or trait, its self type, otherwise the type of the symbol itself.

    Definition Classes
    ClassSymbolApi
  49. abstract def suchThat(cond: (Universe.Symbol) ⇒ Boolean): Universe.Symbol

    Permalink

    Does the same as filter, but crashes if there are multiple matches.

    Does the same as filter, but crashes if there are multiple matches.

    Definition Classes
    SymbolApi
  50. abstract def superPrefix(supertpe: Universe.Type): Universe.Type

    Permalink

    The type C.super[M], where C is the current class and M is supertpe.

    The type C.super[M], where C is the current class and M is supertpe.

    Definition Classes
    ClassSymbolApi
  51. abstract def thisPrefix: Universe.Type

    Permalink

    The type C.this, where C is the current class

    The type C.this, where C is the current class

    Definition Classes
    ClassSymbolApi
  52. abstract def toType: Universe.Type

    Permalink

    A type reference that refers to this type symbol Note if symbol is a member of a class, one almost always is interested in asTypeIn with a site type instead.

    A type reference that refers to this type symbol Note if symbol is a member of a class, one almost always is interested in asTypeIn with a site type instead.

    Example: Given a class declaration class C[T] { ... } , that generates a symbol C. Then C.toType is the type C[T].

    By contrast, C.info would be a type signature of form PolyType(ClassInfoType(...)) that describes type parameters, value parameters, parent types, and members of C.

    Definition Classes
    TypeSymbolApi
  53. abstract def toTypeConstructor: Universe.Type

    Permalink

    The type constructor corresponding to this type symbol.

    The type constructor corresponding to this type symbol. This is different from toType in that type parameters are part of results of toType, but not of toTypeConstructor.

    Example: Given a class declaration class C[T] { ... } , that generates a symbol C. Then C.toType is the type C[T], but C.toTypeConstructor is C.

    Definition Classes
    TypeSymbolApi
  54. abstract def toTypeIn(site: Universe.Type): Universe.Type

    Permalink

    A type reference that refers to this type symbol seen as a member of given type site.

    A type reference that refers to this type symbol seen as a member of given type site.

    Definition Classes
    TypeSymbolApi
  55. abstract def typeParams: List[Universe.Symbol]

    Permalink

    For a polymorphic class/trait, its type parameters, the empty list for all other classes/trait

    For a polymorphic class/trait, its type parameters, the empty list for all other classes/trait

    Definition Classes
    ClassSymbolApiTypeSymbolApi
  56. abstract def typeSignature: Universe.Type

    Permalink

    Definition Classes
    SymbolApi
    See also

    info

  57. abstract def typeSignatureIn(site: Universe.Type): Universe.Type

    Permalink

    Definition Classes
    SymbolApi
    See also

    infoIn

  58. abstract def allOverriddenSymbols: List[Universe.Symbol]

    Permalink

    Definition Classes
    SymbolApi
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use overrides instead

    See also

    overrides

  59. abstract def associatedFile: AbstractFile

    Permalink

    Source file if this symbol is created during this compilation run, or a class file if this symbol is loaded from a *.class or *.jar.

    Source file if this symbol is created during this compilation run, or a class file if this symbol is loaded from a *.class or *.jar.

    The return type is scala.reflect.io.AbstractFile, which belongs to an experimental part of Scala reflection. It should not be used unless you know what you are doing. In subsequent releases, this API will be refined and exposed as a part of scala.reflect.api.

    Definition Classes
    SymbolApi
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use pos.source.file instead

  60. abstract def companionSymbol: Universe.Symbol

    Permalink

    For a class: the module or case class factory with the same name in the same package.

    For a class: the module or case class factory with the same name in the same package. For a module: the class with the same name in the same package. For all others: NoSymbol

    This API may return unexpected results for module classes, packages and package classes. Use companion instead in order to get predictable results.

    Definition Classes
    SymbolApi
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use companion instead, but beware of possible changes in behavior

  61. abstract def isAbstractClass: Boolean

    Permalink

    Does this symbol represent an abstract class?

    Does this symbol represent an abstract class?

    Definition Classes
    ClassSymbolApi
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use isAbstract instead

  62. abstract def isAbstractType: Boolean

    Permalink

    Does this symbol represent the definition of an abstract type?

    Does this symbol represent the definition of an abstract type?

    Definition Classes
    TypeSymbolApi
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use isAbstract instead

Concrete Value Members

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

    Permalink

    Test two objects for inequality.

    Test two objects for inequality.

    returns

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

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

    Permalink

    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
  3. final def ==(arg0: Any): Boolean

    Permalink

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    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
    AnyRef → Any
  4. final def asClass: Universe.ClassSymbol

    Permalink

    This symbol cast to a ClassSymbol representing a class or trait.

    This symbol cast to a ClassSymbol representing a class or trait.

    Definition Classes
    ClassSymbolApiSymbolApi
    Exceptions thrown

    ScalaReflectionException if isClass is false.

  5. final def asInstanceOf[T0]: T0

    Permalink

    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.

  6. def asMethod: Universe.MethodSymbol

    Permalink

    This symbol cast to a MethodSymbol.

    This symbol cast to a MethodSymbol.

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isMethod is false.

  7. def asModule: Universe.ModuleSymbol

    Permalink

    This symbol cast to a ModuleSymbol defined by an object definition.

    This symbol cast to a ModuleSymbol defined by an object definition.

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isModule is false.

  8. def asTerm: Universe.TermSymbol

    Permalink

    This symbol cast to a TermSymbol.

    This symbol cast to a TermSymbol.

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isTerm is false.

  9. final def asType: Universe.TypeSymbol

    Permalink

    This symbol cast to a TypeSymbol.

    This symbol cast to a TypeSymbol.

    Definition Classes
    TypeSymbolApiSymbolApi
    Exceptions thrown

    ScalaReflectionException if isType is false.

  10. def clone(): AnyRef

    Permalink

    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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
    Note

    not specified by SLS as a member of AnyRef

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

    Permalink

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

    Tests whether the argument (that) 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
  12. def equals(arg0: Any): Boolean

    Permalink

    The equality method for reference types.

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

    See also equals in scala.Any.

    returns

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

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

    Permalink

    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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
    Note

    not specified by SLS as a member of AnyRef

  14. final def getClass(): Class[_]

    Permalink

    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

  15. def hashCode(): Int

    Permalink

    The hashCode method for reference types.

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

    returns

    the hash code value for this object.

    Definition Classes
    AnyRef → Any
  16. final def isClass: Boolean

    Permalink

    Does this symbol represent the definition of a class or trait? If yes, isType is also guaranteed to be true.

    Does this symbol represent the definition of a class or trait? If yes, isType is also guaranteed to be true.

    Definition Classes
    ClassSymbolApiSymbolApi
  17. final def isInstanceOf[T0]: Boolean

    Permalink

    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
  18. def isMethod: Boolean

    Permalink

    Does this symbol represent the definition of a method? If yes, isTerm is also guaranteed to be true.

    Does this symbol represent the definition of a method? If yes, isTerm is also guaranteed to be true.

    Definition Classes
    SymbolApi
  19. def isModule: Boolean

    Permalink

    Does this symbol represent the definition of a module (i.e.

    Does this symbol represent the definition of a module (i.e. it results from an object definition?). If yes, isTerm is also guaranteed to be true.

    Definition Classes
    SymbolApi
  20. def isModuleClass: Boolean

    Permalink

    Does this symbol represent the definition of a class implicitly associated with an object definition (module class in scala compiler parlance).

    Does this symbol represent the definition of a class implicitly associated with an object definition (module class in scala compiler parlance). If yes, isType is also guaranteed to be true.

    Note to compiler developers: During the "mixin" phase, trait implementation class symbols receive the lateMODULE flag, hence isImplClass && isModuleClass becomes true.

    Definition Classes
    SymbolApi
  21. def isOverloadedMethod: Boolean

    Permalink

    Used to provide a better error message for asMethod

    Used to provide a better error message for asMethod

    Attributes
    protected
    Definition Classes
    SymbolApi
  22. def isTerm: Boolean

    Permalink

    Does this symbol represent the definition of a term? Note that every symbol is either a term or a type.

    Does this symbol represent the definition of a term? Note that every symbol is either a term or a type. So for every symbol sym (except for NoSymbol), either sym.isTerm is true or sym.isType is true.

    Definition Classes
    SymbolApi
  23. final def isType: Boolean

    Permalink

    Does this symbol represent the definition of a type? Note that every symbol is either a term or a type.

    Does this symbol represent the definition of a type? Note that every symbol is either a term or a type. So for every symbol sym (except for NoSymbol), either sym.isTerm is true or sym.isType is true.

    Definition Classes
    TypeSymbolApiSymbolApi
  24. final def ne(arg0: AnyRef): Boolean

    Permalink

    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
  25. final def notify(): Unit

    Permalink

    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

  26. final def notifyAll(): Unit

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink

    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
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Universe.<refinement>

Inherited from Universe.<refinement>

Inherited from Universe.ClassSymbolApi

Inherited from Universe.TypeSymbolApi

Inherited from Universe.SymbolApi

Inherited from AnyRef

Inherited from Any

Class Symbol Members

Method Symbol Members

TypeSymbol Members

Symbol Basic Information

Symbol Type Tests

Symbol Conversions

Iteration Helpers

These methods enable collections-like operations on symbols.

Ungrouped