scala.reflect.internal.Symbols

FreeTermSymbol

class FreeTermSymbol extends TermSymbol with FreeSymbol with FreeTermSymbolApi

The abstract type of free terms introduced by reification

Definition Classes
SymbolsSymbolsSymbols
Source
Symbols.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FreeTermSymbol
  2. FreeTermSymbolApi
  3. FreeTermSymbolBase
  4. FreeSymbol
  5. TermSymbol
  6. TermSymbolApi
  7. TermSymbolBase
  8. Symbol
  9. Annotatable
  10. HasFlags
  11. SymbolContextApiImpl
  12. SymbolContextApi
  13. SymbolApi
  14. HasFlagsApi
  15. SymbolBase
  16. AnyRef
  17. 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

Instance Constructors

  1. new FreeTermSymbol(name0: TermName, value0: ⇒ Any, origin: String)

Type Members

  1. type AccessBoundaryType = Symbol

    Definition Classes
    SymbolHasFlags
  2. type AnnotationType = AnnotationInfo

    Definition Classes
    SymbolHasFlags
  3. final type NameType = TermName

    Term symbols have their names of type TermName.

    Term symbols have their names of type TermName.

    Definition Classes
    TermSymbolBaseSymbolBase
  4. type TypeOfClonedSymbol = TermSymbol

    Definition Classes
    TermSymbolSymbol

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 FreeTermSymbol to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (FreeTermSymbol, B)

    Implicit information
    This member is added by an implicit conversion from FreeTermSymbol to ArrowAssoc[FreeTermSymbol] 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. def abbreviatedKindString: String

    String representation of symbol's kind, suitable for the masses.

    String representation of symbol's kind, suitable for the masses.

    Attributes
    protected[scala]
    Definition Classes
    Symbol
  9. def accessBoundary(base: Symbol): Symbol

    The class or term up to which this symbol is accessible, or RootClass if it is public.

    The class or term up to which this symbol is accessible, or RootClass if it is public. As java protected statics are otherwise completely inaccessible in scala, they are treated as public.

    Definition Classes
    Symbol
  10. def accessString: String

    Definition Classes
    HasFlags
  11. final def accessed(ownerTp: Type): Symbol

    The symbol accessed by this accessor function, but with given owner type.

    The symbol accessed by this accessor function, but with given owner type.

    Definition Classes
    Symbol
  12. final def accessed: Symbol

    The symbol accessed by this accessor (getter or setter) function.

    The symbol accessed by this accessor (getter or setter) function.

    Definition Classes
    Symbol
  13. def accessedOrSelf: Symbol

    If this is an accessor, the accessed symbol.

    If this is an accessor, the accessed symbol. Otherwise, this symbol.

    Definition Classes
    Symbol
  14. final def accurateKindString: String

    Accurate string representation of symbols' kind, suitable for developers.

    Accurate string representation of symbols' kind, suitable for developers.

    Definition Classes
    Symbol
  15. def addAnnotation(sym: Symbol, args: Tree*): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  16. def addAnnotation(annot: AnnotationInfo): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  17. def addChild(sym: Symbol): Unit

    Definition Classes
    Symbol
  18. def alias: Symbol

    For a paramaccessor: a superclass paramaccessor for which this symbol is an alias, NoSymbol for all others.

    For a paramaccessor: a superclass paramaccessor for which this symbol is an alias, NoSymbol for all others.

    Definition Classes
    TermSymbolSymbol
  19. final def allOverriddenSymbols: List[Symbol]

    Returns all symbols overriden by this symbol.

    Returns all symbols overriden by this symbol.

    Definition Classes
    Symbol
  20. def alternatives: List[Symbol]

    Definition Classes
    Symbol
  21. def ancestors: List[Symbol]

    All directly or indirectly inherited classes.

    All directly or indirectly inherited classes.

    Definition Classes
    Symbol
  22. final def andAlso(f: (Symbol) ⇒ Unit): Symbol

    Definition Classes
    Symbol
    Annotations
    @inline()
  23. def annotations: List[AnnotationInfo]

    After the typer phase (before, look at the definition's Modifiers), contains the annotations attached to member a definition (class, method, type, field).

    After the typer phase (before, look at the definition's Modifiers), contains the annotations attached to member a definition (class, method, type, field).

    Definition Classes
    SymbolAnnotatableHasFlags
  24. def annotationsString: String

    Definition Classes
    Symbol
  25. def asClassSymbol: ClassSymbol

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

    This symbol cast to a ClassSymbol representing a class or trait. Returns ClassCastException if isClass is false.

    Definition Classes
    SymbolBase
  26. final def asFreeTermSymbol: FreeTermSymbol

    This symbol cast to a free term symbol.

    This symbol cast to a free term symbol. Returns ClassCastException if isFreeTerm is false.

    Definition Classes
    FreeTermSymbolBaseSymbolBase
  27. def asFreeTypeSymbol: FreeTypeSymbol

    This symbol cast to a free type symbol.

    This symbol cast to a free type symbol. Returns ClassCastException if isFreeType is false.

    Definition Classes
    SymbolBase
  28. 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.

  29. def asMethodSymbol: MethodSymbol

    This symbol cast to a MethodSymbol.

    This symbol cast to a MethodSymbol. Returns ClassCastException if isMethod is false.

    Definition Classes
    SymbolBase
  30. def asModuleSymbol: ModuleSymbol

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

    This symbol cast to a ModuleSymbol defined by an object definition. Returns ClassCastException if isModule is false.

    Definition Classes
    SymbolBase
  31. final def asNameType(n: Name): TermName

    Definition Classes
    TermSymbolSymbol
  32. final def asTermSymbol: TermSymbol

    This symbol cast to a TermSymbol.

    This symbol cast to a TermSymbol. Returns ClassCastException if isTerm is false.

    Definition Classes
    TermSymbolBaseSymbolBase
  33. def asType: Type

    Definition Classes
    SymbolContextApiImpl
  34. def asTypeConstructor: Type

    Definition Classes
    SymbolContextApiImpl
  35. def asTypeIn(site: Type): Type

    Definition Classes
    SymbolContextApiImpl
  36. def asTypeSymbol: TypeSymbol

    This symbol cast to a TypeSymbol.

    This symbol cast to a TypeSymbol. Returns ClassCastException if isType is false.

    Definition Classes
    SymbolBase
  37. def associatedFile: AbstractFileType

    Overridden in ModuleSymbols to delegate to the module class.

    Overridden in ModuleSymbols to delegate to the module class.

    Definition Classes
    Symbol
  38. def associatedFile_=(f: AbstractFileType): Unit

    Definition Classes
    Symbol
  39. final def binaryFile: AbstractFileType

    Definition Classes
    Symbol
  40. def calculateFlagString(basis: Long): String

    Attributes
    protected
    Definition Classes
    HasFlags
  41. final def caseFieldAccessors: List[Symbol]

    For a case class, the symbols of the accessor methods, one for each argument in the first parameter list of the primary constructor.

    For a case class, the symbols of the accessor methods, one for each argument in the first parameter list of the primary constructor. The empty list for all other classes.

    Definition Classes
    Symbol
  42. final def caseModule: Symbol

    The case module corresponding to this case class

    The case module corresponding to this case class

    Definition Classes
    Symbol
  43. def changeNameInOwners(name: Name): Unit

    Attributes
    protected[this]
    Definition Classes
    Symbol
  44. def children: Set[Symbol]

    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
    Symbol
  45. def classBound: Type

    The least proper supertype of a class; includes all parent types and refinement where needed.

    The least proper supertype of a class; includes all parent types and refinement where needed. You need to compute that in a situation like this: { class C extends P { ... } new C }

    Definition Classes
    Symbol
  46. 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

  47. final def cloneSymbol(newOwner: Symbol, newFlags: Long, newName: Name): TypeOfClonedSymbol

    Definition Classes
    Symbol
  48. final def cloneSymbol(newOwner: Symbol, newFlags: Long): TypeOfClonedSymbol

    Definition Classes
    Symbol
  49. final def cloneSymbol(newOwner: Symbol): TypeOfClonedSymbol

    A clone of this symbol, but with given owner.

    A clone of this symbol, but with given owner.

    Definition Classes
    Symbol
  50. final def cloneSymbol: TypeOfClonedSymbol

    A clone of this symbol.

    A clone of this symbol.

    Definition Classes
    Symbol
  51. def cloneSymbolImpl(owner: Symbol, newFlags: Long): TermSymbol

    Internal method to clone a symbol's implementation with the given flags and no info.

    Internal method to clone a symbol's implementation with the given flags and no info.

    Definition Classes
    TermSymbolSymbol
  52. def companionClass: Symbol

    For a module: the class 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 Note: does not work for classes owned by methods, see Namers.companionClassOf

    object Foo . companionClass --> class Foo

    !!! linkedClassOfClass depends on companionClass on the module class getting to the class. As presently implemented this potentially returns class for any symbol except NoSymbol.

    Definition Classes
    Symbol
  53. def companionModule: Symbol

    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 all others: NoSymbol Note: does not work for modules owned by methods, see Namers.companionModuleOf

    class Foo . companionModule --> object Foo

    Definition Classes
    Symbol
  54. def companionSymbol: Symbol

    For a module: its linked class For a plain class: its linked module or case factory.

    For a module: its linked class For a plain class: its linked module or case factory. Note: does not work for modules owned by methods, see Namers.companionSymbolOf

    class Foo <-- companionSymbol --> object Foo

    Definition Classes
    TermSymbolSymbolSymbolApi
  55. final def constrParamAccessors: List[Symbol]

    Definition Classes
    Symbol
  56. final def cookJavaRawInfo(): Unit

    Modify term symbol's type so that a raw type C is converted to an existential C[_]

    Modify term symbol's type so that a raw type C is converted to an existential C[_]

    This is done in checkAccessible and overriding checks in refchecks We can't do this on class loading because it would result in infinite cycles.

    Definition Classes
    Symbol
  57. def copyAttrsFrom(original: TermSymbol): FreeTermSymbol.this.type

    Definition Classes
    TermSymbol
  58. def createAbstractTypeSymbol(name: TypeName, pos: Position, newFlags: Long): AbstractTypeSymbol

    Symbol creation implementations.

    Symbol creation implementations.

    Attributes
    protected
    Definition Classes
    Symbol
  59. def createAliasTypeSymbol(name: TypeName, pos: Position, newFlags: Long): AliasTypeSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  60. def createClassSymbol(name: TypeName, pos: Position, newFlags: Long): ClassSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  61. def createImplClassSymbol(name: TypeName, pos: Position, newFlags: Long): ClassSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  62. def createMethodSymbol(name: TermName, pos: Position, newFlags: Long): MethodSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  63. def createModuleClassSymbol(name: TypeName, pos: Position, newFlags: Long): ModuleClassSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  64. def createModuleSymbol(name: TermName, pos: Position, newFlags: Long): ModuleSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  65. def createPackageClassSymbol(name: TypeName, pos: Position, newFlags: Long): PackageClassSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  66. def createPackageObjectClassSymbol(pos: Position, newFlags: Long): PackageObjectClassSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  67. def createPackageSymbol(name: TermName, pos: Position, newFlags: Long): ModuleSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  68. def createRefinementClassSymbol(pos: Position, newFlags: Long): RefinementClassSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  69. def createTermSymbol(name: TermName, pos: Position, newFlags: Long): TermSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  70. def createTypeSkolemSymbol(name: TypeName, origin: AnyRef, pos: Position, newFlags: Long): TypeSkolem

    Attributes
    protected
    Definition Classes
    Symbol
  71. def createValueMemberSymbol(name: TermName, pos: Position, newFlags: Long): TermSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  72. def createValueParameterSymbol(name: TermName, pos: Position, newFlags: Long): TermSymbol

    Attributes
    protected
    Definition Classes
    Symbol
  73. def deSkolemize: Symbol

    If this symbol is a type parameter skolem (not an existential skolem!) its corresponding type parameter, otherwise this

    If this symbol is a type parameter skolem (not an existential skolem!) its corresponding type parameter, otherwise this

    Definition Classes
    Symbol
  74. def debugFlagString: String

    Definition Classes
    Symbol
  75. def debugLocationString: String

    Definition Classes
    Symbol
  76. def decodedName: String

    The decoded name of the symbol, e.

    The decoded name of the symbol, e.g. == instead of $eq$eq.

    Definition Classes
    Symbol
  77. def defString: String

    String representation of symbol's definition.

    String representation of symbol's definition. It uses the symbol's raw info to avoid forcing types.

    Definition Classes
    Symbol
  78. def defStringSeenAs(info: Type): String

    String representation of symbol's definition, using the supplied info rather than the symbol's.

    String representation of symbol's definition, using the supplied info rather than the symbol's.

    Definition Classes
    Symbol
  79. def deprecatedParamName: Option[TermName]

    Definition Classes
    Symbol
  80. def deprecationMessage: Option[String]

    Definition Classes
    Symbol
  81. def deprecationVersion: Option[String]

    Definition Classes
    Symbol
  82. def doCookJavaRawInfo(): Unit

    Attributes
    protected
    Definition Classes
    TermSymbolSymbol
  83. def effectiveOwner: Symbol

    The owner, skipping package objects.

    The owner, skipping package objects.

    Definition Classes
    Symbol
  84. def elisionLevel: Option[Int]

    Definition Classes
    Symbol
  85. def enclClass: Symbol

    The next enclosing class.

    The next enclosing class.

    Definition Classes
    Symbol
  86. def enclClassChain: List[Symbol]

    Definition Classes
    Symbol
  87. def enclMethod: Symbol

    The next enclosing method.

    The next enclosing method.

    Definition Classes
    Symbol
  88. def enclosingClass: Symbol

    If this symbol is a class, this symbol; otherwise the next enclosing class, or NoSymbol if none exists.

    If this symbol is a class, this symbol; otherwise the next enclosing class, or NoSymbol if none exists.

    Definition Classes
    SymbolBase
  89. def enclosingMethod: Symbol

    If this symbol is a method, this symbol; otherwise the next enclosing method, or NoSymbol if none exists.

    If this symbol is a method, this symbol; otherwise the next enclosing method, or NoSymbol if none exists.

    Definition Classes
    SymbolBase
  90. def enclosingPackage: Symbol

    The package containing this symbol, or NoSymbol if there is not one.

    The package containing this symbol, or NoSymbol if there is not one.

    Definition Classes
    Symbol
  91. def enclosingPackageClass: Symbol

    The package class containing this symbol, or NoSymbol if there is not one.

    The package class containing this symbol, or NoSymbol if there is not one. TODO: formulate as enclosingSuchThat, after making sure we can start with current symbol rather than onwner. TODO: Also harmonize with enclClass, enclMethod etc.

    Definition Classes
    SymbolSymbolApi
  92. def enclosingRootClass: Symbol

    The package class containing this symbol, or NoSymbol if there is not one.

    The package class containing this symbol, or NoSymbol if there is not one.

    Definition Classes
    Symbol
  93. final def enclosingSuchThat(p: (Symbol) ⇒ Boolean): Symbol

    Definition Classes
    Symbol
    Annotations
    @inline()
  94. def enclosingTopLevelClass: Symbol

    The top-level class containing this symbol.

    The top-level class containing this symbol.

    Definition Classes
    SymbolSymbolApi
  95. def encodedName: String

    The name of the symbol before decoding, e.

    The name of the symbol before decoding, e.g. $eq$eq instead of ==.

    Definition Classes
    Symbol
  96. def ensuring(cond: (FreeTermSymbol) ⇒ Boolean, msg: ⇒ Any): FreeTermSymbol

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

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

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

    Implicit information
    This member is added by an implicit conversion from FreeTermSymbol to Ensuring[FreeTermSymbol] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  100. 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
  101. 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
  102. def existentialBound: TypeBounds

    If we quantify existentially over this symbol, the bound of the type variable that stands for it pre: symbol is a term, a class, or an abstract type (no alias type allowed)

    If we quantify existentially over this symbol, the bound of the type variable that stands for it pre: symbol is a term, a class, or an abstract type (no alias type allowed)

    Definition Classes
    TermSymbolSymbol
  103. def existentialToString: String

    String representation of existentially bound variable

    String representation of existentially bound variable

    Definition Classes
    Symbol
  104. def exists: Boolean

    Definition Classes
    Symbol
  105. def expandName(base: Symbol): Unit

    change name by appending $$<fully-qualified-name-of-class base> Do the same for any accessed symbols or setters/getters

    change name by appending $$<fully-qualified-name-of-class base> Do the same for any accessed symbols or setters/getters

    Definition Classes
    TermSymbolSymbol
  106. final def extendedOverriddenSymbols: List[Symbol]

    Returns all symbols overridden by this symbol, plus all matching symbols defined in parents of the selftype.

    Returns all symbols overridden by this symbol, plus all matching symbols defined in parents of the selftype.

    Definition Classes
    Symbol
  107. def filter(cond: (Symbol) ⇒ Boolean): Symbol

    .

    ...

    Definition Classes
    SymbolSymbolApi
  108. def filterAnnotations(p: (AnnotationInfo) ⇒ Boolean): FreeTermSymbol.this.type

    Definition Classes
    SymbolAnnotatable
  109. 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

  110. def firstParam: Symbol

    The first parameter to the first argument list of this method, or NoSymbol if inapplicable.

    The first parameter to the first argument list of this method, or NoSymbol if inapplicable.

    Definition Classes
    Symbol
  111. def firstParamAccessor: Symbol

    Return the accessor method of the first parameter of this class.

    Return the accessor method of the first parameter of this class. or NoSymbol if it does not exist.

    Definition Classes
    Symbol
  112. def flagBitsToString(bits: Long): String

    Definition Classes
    HasFlags
  113. def flagMask: Long

    The default mask determining which flags to display.

    The default mask determining which flags to display.

    Definition Classes
    SymbolHasFlags
  114. def flagString(mask: Long): String

    Definition Classes
    HasFlags
  115. def flagString: String

    The printable representation of this entity's flags and access boundary, restricted to flags in the given mask.

    The printable representation of this entity's flags and access boundary, restricted to flags in the given mask.

    Definition Classes
    HasFlags
  116. final def flags: Long

    Though both Symbol and Modifiers widen this method to public, it's defined protected here to give us the option in the future to route flag methods through accessors and disallow raw flag manipulation.

    Though both Symbol and Modifiers widen this method to public, it's defined protected here to give us the option in the future to route flag methods through accessors and disallow raw flag manipulation. And after that, perhaps, on some magical day: a typesafe enumeration.

    Definition Classes
    SymbolHasFlagsHasFlagsApi
  117. def flagsExplanationString: String

    Definition Classes
    Symbol
  118. def flags_=(fs: Long): Unit

    Definition Classes
    Symbol
  119. final def flatOwnerInfo: Type

    Returns the rawInfo of the owner.

    Returns the rawInfo of the owner. If the current phase has flat classes, it first applies all pending type maps to this symbol.

    assume this is the ModuleSymbol for B in the following definition: package p { class A { object B { val x = 1 } } }

    The owner after flatten is "package p" (see "def owner"). The flatten type map enters symbol B in the decls of p. So to find a linked symbol ("object B" or "class B") we need to apply flatten to B first. Fixes #2470.

    Attributes
    protected
    Definition Classes
    Symbol
  120. 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 FreeTermSymbol to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  121. final def freshExistential(suffix: String): TypeSymbol

    Definition Classes
    Symbol
  122. def fullLocationString: String

    Definition Classes
    Symbol
  123. final def fullName: String

    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
    SymbolSymbolBase
  124. final def fullName(separator: Char): String

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

    The encoded full path name of this symbol, where outer names and inner names are separated by separator characters. Never translates expansions of operators back to operator symbol. Never adds id. Drops package objects.

    Definition Classes
    Symbol
  125. def fullNameAsName(separator: Char): Name

    Definition Classes
    Symbol
  126. def fullNameString: String

    Definition Classes
    Symbol
  127. def getAnnotation(cls: Symbol): Option[AnnotationInfo]

    Definition Classes
    Annotatable
  128. def getAnnotations: List[AnnotationInfo]

    A list of annotations attached to this Symbol.

    A list of annotations attached to this Symbol.

    Definition Classes
    SymbolContextApiImplSymbolApi
  129. 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

  130. final def getFlag(mask: Long): Long

    Definition Classes
    Symbol
    Annotations
    @inline()
  131. final def getter(base: Symbol): Symbol

    The getter of this value or setter definition in class base, or NoSymbol if none exists.

    The getter of this value or setter definition in class base, or NoSymbol if none exists.

    Definition Classes
    Symbol
  132. def getterName: TermName

    Definition Classes
    Symbol
  133. def hasAbstractFlag: Boolean

    Definition Classes
    HasFlags
  134. final def hasAccessBoundary: Boolean

    Does symbol have a private or protected qualifier set?

    Does symbol have a private or protected qualifier set?

    Definition Classes
    SymbolHasFlags
  135. def hasAccessorFlag: Boolean

    Definition Classes
    HasFlags
  136. final def hasAllFlags(mask: Long): Boolean

    Does symbol have ALL the flags in mask set?

    Does symbol have ALL the flags in mask set?

    Definition Classes
    SymbolHasFlagsHasFlagsApi
    Annotations
    @inline()
  137. def hasAnnotation(cls: Symbol): Boolean

    Test for, get, or remove an annotation

    Test for, get, or remove an annotation

    Definition Classes
    Annotatable
  138. def hasBridgeAnnotation: Boolean

    Definition Classes
    Symbol
  139. def hasCompleteInfo: Boolean

    Definition Classes
    Symbol
  140. def hasDefault: Boolean

    Definition Classes
    TermSymbolSymbolHasFlags
  141. final def hasFlag(mask: Long): Boolean

    Does symbol have ANY flag in mask set?

    Does symbol have ANY flag in mask set?

    Definition Classes
    SymbolHasFlagsHasFlagsApi
    Annotations
    @inline()
  142. final def hasGetter: Boolean

    Definition Classes
    Symbol
  143. def hasLocalFlag: Boolean

    Definition Classes
    HasFlags
  144. def hasMeaninglessName: Boolean

    If the name of the symbol's owner should be used when you care about seeing an interesting name: in such cases this symbol is e.

    If the name of the symbol's owner should be used when you care about seeing an interesting name: in such cases this symbol is e.g. a method parameter with a synthetic name, a constructor named "this", an object "package", etc. The kind string, if non-empty, will be phrased relative to the name of the owner.

    Definition Classes
    Symbol
  145. def hasMigrationAnnotation: Boolean

    Definition Classes
    Symbol
  146. def hasModuleFlag: Boolean

    Definition Classes
    HasFlags
  147. def hasNoFlags(mask: Long): Boolean

    Whether this entity has NONE of the flags in the given mask.

    Whether this entity has NONE of the flags in the given mask.

    Definition Classes
    HasFlags
  148. def hasPackageFlag: Boolean

    Definition Classes
    HasFlags
  149. def hasParamWhich(cond: (Symbol) ⇒ Boolean): Boolean

    Definition Classes
    Symbol
  150. def hasRawInfo: Boolean

    Definition Classes
    Symbol
  151. def hasStableFlag: Boolean

    Definition Classes
    HasFlags
  152. def hasStaticFlag: Boolean

    Definition Classes
    HasFlags
  153. def hasTransOwner(sym: Symbol): Boolean

    Same as ownerChain contains sym but more efficient, and with a twist for refinement classes (see RefinementClassSymbol.

    Same as ownerChain contains sym but more efficient, and with a twist for refinement classes (see RefinementClassSymbol.)

    Definition Classes
    Symbol
  154. final def hasTypeAt(pid: Int): Boolean

    Was symbol's type updated during given phase?

    Was symbol's type updated during given phase?

    Definition Classes
    Symbol
  155. 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
  156. val id: Int

    An id number which is unique for all symbols in this universe

    An id number which is unique for all symbols in this universe

    Definition Classes
    SymbolSymbolBase
  157. final def idString: String

    If settings.

    If settings.uniqid is set, the symbol's id, else ""

    Definition Classes
    Symbol
  158. final def implClass: Symbol

    The implementation class of a trait.

    The implementation class of a trait. If available it will be the symbol with the same owner, and the name of this symbol with $class appended to it.

    Definition Classes
    Symbol
  159. def implicitNotFoundMsg: Option[String]

    Definition Classes
    Symbol
  160. def info: Type

    Get type info associated with symbol at current phase, after ensuring that symbol is initialized (i.

    Get type info associated with symbol at current phase, after ensuring that symbol is initialized (i.e. type is completed).

    Definition Classes
    Symbol
  161. final def infoString(tp: Type): String

    String representation of symbol's definition following its name

    String representation of symbol's definition following its name

    Definition Classes
    Symbol
  162. def info_=(info: Type): Unit

    Definition Classes
    Symbol
  163. def infosString: String

    Definition Classes
    Symbol
  164. def initFlags(mask: Long): FreeTermSymbol.this.type

    Set the symbol's flags to the given value, asserting that the previous value was 0.

    Set the symbol's flags to the given value, asserting that the previous value was 0.

    Definition Classes
    Symbol
  165. final def initialize: FreeTermSymbol.this.type

    Initialize the symbol

    Initialize the symbol

    Definition Classes
    Symbol
  166. def isAbstractClass: Boolean

    These are all tests for varieties of ClassSymbol, which has these subclasses:

    These are all tests for varieties of ClassSymbol, which has these subclasses:

    • ModuleClassSymbol
    • RefinementClassSymbol
    • PackageClassSymbol (extends ModuleClassSymbol)
    Definition Classes
    Symbol
  167. def isAbstractOverride: Boolean

    Definition Classes
    HasFlags
  168. def isAbstractType: Boolean

    Does this symbol represent the definition of an abstract type? If yes, isType is also guaranteed to be true.

    Does this symbol represent the definition of an abstract type? If yes, isType is also guaranteed to be true.

    Definition Classes
    SymbolSymbolApi
  169. def isAccessor: Boolean

    Qualities of Terms, always false for TypeSymbols.

    Qualities of Terms, always false for TypeSymbols.

    Definition Classes
    TermSymbolSymbolSymbolApi
  170. def isAliasType: Boolean

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

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

    Definition Classes
    SymbolSymbolApi
  171. def isAnonOrRefinementClass: Boolean

    Definition Classes
    Symbol
  172. def isAnonymousClass: Boolean

    Definition Classes
    Symbol
  173. final def isAnonymousFunction: Boolean

    Definition Classes
    Symbol
  174. def isAnyOverride: Boolean

    Definition Classes
    HasFlags
  175. final def isAuxiliaryConstructor: Boolean

    Does this symbol denote an auxiliary constructor of its enclosing class?

    Does this symbol denote an auxiliary constructor of its enclosing class?

    Definition Classes
    Symbol
  176. def isBottomClass: Boolean

    The bottom classes are Nothing and Null, found in Definitions.

    The bottom classes are Nothing and Null, found in Definitions.

    Definition Classes
    Symbol
  177. def isBridge: Boolean

    Definition Classes
    TermSymbolSymbol
  178. def isCapturedVariable: Boolean

    Definition Classes
    TermSymbolSymbol
  179. def isCase: Boolean

    Definition Classes
    HasFlags
  180. def isCaseAccessor: Boolean

    Definition Classes
    HasFlags
  181. def isCaseAccessorMethod: Boolean

    Qualities of MethodSymbols, always false for TypeSymbols and other TermSymbols.

    Qualities of MethodSymbols, always false for TypeSymbols and other TermSymbols.

    Definition Classes
    Symbol
  182. final def isCaseApplyOrUnapply: Boolean

    Is this symbol a synthetic apply or unapply method in a companion object of a case class?

    Is this symbol a synthetic apply or unapply method in a companion object of a case class?

    Definition Classes
    Symbol
  183. def isCaseClass: Boolean

    Definition Classes
    Symbol
  184. def isClass: Boolean

    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
    SymbolBase
  185. def isClassConstructor: Boolean

    Definition Classes
    TermSymbolSymbol
  186. def isClassLocalToConstructor: Boolean

    Definition Classes
    Symbol
  187. def isCoDefinedWith(that: Symbol): Boolean

    Is this symbol defined in the same scope and compilation unit as that symbol?

    Is this symbol defined in the same scope and compilation unit as that symbol?

    Definition Classes
    Symbol
  188. def isConcreteClass: Boolean

    Definition Classes
    Symbol
  189. final def isConstant: Boolean

    Is this symbol a constant?

    Is this symbol a constant?

    Definition Classes
    Symbol
  190. def isConstructor: Boolean

    Definition Classes
    TermSymbolSymbol
  191. def isContravariant: Boolean

    Qualities of Types, always false for TermSymbols.

    Qualities of Types, always false for TermSymbols.

    Definition Classes
    Symbol
  192. def isCovariant: Boolean

    Definition Classes
    Symbol
  193. def isDeferred: Boolean

    Definition Classes
    HasFlags
  194. final def isDefinedInPackage: Boolean

    Definition Classes
    Symbol
  195. def isDeprecated: Boolean

    Definition Classes
    Symbol
  196. final def isDerivedValueClass: Boolean

    Does this symbol represent the definition of a custom value class? Namely, is AnyVal among its parent classes? TODO: Why not just have in reflect.

    Does this symbol represent the definition of a custom value class? Namely, is AnyVal among its parent classes? TODO: Why not just have in reflect.internal? [Eugene++] because it's useful for macros

    Definition Classes
    SymbolSymbolApi
  197. def isEarlyInitialized: Boolean

    Definition Classes
    TermSymbolSymbol
  198. def isEffectiveRoot: Boolean

    Is this symbol an effective root for fullname string?

    Is this symbol an effective root for fullname string?

    Definition Classes
    Symbol
  199. final def isEffectivelyFinal: Boolean

    Is this symbol effectively final? I.

    Is this symbol effectively final? I.e, it cannot be overridden

    Definition Classes
    Symbol
  200. def isEmptyPackage: Boolean

    Definition Classes
    Symbol
  201. def isEmptyPackageClass: Boolean

    Definition Classes
    Symbol
  202. def isEmptyPrefix: Boolean

    Definition Classes
    Symbol
  203. final def isErroneous: Boolean

    Does this symbol or its underlying type represent a typechecking error?

    Does this symbol or its underlying type represent a typechecking error?

    Definition Classes
    SymbolSymbolApi
  204. final def isError: Boolean

    Definition Classes
    Symbol
  205. def isExistential: Boolean

    Does this symbol represent an existentially bound type? If yes, isType is also guaranteed to be true.

    Does this symbol represent an existentially bound type? If yes, isType is also guaranteed to be true.

    Definition Classes
    SymbolContextApiImplSymbolApi
  206. def isExistentialQuantified: Boolean

    Definition Classes
    Symbol
  207. def isExistentialSkolem: Boolean

    Definition Classes
    Symbol
  208. def isExistentiallyBound: Boolean

    Definition Classes
    Symbol
  209. def isFBounded: Boolean

    Definition Classes
    Symbol
  210. def isFinal: Boolean

    Definition Classes
    HasFlags
  211. final def isFreeTerm: Boolean

    Does this symbol represent a free term captured by reification? If yes, isTerm is also guaranteed to be true.

    Does this symbol represent a free term captured by reification? If yes, isTerm is also guaranteed to be true.

    Definition Classes
    FreeTermSymbolBaseSymbolBase
  212. def isFreeType: Boolean

    Does this symbol represent a free type captured by reification? If yes, isType is also guaranteed to be true.

    Does this symbol represent a free type captured by reification? If yes, isType is also guaranteed to be true.

    Definition Classes
    SymbolBase
  213. def isGADTSkolem: Boolean

    Definition Classes
    Symbol
  214. def isGetter: Boolean

    Does this symbol represent a getter of a field? If yes, isTerm and isMethod are also guaranteed to be true.

    Does this symbol represent a getter of a field? If yes, isTerm and isMethod are also guaranteed to be true.

    Definition Classes
    TermSymbolSymbolSymbolApi
  215. def isHigherOrderTypeParameter: Boolean

    Definition Classes
    Symbol
  216. def isImplClass: Boolean

    Definition Classes
    Symbol
  217. final def isImplOnly: Boolean

    Is this a symbol which exists only in the implementation class, not in its trait?

    Is this a symbol which exists only in the implementation class, not in its trait?

    Definition Classes
    Symbol
  218. def isImplicit: Boolean

    Definition Classes
    HasFlags
  219. def isInDefaultNamespace: Boolean

    Definition Classes
    Symbol
  220. final def isIncompleteIn(base: Symbol): Boolean

    A a member of class base is incomplete if (1) it is declared deferred or (2) it is abstract override and its super symbol in base is nonexistent or incomplete.

    A a member of class base is incomplete if (1) it is declared deferred or (2) it is abstract override and its super symbol in base is nonexistent or incomplete.

    base

    ...

    returns

    ...

    Definition Classes
    Symbol
  221. final def isInitialized: Boolean

    Definition Classes
    Symbol
  222. final def isInitializedToDefault: Boolean

    Definition Classes
    Symbol
  223. 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
  224. def isInterface: Boolean

    Definition Classes
    HasFlags
  225. final def isInterpreterWrapper: Boolean

    Does this symbol denote a wrapper created by the repl?

    Does this symbol denote a wrapper created by the repl?

    Definition Classes
    Symbol
  226. def isJavaDefined: Boolean

    Definition Classes
    HasFlags
  227. def isJavaInterface: Boolean

    Definition Classes
    Symbol
  228. def isLabel: Boolean

    Definition Classes
    SymbolHasFlags
  229. def isLazy: Boolean

    Definition Classes
    HasFlags
  230. final def isLazyAccessor: Boolean

    Definition Classes
    Symbol
  231. final def isLess(that: Symbol): Boolean

    A total ordering between symbols that refines the class inheritance graph (i.

    A total ordering between symbols that refines the class inheritance graph (i.e. subclass.isLess(superclass) always holds). the ordering is given by: (_.isType, -_.baseTypeSeq.length) for type symbols, followed by id.

    Definition Classes
    Symbol
  232. def isLessAccessibleThan(other: Symbol): Boolean

    Definition Classes
    Symbol
  233. def isLifted: Boolean

    Definition Classes
    HasFlags
  234. def isLiftedMethod: Boolean

    Definition Classes
    Symbol
  235. final def isLocal: Boolean

    Is this symbol locally defined? I.

    Is this symbol locally defined? I.e. not accessed from outside this instance

    Definition Classes
    Symbol
  236. def isLocalClass: Boolean

    Is this class locally defined? A class is local, if

    Is this class locally defined? A class is local, if

    • it is anonymous, or
    • its owner is a value
    • it is defined within a local class
    Definition Classes
    Symbol
  237. def isLocalDummy: Boolean

    Definition Classes
    TermSymbolSymbol
  238. final def isLocatable: Boolean

    Determines whether this symbol can be loaded by subsequent reflective compilation

    Determines whether this symbol can be loaded by subsequent reflective compilation

    Definition Classes
    SymbolSymbolApi
  239. def isMemberOf(clazz: Symbol): Boolean

    Is this symbol a member of class clazz?

    Is this symbol a member of class clazz?

    Definition Classes
    Symbol
  240. def isMethod: Boolean

    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
    TermSymbolSymbolBase
  241. final def isMethodWithExtension: Boolean

    Definition Classes
    Symbol
  242. def isMixinConstructor: Boolean

    Definition Classes
    TermSymbolSymbol
  243. def isModule: Boolean

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

    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
    TermSymbolSymbolBase
  244. def isModuleClass: Boolean

    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.

    Definition Classes
    SymbolBase
  245. def isModuleOrModuleClass: Boolean

    Definition Classes
    Symbol
  246. final def isModuleVar: Boolean

    Definition Classes
    Symbol
  247. final def isMonomorphicType: Boolean

    Is symbol a monomorphic type? assumption: if a type starts out as monomorphic, it will not acquire type parameters in later phases.

    Is symbol a monomorphic type? assumption: if a type starts out as monomorphic, it will not acquire type parameters in later phases.

    Definition Classes
    Symbol
  248. def isMutable: Boolean

    Definition Classes
    HasFlags
  249. def isNestedClass: Boolean

    Is this class nested in another class or module (not a package)?

    Is this class nested in another class or module (not a package)?

    Definition Classes
    Symbol
  250. final def isNestedIn(that: Symbol): Boolean

    A partial ordering between symbols.

    A partial ordering between symbols. (this isNestedIn that) holds iff this symbol is defined within a class or method defining that symbol

    Definition Classes
    Symbol
  251. def isNonBottomSubClass(that: Symbol): Boolean

    Is this class symbol a subclass of that symbol, and is this class symbol also different from Null or Nothing?

    Is this class symbol a subclass of that symbol, and is this class symbol also different from Null or Nothing?

    Definition Classes
    Symbol
  252. def isNonClassType: Boolean

    A Type, but not a Class.

    A Type, but not a Class.

    Definition Classes
    Symbol
  253. final def isNumericSubClass(that: Symbol): Boolean

    Definition Classes
    Symbol
  254. def isNumericValueClass: Boolean

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

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

    Definition Classes
    SymbolSymbolApi
  255. final def isOmittablePrefix: Boolean

    Conditions where we omit the prefix when printing a symbol, to avoid unpleasantries like Predef.

    Conditions where we omit the prefix when printing a symbol, to avoid unpleasantries like Predef.String, $iw.$iw.Foo and <empty>.Bippy.

    Definition Classes
    Symbol
  256. def isOnlyRefinementMember: Boolean

    Is this a term symbol only defined in a refinement (so that it needs to be accessed by reflection)?

    Is this a term symbol only defined in a refinement (so that it needs to be accessed by reflection)?

    Definition Classes
    Symbol
  257. final def isOuterAccessor: Boolean

    Is this symbol an accessor method for outer?

    Is this symbol an accessor method for outer?

    Definition Classes
    Symbol
  258. final def isOuterField: Boolean

    Is this symbol an accessor method for outer?

    Is this symbol an accessor method for outer?

    Definition Classes
    Symbol
  259. def isOverloaded: Boolean

    Is this symbol an overloaded method?

    Is this symbol an overloaded method?

    Definition Classes
    TermSymbolSymbolSymbolApi
  260. final def isOverridableMember: Boolean

    Definition Classes
    Symbol
  261. def isOverride: Boolean

    Definition Classes
    HasFlags
  262. def isOverridingSymbol: Boolean

    Equivalent to allOverriddenSymbols.

    Equivalent to allOverriddenSymbols.nonEmpty, but more efficient.

    Definition Classes
    Symbol
  263. def isPackage: Boolean

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

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

    Definition Classes
    TermSymbolHasFlagsSymbolApi
  264. def isPackageClass: Boolean

    Package/package object tests

    Package/package object tests

    Definition Classes
    SymbolSymbolApi
  265. def isPackageObject: Boolean

    Definition Classes
    TermSymbolSymbol
  266. def isPackageObjectClass: Boolean

    Definition Classes
    Symbol
  267. def isPackageObjectOrClass: Boolean

    Definition Classes
    Symbol
  268. def isParamAccessor: Boolean

    Definition Classes
    HasFlags
  269. final def isPossibleInRefinement: Boolean

    Definition Classes
    Symbol
  270. final def isPrimaryConstructor: Boolean

    Does this symbol denote the primary constructor of its enclosing class?

    Does this symbol denote the primary constructor of its enclosing class?

    Definition Classes
    Symbol
  271. def isPrimitiveValueClass: Boolean

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

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

    Definition Classes
    SymbolSymbolApi
  272. def isPrivate: Boolean

    Definition Classes
    HasFlags
  273. def isPrivateLocal: Boolean

    Definition Classes
    HasFlags
  274. def isProtected: Boolean

    Definition Classes
    HasFlags
  275. def isProtectedLocal: Boolean

    Definition Classes
    HasFlags
  276. def isPublic: Boolean

    Definition Classes
    HasFlags
  277. def isRefinementClass: Boolean

    Definition Classes
    Symbol
  278. def isRoot: Boolean

    Overridden in custom objects in Definitions

    Overridden in custom objects in Definitions

    Definition Classes
    Symbol
  279. def isRootPackage: Boolean

    Definition Classes
    Symbol
  280. def isRootSymbol: Boolean

    Definition Classes
    Symbol
  281. def isSealed: Boolean

    Definition Classes
    HasFlags
  282. def isSerializable: Boolean

    Definition Classes
    Symbol
  283. def isSetter: Boolean

    Does this symbol represent a setter of a field? If yes, isTerm and isMethod are also guaranteed to be true.

    Does this symbol represent a setter of a field? If yes, isTerm and isMethod are also guaranteed to be true.

    Definition Classes
    TermSymbolSymbolSymbolApi
  284. def isSetterParameter: Boolean

    Definition Classes
    TermSymbolSymbol
  285. def isSingletonExistential: Boolean

    Definition Classes
    Symbol
  286. def isSkolem: Boolean

    Definition Classes
    Symbol
  287. def isSourceMethod: Boolean

    Definition Classes
    Symbol
  288. def isSpecialized: Boolean

    Definition Classes
    Symbol
  289. def isStable: Boolean

    Does this symbol denote a stable value?

    Does this symbol denote a stable value?

    Definition Classes
    TermSymbolSymbolSymbolApi
  290. def isStableClass: Boolean

    Definition Classes
    Symbol
  291. def isStatic: Boolean

    Is this symbol static (i.

    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
    SymbolSymbolApi
  292. final def isStaticConstructor: Boolean

    Is this symbol a static constructor?

    Is this symbol a static constructor?

    Definition Classes
    Symbol
  293. final def isStaticMember: Boolean

    Is this symbol a static member of its class? (i.

    Is this symbol a static member of its class? (i.e. needs to be implemented as a Java static?)

    Definition Classes
    Symbol
  294. final def isStaticModule: Boolean

    Definition Classes
    Symbol
  295. final def isStaticOwner: Boolean

    Does this symbol denote a class that defines static symbols?

    Does this symbol denote a class that defines static symbols?

    Definition Classes
    Symbol
  296. def isStrictFP: Boolean

    Definition Classes
    Symbol
  297. final def isStructuralRefinement: Boolean

    Is this class or type defined as a structural refinement type?

    Is this class or type defined as a structural refinement type?

    Definition Classes
    Symbol
  298. final def isStructuralRefinementMember: Boolean

    Definition Classes
    Symbol
  299. def isSubClass(that: Symbol): Boolean

    Overridden in NullClass and NothingClass for custom behavior.

    Overridden in NullClass and NothingClass for custom behavior.

    Definition Classes
    Symbol
  300. def isSuperAccessor: Boolean

    Definition Classes
    HasFlags
  301. def isSynthetic: Boolean

    Definition Classes
    HasFlags
  302. final def isTerm: Boolean

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

    Does this symbol represent the definition of a term? Note that every symbol is either a term or a term. So for every symbol sym, either sym.isTerm is true or sym.isTerm is true.

    Definition Classes
    TermSymbolBaseSymbolBase
  303. def isTermMacro: Boolean

    Definition Classes
    TermSymbolSymbol
  304. final def isThisSym: Boolean

    Definition Classes
    Symbol
  305. def isTopLevelModule: Boolean

    Definition Classes
    Symbol
  306. def isTrait: Boolean

    Definition Classes
    SymbolHasFlags
  307. def isType: Boolean

    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, either sym.isTerm is true or sym.isType is true.

    Definition Classes
    SymbolBase
  308. def isTypeMacro: Boolean

    Definition Classes
    Symbol
  309. def isTypeParameter: Boolean

    Definition Classes
    Symbol
  310. def isTypeParameterOrSkolem: Boolean

    Definition Classes
    Symbol
  311. def isTypeSkolem: Boolean

    Definition Classes
    Symbol
  312. final def isUpdatedAt(pid: Int): Boolean

    Was symbol's type updated during given phase?

    Was symbol's type updated during given phase?

    Definition Classes
    Symbol
  313. def isValue: Boolean

    Term symbols with the exception of static parts of Java classes and packages.

    Term symbols with the exception of static parts of Java classes and packages.

    Definition Classes
    TermSymbolSymbolSymbolApi
  314. def isValueParameter: Boolean

    Definition Classes
    TermSymbolSymbol
  315. def isVarargsMethod: Boolean

    Definition Classes
    Symbol
  316. def isVariable: Boolean

    Does this symbol represent a mutable value? If yes, isTerm and isValue are also guaranteed to be true.

    Does this symbol represent a mutable value? If yes, isTerm and isValue are also guaranteed to be true.

    Definition Classes
    TermSymbolSymbolSymbolApi
  317. final def isWeakSubClass(that: Symbol): Boolean

    Definition Classes
    Symbol
  318. def javaBinaryName: Name

    Definition Classes
    Symbol
  319. def javaClassName: String

    Definition Classes
    Symbol
  320. def javaSimpleName: Name

    These should be moved somewhere like JavaPlatform.

    These should be moved somewhere like JavaPlatform.

    Definition Classes
    Symbol
  321. final def keyString: String

    String representation of symbol's definition key word

    String representation of symbol's definition key word

    Definition Classes
    Symbol
  322. def kind: String

    The string discriminator of this symbol; useful for debugging

    The string discriminator of this symbol; useful for debugging

    Definition Classes
    SymbolContextApiImplSymbolApi
  323. final def kindString: String

    Definition Classes
    Symbol
  324. def lazyAccessor: Symbol

    For a lazy value, its lazy accessor.

    For a lazy value, its lazy accessor. NoSymbol for all others.

    Definition Classes
    TermSymbolSymbol
  325. def lazyAccessorOrSelf: Symbol

    If this is a lazy value, the lazy accessor; otherwise this symbol.

    If this is a lazy value, the lazy accessor; otherwise this symbol.

    Definition Classes
    Symbol
  326. def linkedClassOfClass: Symbol

    For a module class: its linked class For a plain class: the module class of its linked module.

    For a module class: its linked class For a plain class: the module class of its linked module.

    class Foo <-- linkedClassOfClass --> class Foo$

    Definition Classes
    Symbol
  327. def locationString: String

    String representation of location, plus a preposition.

    String representation of location, plus a preposition. Doesn't do much, for backward compatibility reasons.

    Definition Classes
    Symbol
  328. def logicallyEnclosingMember: Symbol

    The method or class which logically encloses the current symbol.

    The method or class which logically encloses the current symbol. If the symbol is defined in the initialization part of a template this is the template's primary constructor, otherwise it is the physically enclosing method or class.

    Example 1:

    def f() { val x = { def g() = ...; g() } }

    In this case the owner chain of g is x, followed by f and g.logicallyEnclosingMember == f.

    Example 2:

    class C { def <init> = { ... } val x = { def g() = ...; g() } } }

    In this case the owner chain of g is x, followed by C but g.logicallyEnclosingMember is the primary constructor symbol <init> (or, for traits: $init) of C.

    Definition Classes
    Symbol
  329. final def makeNotPrivate(base: Symbol): Unit

    Remove private modifier from symbol syms definition.

    Remove private modifier from symbol syms definition. If sym is a is not a constructor nor a static module rename it by expanding its name to avoid name clashes

    base

    the fully qualified name of this class will be appended if name expansion is needed

    Definition Classes
    Symbol
  330. def makePublic: Symbol

    Remove any access boundary and clear flags PROTECTED | PRIVATE.

    Remove any access boundary and clear flags PROTECTED | PRIVATE.

    Definition Classes
    Symbol
  331. def makeSerializable(): Unit

    Adds the interface scala.

    Adds the interface scala.Serializable to the parents of a ClassInfoType. Note that the tree also has to be updated accordingly.

    Definition Classes
    Symbol
  332. final def map(f: (Symbol) ⇒ Symbol): Symbol

    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
    SymbolSymbolApi
    Annotations
    @inline()
  333. final def matchingSymbol(site: Type, admit: Long = 0L): Symbol

    The non-private member of site whose type and name match the type of this symbol.

    The non-private member of site whose type and name match the type of this symbol.

    Definition Classes
    Symbol
  334. final def matchingSymbol(ofclazz: Symbol, site: Type): Symbol

    The non-private symbol whose type matches the type of this symbol in in given class.

    The non-private symbol whose type matches the type of this symbol in in given class.

    ofclazz

    The class containing the symbol's definition

    site

    The base type from which member types are computed

    Definition Classes
    Symbol
  335. def migrationMessage: Option[String]

    Definition Classes
    Symbol
  336. def migrationVersion: Option[String]

    Definition Classes
    Symbol
  337. def mixinClasses: List[Symbol]

    The directly or indirectly inherited mixins of this class except for mixin classes inherited by the superclass.

    The directly or indirectly inherited mixins of this class except for mixin classes inherited by the superclass. Mixin classes appear in linearization order.

    Definition Classes
    Symbol
  338. def modifyInfo(f: (Type) ⇒ Type): FreeTermSymbol.this.type

    Modifies this symbol's info in place.

    Modifies this symbol's info in place.

    Definition Classes
    Symbol
  339. def moduleClass: Symbol

    The module class corresponding to this module.

    The module class corresponding to this module.

    Definition Classes
    TermSymbolSymbol
  340. def moduleSuffix: String

    Definition Classes
    Symbol
  341. def name: TermName

    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
    TermSymbolSymbolSymbolBase
  342. def nameString: String

    String representation of symbol's simple name.

    String representation of symbol's simple name. If !settings.debug translates expansions of operators back to operator symbol. E.g. $eq => =. If settings.uniqid, adds id. If settings.Yshowsymkinds, adds abbreviated symbol kind.

    Definition Classes
    Symbol
  343. def name_=(name: Name): Unit

    Definition Classes
    TermSymbolSymbol
  344. 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
  345. final def needsFlatClasses: Boolean

    Definition Classes
    Symbol
  346. final def needsImplClass: Boolean

    Is this symbol a trait which needs an implementation class?

    Is this symbol a trait which needs an implementation class?

    Definition Classes
    Symbol
  347. def needsModuleSuffix: Boolean

    Whether this symbol needs nme.

    Whether this symbol needs nme.MODULE_SUFFIX_STRING (aka $) appended on the java platform.

    Definition Classes
    Symbol
  348. final def newAbstractType(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): AbstractTypeSymbol

    Symbol of an abstract type type T >: .

    Symbol of an abstract type type T >: ... <: ...

    Definition Classes
    Symbol
  349. final def newAliasType(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): AliasTypeSymbol

    Symbol of a type definition type T = .

    Symbol of a type definition type T = ...

    Definition Classes
    Symbol
  350. final def newAnonymousFunctionClass(pos: Position = NoPosition, newFlags: Long = 0L): ClassSymbol

    Definition Classes
    Symbol
  351. final def newAnonymousFunctionValue(pos: Position, newFlags: Long = 0L): TermSymbol

    Definition Classes
    Symbol
  352. final def newClass(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ClassSymbol

    Definition Classes
    Symbol
  353. def newClassConstructor(pos: Position): MethodSymbol

    Instance constructor with info set.

    Instance constructor with info set.

    Definition Classes
    Symbol
  354. final def newClassSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ClassSymbol

    Definition Classes
    SymbolSymbolBase
  355. def newClassWithInfo(name: TypeName, parents: List[Type], scope: Scope, pos: Position = NoPosition, newFlags: Long = 0L): ClassSymbol

    A new class with its info set to a ClassInfoType with given scope and parents.

    A new class with its info set to a ClassInfoType with given scope and parents.

    Definition Classes
    Symbol
  356. final def newConstructor(pos: Position, newFlags: Long = 0L): MethodSymbol

    Propagates ConstrFlags (JAVA, specifically) from owner to constructor.

    Propagates ConstrFlags (JAVA, specifically) from owner to constructor.

    Definition Classes
    Symbol
  357. final def newErrorClass(name: TypeName): ClassSymbol

    Definition Classes
    Symbol
  358. final def newErrorSymbol(name: Name): Symbol

    Definition Classes
    Symbol
  359. final def newErrorValue(name: TermName): TermSymbol

    Definition Classes
    Symbol
  360. final def newExistential(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): TypeSymbol

    Symbol of an existential type T forSome { .

    Symbol of an existential type T forSome { ... }

    Definition Classes
    Symbol
  361. def newExistentialSkolem(basis: Symbol, origin: AnyRef): TypeSkolem

    Create a new existential type skolem with this symbol its owner, based on the given symbol and origin.

    Create a new existential type skolem with this symbol its owner, based on the given symbol and origin.

    Definition Classes
    Symbol
  362. def newGADTSkolem(name: TypeName, origin: Symbol, info: Type): TypeSkolem

    Definition Classes
    Symbol
  363. final def newGetter: MethodSymbol

    Create a new getter for current symbol (which must be a field)

    Create a new getter for current symbol (which must be a field)

    Definition Classes
    Symbol
  364. def newImplClass(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ClassSymbol

    Definition Classes
    Symbol
  365. final def newImport(pos: Position): TermSymbol

    Definition Classes
    Symbol
  366. final def newLabel(name: TermName, pos: Position = NoPosition): MethodSymbol

    Definition Classes
    Symbol
  367. def newLinkedModule(clazz: Symbol, newFlags: Long = 0L): ModuleSymbol

    Definition Classes
    Symbol
  368. final def newLocalDummy(pos: Position): TermSymbol

    Create local dummy for template (owner of local blocks)

    Create local dummy for template (owner of local blocks)

    Definition Classes
    Symbol
  369. final def newMethod(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): MethodSymbol

    Definition Classes
    Symbol
  370. final def newMethodSymbol(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): MethodSymbol

    Definition Classes
    SymbolSymbolBase
  371. final def newModule(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleSymbol

    Definition Classes
    Symbol
  372. final def newModuleAndClassSymbol(name: Name, pos: Position, flags: FlagSet): (ModuleSymbol, ClassSymbol)

    Definition Classes
    SymbolSymbolBase
  373. final def newModuleClass(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleClassSymbol

    Definition Classes
    Symbol
  374. final def newModuleClassSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleClassSymbol

    Definition Classes
    Symbol
  375. final def newModuleSymbol(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleSymbol

    Definition Classes
    Symbol
  376. def newNestedSymbol(name: Name, pos: Position, newFlags: Long, isClass: Boolean): Symbol

    Definition Classes
    SymbolContextApiImpl
  377. final def newNonClassSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): TypeSymbol

    Definition Classes
    Symbol
  378. final def newOverloaded(pre: Type, alternatives: List[Symbol]): TermSymbol

    pre

    type relative to which alternatives are seen. for instance: class C[T] { def m(x: T): T def m'(): T } val v: C[Int]

    Then v.m has symbol TermSymbol(flags = {OVERLOADED}, tpe = OverloadedType(C[Int], List(m, m'))) You recover the type of m doing a

    m.tpe.asSeenFrom(pre, C) (generally, owner of m, which is C here).

    or:

    pre.memberType(m)

    Definition Classes
    Symbol
  379. final def newPackage(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleSymbol

    Definition Classes
    Symbol
  380. final def newPackageSymbol(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleSymbol

    Definition Classes
    Symbol
  381. final def newRefinementClass(pos: Position): RefinementClassSymbol

    Refinement types P { val x: String; type T <: Number } also have symbols, they are refinementClasses

    Refinement types P { val x: String; type T <: Number } also have symbols, they are refinementClasses

    Definition Classes
    Symbol
  382. def newStaticConstructor(pos: Position): MethodSymbol

    Static constructor with info set.

    Static constructor with info set.

    Definition Classes
    Symbol
  383. def newSyntheticTypeParam(name: String, newFlags: Long): TypeSymbol

    Definition Classes
    Symbol
  384. def newSyntheticTypeParam(): TypeSymbol

    Definition Classes
    Symbol
  385. def newSyntheticTypeParams(num: Int): List[TypeSymbol]

    Definition Classes
    Symbol
  386. final def newSyntheticValueParam(argtype: Type): Symbol

    Synthetic value parameter when parameter symbol is not available.

    Synthetic value parameter when parameter symbol is not available. Calling this method multiple times will re-use the same parameter name.

    Definition Classes
    Symbol
  387. final def newSyntheticValueParams(argtypes: List[Type]): List[TermSymbol]

    Synthetic value parameters when parameter symbols are not available.

    Synthetic value parameters when parameter symbols are not available. Calling this method multiple times will re-use the same parameter names.

    Definition Classes
    Symbol
  388. final def newSyntheticValueParamss(argtypess: List[List[Type]]): List[List[TermSymbol]]

    Synthetic value parameters when parameter symbols are not available

    Synthetic value parameters when parameter symbols are not available

    Definition Classes
    Symbol
  389. final def newTermSymbol(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

    Definition Classes
    SymbolSymbolBase
  390. final def newThisSym(name: TermName = nme.this_, pos: Position = NoPosition): TermSymbol

    Definition Classes
    Symbol
  391. final def newTypeParameter(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): TypeSymbol

    Symbol of a type parameter

    Symbol of a type parameter

    Definition Classes
    Symbol
  392. final def newTypeSkolem: TypeSkolem

    Type skolems are type parameters seen from the inside Assuming a polymorphic method m[T], its type is a PolyType which has a TypeParameter with name T in its typeParams list.

    Type skolems are type parameters seen from the inside Assuming a polymorphic method m[T], its type is a PolyType which has a TypeParameter with name T in its typeParams list. While type checking the parameters, result type and body of the method, there's a local copy of T which is a TypeSkolem.

    Definition Classes
    Symbol
  393. final def newTypeSkolemSymbol(name: TypeName, origin: AnyRef, pos: Position = NoPosition, newFlags: Long = 0L): TypeSkolem

    Definition Classes
    Symbol
  394. def newTypeSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): TypeSymbol

    Definition Classes
    SymbolSymbolBase
  395. final def newValue(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

    Definition Classes
    Symbol
  396. final def newValueParameter(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

    Definition Classes
    Symbol
  397. final def newVariable(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

    Definition Classes
    Symbol
  398. def nextOverriddenSymbol: Symbol

    Equivalent to allOverriddenSymbols.

    Equivalent to allOverriddenSymbols.head (or NoSymbol if no overrides) but more efficient.

    Definition Classes
    Symbol
  399. 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

  400. 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

  401. final def orElse(alt: ⇒ Symbol): Symbol

    .

    ...

    Definition Classes
    SymbolSymbolApi
    Annotations
    @inline()
  402. val origin: String

    The place where this symbol has been spawned

    The place where this symbol has been spawned

    Definition Classes
    FreeTermSymbolFreeTermSymbolApiFreeSymbol
  403. def originalEnclosingMethod: Symbol

    Return the original enclosing method of this symbol.

    Return the original enclosing method of this symbol. It should return the same thing as enclMethod when called before lambda lift, but it preserves the original nesting when called afterwards.

    Definition Classes
    Symbol
    Note

    This method is NOT available in the presentation compiler run. The originalOwner map is not populated for memory considerations (the symbol may hang on to lazy types and in turn to whole (outdated) compilation units.

  404. def originalInfo: Type

    Definition Classes
    Symbol
  405. def originalName: Name

    If this symbol has an expanded name, its original name, otherwise its name itself.

    If this symbol has an expanded name, its original name, otherwise its name itself.

    Definition Classes
    Symbol
    See also

    expandName

  406. def originalOwnerChain: List[Symbol]

    Definition Classes
    Symbol
  407. final def outerClass: Symbol

    The class that is logically an outer class of given clazz.

    The class that is logically an outer class of given clazz. This is the enclosing class, except for classes defined locally to constructors, where it is the outer class of the enclosing class.

    Definition Classes
    Symbol
  408. def outerSource: Symbol

    For an outer accessor: The class from which the outer originates.

    For an outer accessor: The class from which the outer originates. For all other symbols: NoSymbol

    Definition Classes
    TermSymbolSymbol
  409. final def overriddenSymbol(ofclazz: Symbol): Symbol

    The symbol, in class ofclazz, that is overridden by this symbol.

    The symbol, in class ofclazz, that is overridden by this symbol.

    ofclazz

    is a base class of this symbol's owner.

    Definition Classes
    Symbol
  410. final def overridingSymbol(ofclazz: Symbol): Symbol

    The symbol overriding this symbol in given subclass ofclazz.

    The symbol overriding this symbol in given subclass ofclazz.

    ofclazz

    is a subclass of this symbol's owner

    Definition Classes
    Symbol
  411. def owner: Symbol

    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
    SymbolSymbolBase
  412. def ownerChain: List[Symbol]

    Definition Classes
    Symbol
  413. def ownerOfNewSymbols: Symbol

    For RootClass, this is EmptyPackageClass.

    For RootClass, this is EmptyPackageClass. For all other symbols, the symbol itself.

    Definition Classes
    Symbol
  414. def owner_=(owner: Symbol): Unit

    Definition Classes
    Symbol
  415. def ownersIterator: Iterator[Symbol]

    Definition Classes
    Symbol
  416. def ownsString: String

    String representation of location.

    String representation of location.

    Definition Classes
    Symbol
  417. def paramPos: Int

    The sequence number of this parameter symbol among all type and value parameters of symbol's owner.

    The sequence number of this parameter symbol among all type and value parameters of symbol's owner. -1 if symbol does not appear among the parameters of its owner.

    Definition Classes
    Symbol
  418. def paramss: List[List[Symbol]]

    The value parameter sections of this symbol.

    The value parameter sections of this symbol.

    Definition Classes
    Symbol
  419. def parentSymbols: List[Symbol]

    Definition Classes
    Symbol
  420. def pos: Position

    The position of this symbol

    The position of this symbol

    Definition Classes
    SymbolSymbolApi
  421. def primaryConstructor: Symbol

    The primary constructor of a class.

    The primary constructor of a class.

    Definition Classes
    Symbol
  422. def privateWithin: Symbol

    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.

    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: hasFlag(PRIVATE) && !hasAccessBoundary java package: !hasFlag(PRIVATE | PROTECTED) && (privateWithin == enclosing package) java protected: hasFlag(PROTECTED) && (privateWithin == enclosing package) java public: !hasFlag(PRIVATE | PROTECTED) && !hasAccessBoundary

    Definition Classes
    SymbolHasFlagsSymbolApi
  423. def privateWithin_=(sym: Symbol): Unit

    Definition Classes
    Symbol
  424. def rawFlagString: String

    Definition Classes
    Symbol
  425. def rawFlagString(mask: Long): String

    Definition Classes
    Symbol
  426. def rawInfo: Type

    Return info without checking for initialization or completing

    Return info without checking for initialization or completing

    Definition Classes
    Symbol
  427. def rawflags: Long

    Definition Classes
    Symbol
  428. def rawflags_=(x: Long): Unit

    Definition Classes
    Symbol
  429. def rawname: TermName

    Definition Classes
    TermSymbolSymbol
  430. def rawowner: Symbol

    Definition Classes
    Symbol
  431. def referenced: Symbol

    Definition Classes
    TermSymbol
  432. def referenced_=(x: Symbol): Unit

    Definition Classes
    TermSymbol
  433. def removeAnnotation(cls: Symbol): Symbol

    Definition Classes
    Annotatable
  434. def reset(completer: Type): FreeTermSymbol.this.type

    Reset symbol to initial state

    Reset symbol to initial state

    Definition Classes
    Symbol
  435. def resetFlag(mask: Long): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  436. def resetFlags(): Unit

    Definition Classes
    Symbol
  437. def resolveOverloaded(pre: Type, targs: Seq[Type], posVargTypes: Seq[Type], nameVargTypes: Seq[(TermName, Type)], expected: Type): Symbol

    Definition Classes
    SymbolContextApiImpl
  438. def resolveOverloadedFlag(flag: Long): String

    Default implementation calls the generic string function, which will print overloaded flags as <flag1/flag2/flag3>.

    Default implementation calls the generic string function, which will print overloaded flags as <flag1/flag2/flag3>. Subclasses of Symbol refine.

    Definition Classes
    TermSymbolSymbolHasFlags
  439. def sealedDescendants: Set[Symbol]

    Recursively assemble all children of this symbol.

    Recursively assemble all children of this symbol.

    Definition Classes
    Symbol
  440. final def sealedSortName: String

    The String used to order otherwise identical sealed symbols.

    The String used to order otherwise identical sealed symbols. This uses data which is stable across runs and variable classpaths (the initial Name) before falling back on id, which varies depending on exactly when a symbol is loaded.

    Definition Classes
    Symbol
  441. def selfType: Type

    Definition Classes
    SymbolContextApiImpl
  442. def setAlias(alias: Symbol): TermSymbol

    Definition Classes
    TermSymbol
  443. def setAnnotations(annots: List[AnnotationInfo]): FreeTermSymbol.this.type

    Definition Classes
    SymbolAnnotatable
  444. def setAnnotations(annots: AnnotationInfo*): FreeTermSymbol.this.type

    Definition Classes
    SymbolContextApiImpl
  445. def setFlag(mask: Long): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  446. def setInfo(info: Type): FreeTermSymbol.this.type

    Set initial info.

    Set initial info.

    Definition Classes
    Symbol
  447. def setInfoAndEnter(info: Type): FreeTermSymbol.this.type

    Set the info and enter this symbol into the owner's scope.

    Set the info and enter this symbol into the owner's scope.

    Definition Classes
    Symbol
  448. def setInfoOwnerAdjusted(info: Type): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  449. def setInternalFlags(flag: Long): FreeTermSymbol.this.type

    Definition Classes
    SymbolContextApiImpl
  450. def setLazyAccessor(sym: Symbol): TermSymbol

    Definition Classes
    TermSymbol
  451. def setModuleClass(clazz: Symbol): TermSymbol

    Definition Classes
    TermSymbol
  452. def setName(name: Name): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  453. def setPos(pos: Position): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  454. def setPrivateWithin(sym: Symbol): FreeTermSymbol.this.type

    Definition Classes
    Symbol
  455. def setTypeSignature(tpe: Type): FreeTermSymbol.this.type

    Definition Classes
    SymbolContextApiImpl
  456. final def setter(base: Symbol, hasExpandedName: Boolean): Symbol

    Definition Classes
    Symbol
  457. final def setter(base: Symbol): Symbol

    The setter of this value or getter definition, or NoSymbol if none exists

    The setter of this value or getter definition, or NoSymbol if none exists

    Definition Classes
    Symbol
  458. def shortSymbolClass: String

    Definition Classes
    Symbol
  459. def signatureString: String

    Definition Classes
    Symbol
  460. final def simpleName: Name

    The simple name of this Symbol

    The simple name of this Symbol

    Definition Classes
    Symbol
  461. final def skipConstructor: Symbol

    If this is a constructor, its owner: otherwise this.

    If this is a constructor, its owner: otherwise this.

    Definition Classes
    Symbol
  462. def skipPackageObject: Symbol

    If this is a package object or its implementing class, its owner: otherwise this.

    If this is a package object or its implementing class, its owner: otherwise this.

    Definition Classes
    Symbol
  463. final def sourceFile: AbstractFileType

    Definition Classes
    Symbol
  464. def sourceModule: Symbol

    The module corresponding to this module class (note that this is not updated when a module is cloned), or NoSymbol if this is not a ModuleClass.

    The module corresponding to this module class (note that this is not updated when a module is cloned), or NoSymbol if this is not a ModuleClass.

    Definition Classes
    Symbol
  465. def sourceModule_=(sym: Symbol): Unit

    Definition Classes
    Symbol
  466. def substInfo(syms0: List[Symbol], syms1: List[Symbol]): FreeTermSymbol.this.type

    Substitute second list of symbols for first in current info.

    Substitute second list of symbols for first in current info.

    Definition Classes
    Symbol
  467. def suchThat(cond: (Symbol) ⇒ Boolean): Symbol

    .

    ...

    Definition Classes
    SymbolSymbolApi
  468. def superClass: Symbol

    The superclass of this class.

    The superclass of this class.

    Definition Classes
    Symbol
  469. final def superSymbol(base: Symbol): Symbol

    The symbol accessed by a super in the definition of this symbol when seen from class base.

    The symbol accessed by a super in the definition of this symbol when seen from class base. This symbol is always concrete. pre: this.owner is in the base class sequence of base.

    Definition Classes
    Symbol
  470. def symbolCreationString: String

    Definition Classes
    Symbol
  471. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  472. final def tag: Int

    A tag which (in the ideal case) uniquely identifies class symbols

    A tag which (in the ideal case) uniquely identifies class symbols

    Definition Classes
    Symbol
  473. def thisPrefix: Type

    Definition Classes
    SymbolContextApiImpl
  474. def thisSym: Symbol

    The self symbol (a TermSymbol) of a class with explicit self type, or else the symbol itself (a TypeSymbol).

    The self symbol (a TermSymbol) of a class with explicit self type, or else the symbol itself (a TypeSymbol).

    WARNING: you're probably better off using typeOfThis, as it's more uniform across classes with and without self variables.

    Example by Paul: scala> trait Foo1 { } scala> trait Foo2 { self => } scala> intp("Foo1").thisSym res0: $r.intp.global.Symbol = trait Foo1

    scala> intp("Foo2").thisSym res1: $r.intp.global.Symbol = value self

    Martin says: The reason thisSym' is this' is so that thisType can be this.thisSym.tpe. It's a trick to shave some cycles off.

    Morale: DO: if (clazz.typeOfThis.typeConstructor ne clazz.typeConstructor) ... DON'T: if (clazz.thisSym ne clazz) ...

    Definition Classes
    Symbol
  475. def thisType: Type

    If symbol is a class, the type this.type in this class, otherwise NoPrefix.

    If symbol is a class, the type this.type in this class, otherwise NoPrefix. We always have: thisType <:< typeOfThis

    Definition Classes
    Symbol
  476. def throwsAnnotations(): List[Symbol]

    Symbols of any @throws annotations on this symbol.

    Symbols of any @throws annotations on this symbol.

    Definition Classes
    Annotatable
  477. def toInterface: Symbol

    If this symbol is an implementation class, its interface, otherwise the symbol itself The method follows two strategies to determine the interface.

    If this symbol is an implementation class, its interface, otherwise the symbol itself The method follows two strategies to determine the interface.

    • during or after erasure, it takes the last parent of the implementation class (which is always the interface, by convention)
    • before erasure, it looks up the interface name in the scope of the owner of the class. This only works for implementation classes owned by other classes or traits. !!! Why?
    Definition Classes
    Symbol
  478. def toString(): String

    String representation, including symbol's kind e.

    String representation, including symbol's kind e.g., "class Foo", "method Bar". If hasMeaninglessName is true, uses the owner's name to disambiguate identity.

    returns

    a String representation of the object.

    Definition Classes
    Symbol → AnyRef → Any
  479. def tpe: Type

    Get type.

    Get type. The type of a symbol is: for a type symbol, the type corresponding to the symbol itself,

    Definition Classes
    Symbol
  480. def tpeHK: Type

    Definition Classes
    Symbol
  481. def typeConstructor: Type

    The type constructor of a symbol is: For a type symbol, the type corresponding to the symbol itself, excluding parameters.

    The type constructor of a symbol is: For a type symbol, the type corresponding to the symbol itself, excluding parameters. Not applicable for term symbols.

    Definition Classes
    Symbol
  482. def typeOfThis: Type

    The type of this in a class, or else the type of the symbol itself.

    The type of this in a class, or else the type of the symbol itself.

    Definition Classes
    Symbol
  483. def typeOfThis_=(tp: Type): Unit

    Definition Classes
    Symbol
  484. def typeParams: List[Symbol]

    The type parameters of this symbol.

    The type parameters of this symbol. assumption: if a type starts out as monomorphic, it will not acquire type parameters later.

    Definition Classes
    Symbol
  485. def typeSignature: Type

    The type signature of this symbol.

    The type signature of this symbol. Note if the symbol is a member of a class, one almost always is interested in typeSignatureIn with a site type instead.

    Definition Classes
    SymbolContextApiImplSymbolApi
  486. def typeSignatureIn(site: Type): Type

    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
    SymbolContextApiImplSymbolApi
  487. def unpackLocation: AnyRef

    If this symbol is an existential skolem the location (a Tree or null) where it was unpacked.

    If this symbol is an existential skolem the location (a Tree or null) where it was unpacked. Resulttype is AnyRef because trees are not visible here.

    Definition Classes
    Symbol
  488. def unsafeTypeParams: List[Symbol]

    The type parameters of this symbol, without ensuring type completion.

    The type parameters of this symbol, without ensuring type completion. assumption: if a type starts out as monomorphic, it will not acquire type parameters later.

    Definition Classes
    Symbol
  489. def updateInfo(info: Type): Symbol

    Set new info valid from start of this phase.

    Set new info valid from start of this phase.

    Definition Classes
    Symbol
  490. def validTo: Period

    Definition Classes
    Symbol
  491. def validTo_=(x: Period): Unit

    Definition Classes
    Symbol
  492. def value: Any

    The valus this symbol refers to

    The valus this symbol refers to

    Definition Classes
    FreeTermSymbolFreeTermSymbolApi
  493. final def variance: Int

    The variance of this symbol as an integer

    The variance of this symbol as an integer

    Definition Classes
    Symbol
  494. def varianceString: String

    String representation of symbol's variance

    String representation of symbol's variance

    Definition Classes
    Symbol
  495. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  498. final def withAnnotation(annot: AnnotationInfo): Symbol

    Definition Classes
    Annotatable
  499. def withAnnotations(annots: List[AnnotationInfo]): FreeTermSymbol.this.type

    Definition Classes
    SymbolAnnotatable
  500. def withoutAnnotations: FreeTermSymbol.this.type

    Definition Classes
    SymbolAnnotatable
  501. def [B](y: B): (FreeTermSymbol, B)

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

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from FreeTermSymbol to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (freeTermSymbol: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from FreeTermSymbol to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (freeTermSymbol: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def defaultFlagString: String

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString

  2. def hasDefaultFlag: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use hasDefault

  3. def hasFlagsToString(mask: Long): String

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString(mask)

  4. def hasTraitFlag: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isTrait

  5. def isParameter: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isValueParameter or isTypeParameter

  6. def newAbstractType(pos: Position, name: TypeName): Symbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  7. def newAliasType(pos: Position, name: TypeName): Symbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  8. def newClass(pos: Position, name: TypeName): Symbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  9. def newExistential(pos: Position, name: TypeName): Symbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  10. def newLabel(pos: Position, name: TermName): MethodSymbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  11. def newMethod(pos: Position, name: TermName): MethodSymbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  12. def newModuleClass(pos: Position, name: TypeName): Symbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  13. def newValue(pos: Position, name: TermName): TermSymbol

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  14. def sourceFile_=(f: AbstractFileType): Unit

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use associatedFile_= instead

  15. def toplevelClass: Symbol

    Kept for source compatibility with 2.

    Kept for source compatibility with 2.9. Scala IDE for Eclipse relies on this.

    Definition Classes
    Symbol
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use enclosingTopLevelClass

  16. def x: FreeTermSymbol

    Implicit information
    This member is added by an implicit conversion from FreeTermSymbol to ArrowAssoc[FreeTermSymbol] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (freeTermSymbol: ArrowAssoc[FreeTermSymbol]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  17. def x: FreeTermSymbol

    Implicit information
    This member is added by an implicit conversion from FreeTermSymbol to Ensuring[FreeTermSymbol] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (freeTermSymbol: Ensuring[FreeTermSymbol]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from FreeTermSymbolApi

Inherited from FreeTermSymbolBase

Inherited from FreeSymbol

Inherited from TermSymbol

Inherited from TermSymbolApi

Inherited from TermSymbolBase

Inherited from Symbol

Inherited from Annotatable[Symbol]

Inherited from HasFlags

Inherited from SymbolContextApiImpl

Inherited from SymbolContextApi

Inherited from SymbolApi

Inherited from HasFlagsApi

Inherited from SymbolBase

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FreeTermSymbol to StringAdd

Inherited by implicit conversion any2stringfmt from FreeTermSymbol to StringFormat

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

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