scala.reflect.internal.Symbols

Symbol

abstract class Symbol extends AbsSymbolImpl with HasFlags with Annotatable[Symbol]

The class for all symbols

Definition Classes
Symbols → Symbols
Source
Symbols.scala
Linear Supertypes
Annotatable[Symbol], HasFlags, AbsSymbolImpl, AbsSymbol, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Symbol
  2. Annotatable
  3. HasFlags
  4. AbsSymbolImpl
  5. AbsSymbol
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Symbol(initOwner: Symbol, initPos: Position, initName: Name)

    Attributes
    protected[Symbols]

Type Members

  1. type AccessBoundaryType = Symbol

    Definition Classes
    SymbolHasFlags
  2. type AnnotationType = AnnotationInfo

    Definition Classes
    SymbolHasFlags
  3. type FlagsType = Long

    Definition Classes
    SymbolHasFlags

Abstract Value Members

  1. abstract def cloneSymbolImpl(owner: Symbol, newFlags: Long): Symbol

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

  2. abstract def doCookJavaRawInfo(): Unit

    Attributes
    protected
  3. abstract def existentialBound: Type

    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)

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. 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]
  7. 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.

  8. def accessString: String

  9. final def accessed(ownerTp: Type): Symbol

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

  10. final def accessed: Symbol

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

  11. def accessedOrSelf: Symbol

    If this is an accessor, the accessed symbol.

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

  12. final def accurateKindString: String

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

  13. def addAnnotation(sym: Symbol, args: Tree*): Symbol.this.type

  14. def addAnnotation(annot: AnnotationInfo): Symbol.this.type

  15. def addChild(sym: Symbol): Unit

  16. def alias: Symbol

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

  17. final def allOverriddenSymbols: List[Symbol]

    Returns all symbols overriden by this symbol.

  18. def alternatives: List[Symbol]

  19. def ancestors: List[Symbol]

    All directly or indirectly inherited classes.

  20. 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 → AbsSymbol
  21. def annotationsString: String

  22. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  23. def asType: Type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  24. def asTypeConstructor: Type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  25. def asTypeIn(site: Type): Type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  26. 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.

  27. final def caseModule: Symbol

    The case module corresponding to this case class

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

  29. 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 }

  30. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def cloneSymbol(newOwner: Symbol, newFlags: Long, newName: Name): Symbol

  32. final def cloneSymbol(newOwner: Symbol, newFlags: Long): Symbol

  33. final def cloneSymbol(newOwner: Symbol): Symbol

    A clone of this symbol, but with given owner.

  34. final def cloneSymbol: Symbol

    A clone of this symbol.

  35. def cloneSymbolImpl(owner: Symbol): Symbol

  36. final 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

  37. final 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

  38. final 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
    Symbol → AbsSymbol
  39. final def constrParamAccessors: List[Symbol]

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

  41. def deSkolemize: Symbol

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

  42. def debugFlagString: String

  43. def debugLocationString: String

  44. def decodedName: String

    The decoded name of the symbol, e.

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

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

  46. def defStringSeenAs(info: Type): String

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

  47. def defaultFlagMask: Long

  48. def defaultFlagString: String

  49. def deprecatedParamName: Option[TermName]

  50. def deprecationMessage: Option[String]

  51. def deprecationVersion: Option[String]

  52. def effectiveOwner: Symbol

    The owner, skipping package objects.

  53. def elisionLevel: Option[Int]

  54. def enclClass: Symbol

    The next enclosing class.

  55. def enclClassChain: List[Symbol]

  56. def enclMethod: Symbol

    The next enclosing method.

  57. def enclosingClass: Symbol

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  58. def enclosingMethod: Symbol

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  59. def enclosingPackage: Symbol

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

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

    Definition Classes
    Symbol → AbsSymbol
  61. def enclosingTopLevelClass: Symbol

    The top-level class containing this symbol.

    The top-level class containing this symbol.

    Definition Classes
    Symbol → AbsSymbol
  62. def encodedName: String

    The name of the symbol before decoding, e.

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

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

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

    Definition Classes
    AnyRef → Any
  65. def existentialToString: String

    String representation of existentially bound variable

  66. final def exists: Boolean

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

  68. final def extendedOverriddenSymbols: List[Symbol]

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

  69. def filter(cond: (Symbol) ⇒ Boolean): Symbol

  70. def filterAnnotations(p: (AnnotationInfo) ⇒ Boolean): Symbol.this.type

    Definition Classes
    SymbolAnnotatable
  71. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  72. def firstParam: Symbol

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

  73. 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
    SymbolHasFlags
  74. def flags_=(fs: Long): Unit

  75. final def freshExistential(suffix: String): Symbol

  76. def fullLocationString: String

  77. 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
    Symbol → AbsSymbol
  78. 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.

  79. def fullNameAsName(separator: Char): Name

  80. def fullNameString: String

  81. def getAnnotation(cls: Symbol): Option[AnnotationInfo]

    Definition Classes
    Annotatable
  82. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  83. final def getFlag(mask: Long): Long

  84. final def getter(base: Symbol): Symbol

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

  85. def getterName: TermName

  86. def hasAbstractFlag: Boolean

    Definition Classes
    HasFlags
  87. 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
  88. def hasAccessorFlag: Boolean

    Definition Classes
    HasFlags
  89. 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
    SymbolHasFlags
  90. def hasAnnotation(cls: Symbol): Boolean

    Test for, get, or remove an annotation

    Test for, get, or remove an annotation

    Definition Classes
    Annotatable
  91. def hasBridgeAnnotation: Boolean

  92. def hasCompleteInfo: Boolean

  93. def hasContravariantFlag: Boolean

    Definition Classes
    HasFlags
  94. def hasDefault: Boolean

    Definition Classes
    HasFlags
  95. def hasDefaultFlag: Boolean

    Definition Classes
    HasFlags
  96. final def hasFlag(mask: Long): Boolean

    Does symbol have ANY flag in mask set?

    Does symbol have ANY flag in mask set?

    Definition Classes
    SymbolHasFlags
  97. def hasFlagsToString(mask: Long): 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
    SymbolHasFlags
  98. final def hasGetter: Boolean

  99. def hasInConstructorFlag: Boolean

    Definition Classes
    HasFlags
  100. def hasLocalFlag: Boolean

    Definition Classes
    HasFlags
  101. 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.

  102. def hasMigrationAnnotation: Boolean

  103. def hasModifier(mod: Modifier): Boolean

    !!! The logic after "hasFlag" is far too opaque to be unexplained.

    !!! The logic after "hasFlag" is far too opaque to be unexplained. I'm guessing it's attempting to compensate for flag overloading, and embedding such logic in an undocumented island like this is a notarized guarantee of future breakage.

    Definition Classes
    Symbol → AbsSymbol
  104. def hasModuleFlag: Boolean

    Definition Classes
    HasFlags
  105. 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
  106. def hasPackageFlag: Boolean

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

  108. def hasPreSuperFlag: Boolean

    Definition Classes
    HasFlags
  109. def hasRawInfo: Boolean

  110. def hasStableFlag: Boolean

    Definition Classes
    HasFlags
  111. def hasStaticFlag: Boolean

    Definition Classes
    HasFlags
  112. def hasTraitFlag: Boolean

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

    same as ownerChain contains sym, but more efficient, and with a twist for refinement classes.

    same as ownerChain contains sym, but more efficient, and with a twist for refinement classes. A refinement class has a transowner X if an of its parents has transowner X.

  114. final def hasTypeAt(pid: Int): Boolean

    Was symbol's type updated during given phase?

  115. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  116. val id: Int

    Definition Classes
    Symbol → AbsSymbol
  117. final def idString: String

    If settings.

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

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

  119. def implicitNotFoundMsg: Option[String]

  120. 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).

  121. final def infoString(tp: Type): String

    String representation of symbol's definition following its name

  122. def info_=(info: Type): Unit

  123. def infosString: String

  124. def initFlags(mask: Long): Symbol.this.type

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

  125. final def initialize: Symbol.this.type

    Initialize the symbol

  126. final def isAbstractClass: Boolean

  127. def isAbstractOverride: Boolean

    Definition Classes
    HasFlags
  128. def isAbstractType: Boolean

    Definition Classes
    Symbol → AbsSymbol
  129. def isAliasType: Boolean

    Definition Classes
    Symbol → AbsSymbol
  130. final def isAnonOrRefinementClass: Boolean

  131. final def isAnonymousClass: Boolean

  132. final def isAnonymousFunction: Boolean

  133. def isAnyOverride: Boolean

    Definition Classes
    HasFlags
  134. final def isAuxiliaryConstructor: Boolean

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

  135. def isBottomClass: Boolean

  136. final def isBridge: Boolean

  137. def isByNameParam: Boolean

    Definition Classes
    HasFlags
  138. final def isCapturedVariable: Boolean

  139. def isCase: Boolean

    Definition Classes
    HasFlags
  140. def isCaseAccessor: Boolean

    Definition Classes
    HasFlags
  141. def isCaseAccessorMethod: Boolean

  142. final def isCaseApplyOrUnapply: Boolean

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

  143. def isCaseClass: Boolean

  144. def isClass: Boolean

    Definition Classes
    Symbol → AbsSymbol
  145. final def isClassConstructor: Boolean

  146. final def isClassLocalToConstructor: Boolean

  147. def isClearing(f: Long, mask: Long): Boolean

    Attributes
    protected
    Definition Classes
    HasFlags
  148. def isCoDefinedWith(that: Symbol): Boolean

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

  149. final def isConcreteClass: Boolean

  150. final def isConstant: Boolean

    Is this symbol a constant?

  151. final def isConstructor: Boolean

  152. final def isContravariant: Boolean

  153. final def isCovariant: Boolean

  154. def isDefaultInit: Boolean

    Definition Classes
    HasFlags
  155. def isDeferred: Boolean

    Definition Classes
    HasFlags
  156. final def isDefinedInPackage: Boolean

  157. def isDeprecated: Boolean

  158. final def isEarlyInitialized: Boolean

  159. def isEffectiveRoot: Boolean

    Is this symbol an effective root for fullname string?

  160. final def isEffectivelyFinal: Boolean

    Is this symbol effectively final? I.

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

  161. final def isEmptyPackage: Boolean

    Package tests

  162. final def isEmptyPackageClass: Boolean

  163. def isEmptyPrefix: Boolean

  164. final def isErroneous: Boolean

  165. final def isError: Boolean

  166. final def isExistentialQuantified: Boolean

  167. final def isExistentialSkolem: Boolean

  168. final def isExistentiallyBound: Boolean

  169. def isFBounded: Boolean

  170. def isFinal: Boolean

    Definition Classes
    HasFlags
  171. final def isGetter: Boolean

  172. final def isHigherOrderTypeParameter: Boolean

  173. final def isImplClass: Boolean

  174. final def isImplOnly: Boolean

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

  175. def isImplicit: Boolean

    Definition Classes
    HasFlags
  176. def isInDefaultNamespace: Boolean

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

    ...

  178. final def isInitialized: Boolean

  179. final def isInitializedToDefault: Boolean

  180. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  181. def isInterface: Boolean

    Definition Classes
    HasFlags
  182. final def isInterpreterWrapper: Boolean

    Does this symbol denote a wrapper created by the repl?

  183. def isJavaDefined: Boolean

    Definition Classes
    HasFlags
  184. final def isJavaInterface: Boolean

  185. def isLabel: Boolean

    Definition Classes
    HasFlags
  186. def isLazy: Boolean

    Definition Classes
    HasFlags
  187. final def isLazyAccessor: Boolean

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

  189. def isLessAccessibleThan(other: Symbol): Boolean

  190. def isLifted: Boolean

    Definition Classes
    HasFlags
  191. def isLiftedMethod: Boolean

  192. final def isLocal: Boolean

    Is this symbol locally defined? I.

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

  193. final 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
  194. final def isLocalDummy: Boolean

  195. def isMacro: Boolean

  196. def isMemberOf(clazz: Symbol): Boolean

    Is this symbol a member of class clazz?

  197. final def isMethod: Boolean

  198. final def isMixinConstructor: Boolean

  199. final def isModule: Boolean

  200. final def isModuleClass: Boolean

  201. final def isModuleVar: Boolean

    Is this symbol a module variable? This used to have to test for MUTABLE to distinguish the overloaded MODULEVAR/SYNTHETICMETH flag, but now SYNTHETICMETH is gone.

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

  203. def isMutable: Boolean

    Definition Classes
    HasFlags
  204. final def isNestedClass: Boolean

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

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

  206. 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?

  207. def isNonClassType: Boolean

    Is this symbol a type but not a class?

  208. final def isNumericSubClass(that: Symbol): Boolean

  209. final def isNumericValueClass: Boolean

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

  211. final def isOuterAccessor: Boolean

    Is this symbol an accessor method for outer?

  212. final def isOuterField: Boolean

    Is this symbol an accessor method for outer?

  213. final def isOverloaded: Boolean

  214. final def isOverridableMember: Boolean

  215. def isOverride: Boolean

    Definition Classes
    HasFlags
  216. def isOverridingSymbol: Boolean

    Equivalent to allOverriddenSymbols.

    Equivalent to allOverriddenSymbols.nonEmpty, but more efficient.

  217. final def isPackage: Boolean

  218. final def isPackageClass: Boolean

  219. final def isPackageObject: Boolean

  220. final def isPackageObjectClass: Boolean

  221. final def isPackageObjectOrClass: Boolean

  222. def isParamAccessor: Boolean

    Definition Classes
    HasFlags
  223. def isParameter: Boolean

    Definition Classes
    HasFlags
  224. final def isPossibleInRefinement: Boolean

  225. final def isPrimaryConstructor: Boolean

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

  226. def isPrivate: Boolean

    Definition Classes
    HasFlags
  227. def isPrivateLocal: Boolean

    Definition Classes
    HasFlags
  228. def isProtected: Boolean

    Definition Classes
    HasFlags
  229. def isProtectedLocal: Boolean

    Definition Classes
    HasFlags
  230. def isPublic: Boolean

    Definition Classes
    HasFlags
  231. final def isRefinementClass: Boolean

  232. final def isRoot: Boolean

  233. final def isRootPackage: Boolean

  234. def isSealed: Boolean

    Definition Classes
    HasFlags
  235. def isSerializable: Boolean

  236. final def isSetter: Boolean

  237. def isSetterParameter: Boolean

  238. def isSetting(f: Long, mask: Long): Boolean

    Attributes
    protected
    Definition Classes
    HasFlags
  239. def isSingletonExistential: Boolean

  240. final def isSourceMethod: Boolean

  241. final def isStable: Boolean

    Does this symbol denote a stable value?

  242. final def isStableClass: Boolean

  243. final def isStatic: Boolean

    Is this symbol static (i.

    Is this symbol static (i.e. with no outer instance)?

  244. final def isStaticConstructor: Boolean

    Is this symbol a static constructor?

  245. 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?)

  246. final def isStaticModule: Boolean

  247. final def isStaticOwner: Boolean

    Does this symbol denote a class that defines static symbols?

  248. def isStrictFP: Boolean

  249. final def isStructuralRefinement: Boolean

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

  250. final def isStructuralRefinementMember: Boolean

  251. def isSubClass(that: Symbol): Boolean

    Overridden in NullClass and NothingClass for custom behavior.

  252. def isSuperAccessor: Boolean

    Definition Classes
    HasFlags
  253. def isSynthetic: Boolean

    Definition Classes
    HasFlags
  254. def isTerm: Boolean

    Definition Classes
    Symbol → AbsSymbol
  255. final def isThisSym: Boolean

  256. final def isTrait: Boolean

    Definition Classes
    SymbolHasFlags
  257. def isType: Boolean

    Definition Classes
    Symbol → AbsSymbol
  258. final def isTypeParameter: Boolean

  259. final def isTypeParameterOrSkolem: Boolean

  260. final def isTypeSkolem: Boolean

  261. final def isUpdatedAt(pid: Int): Boolean

    Was symbol's type updated during given phase?

  262. final def isValue: Boolean

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

  263. final def isValueClass: Boolean

  264. final def isValueParameter: Boolean

  265. final def isVarargsMethod: Boolean

  266. final def isVariable: Boolean

  267. final def isWeakSubClass(that: Symbol): Boolean

  268. def javaBinaryName: String

  269. def javaClassName: String

  270. def javaSimpleName: String

    These should be moved somewhere like JavaPlatform.

  271. final def keyString: String

    String representation of symbol's definition key word

  272. final def kindString: String

  273. def lazyAccessor: Symbol

    For a lazy value, its lazy accessor.

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

  274. def lazyAccessorOrSelf: Symbol

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

  275. final 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$

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

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

  278. final def makeNotPrivate(base: Symbol): Unit

    Remove private modifier from symbol syms definition.

    Remove private modifier from symbol syms definition. If sym is a term symbol rename it by expanding its name to avoid name clashes

  279. def makePublic: Symbol

    Remove any access boundary and clear flags PROTECTED | PRIVATE.

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

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

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

  283. def migrationMessage: Option[String]

  284. def migrationVersion: Option[String]

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

  286. def modifiers: Set[Modifier]

    Definition Classes
    Symbol → AbsSymbol
  287. def modifyInfo(f: (Type) ⇒ Type): Symbol.this.type

    Modifies this symbol's info in place.

  288. def moduleClass: Symbol

    The module class corresponding to this module.

    The module class corresponding to this module.

    Definition Classes
    Symbol → AbsSymbol
  289. def moduleSuffix: String

  290. def name: Name

    Definition Classes
    Symbol → AbsSymbol
  291. 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.

  292. def name_=(name: Name): Unit

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

    Definition Classes
    AnyRef
  294. final def needsFlatClasses: Boolean

  295. final def needsImplClass: Boolean

    Is this symbol a trait which needs an implementation class?

  296. def needsModuleSuffix: Boolean

    Whether this symbol needs nme.

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

  297. final def newAbstractType(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): Symbol

    Symbol of an abstract type type T >: .

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

  298. def newAbstractTypeSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): AbstractTypeSymbol

  299. final def newAliasType(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): Symbol

    Symbol of a type definition type T = .

    Symbol of a type definition type T = ...

  300. def newAliasTypeSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): AliasTypeSymbol

  301. final def newAnonymousClass(pos: Position): ClassSymbol

  302. final def newAnonymousFunctionClass(pos: Position, newFlags: Long = 0L): ClassSymbol

  303. final def newAnonymousFunctionValue(pos: Position, newFlags: Long = 0L): TermSymbol

  304. final def newClass(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ClassSymbol

  305. def newClassConstructor(pos: Position): MethodSymbol

    Instance constructor with info set.

  306. def newClassSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ClassSymbol

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

  308. final def newConstructor(pos: Position, newFlags: Long = 0L): MethodSymbol

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

  309. final def newErrorClass(name: TypeName): ClassSymbol

  310. final def newErrorSymbol(name: Name): Symbol

  311. final def newErrorValue(name: TermName): TermSymbol

  312. final def newExistential(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): Symbol

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

  314. final def newGetter: Symbol

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

  315. final def newImport(pos: Position): TermSymbol

  316. final def newLabel(name: TermName, pos: Position = NoPosition): MethodSymbol

  317. def newLinkedModule(clazz: Symbol, newFlags: Long = 0L): ModuleSymbol

  318. final def newLocalDummy(pos: Position): TermSymbol

    Create local dummy for template (owner of local blocks)

  319. final def newMethod(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): MethodSymbol

  320. def newMethodSymbol(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): MethodSymbol

  321. final def newModule(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleSymbol

  322. final def newModuleClass(name: TypeName, pos: Position = NoPosition): ModuleClassSymbol

  323. def newModuleClassSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleClassSymbol

  324. def newModuleSymbol(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleSymbol

  325. def newNestedSymbol(name: Name, pos: Position, newFlags: Long): Symbol

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  326. final def newOverloaded(pre: Type, alternatives: List[Symbol]): Symbol

    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)

  327. final def newPackage(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): ModuleSymbol

  328. final def newRefinementClass(pos: Position): ClassSymbol

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

  329. def newStaticConstructor(pos: Position): MethodSymbol

    Static constructor with info set.

  330. def newSyntheticTypeParam(name: String, newFlags: Long): Symbol

  331. def newSyntheticTypeParam(): Symbol

  332. def newSyntheticTypeParams(num: Int): List[Symbol]

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

  334. final def newSyntheticValueParams(argtypes: List[Type]): List[Symbol]

    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.

  335. final def newSyntheticValueParamss(argtypess: List[List[Type]]): List[List[Symbol]]

    Synthetic value parameters when parameter symbols are not available

  336. def newTermSymbol(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

    Direct symbol factories.

    Direct symbol factories. For internal use; these are unlikely to be what you want.

  337. final def newThisSym(pos: Position): TermSymbol

  338. final def newTypeParameter(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): Symbol

    Symbol of a type parameter

  339. final def newTypeSkolem: Symbol

    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.

  340. def newTypeSkolemSymbol(name: TypeName, origin: AnyRef, pos: Position = NoPosition, newFlags: Long = 0L): TypeSkolem

  341. def newTypeSymbol(name: TypeName, pos: Position = NoPosition, newFlags: Long = 0L): TypeSymbol

    Derive whether it is an abstract type from the flags; after creation the DEFERRED flag will be ignored.

  342. final def newValue(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

  343. final def newValueParameter(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

  344. final def newVariable(name: TermName, pos: Position = NoPosition, newFlags: Long = 0L): TermSymbol

  345. def nextOverriddenSymbol: Symbol

    Equivalent to allOverriddenSymbols.

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

  346. final def notify(): Unit

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

    Definition Classes
    AnyRef
  348. def orElse[T](alt: ⇒ Symbol): Symbol

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

    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.

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

    See also

    expandName

  351. def originalOwnerChain: List[Symbol]

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

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

  354. final def overriddenSymbol(ofclazz: Symbol): Symbol

    The symbol overridden by this symbol in given class ofclazz.

    The symbol overridden by this symbol in given class ofclazz.

    ofclazz

    is a base class of this symbol's owner.

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

  356. def owner: Symbol

    Definition Classes
    Symbol → AbsSymbol
  357. def ownerChain: List[Symbol]

  358. def owner_=(owner: Symbol): Unit

  359. def ownersIterator: Iterator[Symbol]

  360. def ownsString: String

    String representation of location.

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

  362. def paramss: List[List[Symbol]]

    The value parameter sections of this symbol.

  363. def parentSymbols: List[Symbol]

  364. def pos: Position

  365. def primaryConstructor: Symbol

    The primary constructor of a class.

  366. 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
    SymbolHasFlags → AbsSymbol
  367. def privateWithin_=(sym: Symbol): Unit

  368. def rawInfo: Type

    Return info without checking for initialization or completing

  369. def rawflags: Long

  370. def rawflags_=(x: FlagsType): Unit

    Attributes
    protected
  371. def rawname: Name

  372. def rawowner: Symbol

  373. def removeAnnotation(cls: Symbol): Symbol

    Definition Classes
    Annotatable
  374. def reset(completer: Type): Unit

    Reset symbol to initial state

  375. def resetFlag(mask: Long): Symbol.this.type

  376. final def resetFlags(): Unit

  377. def sealedDescendants: Set[Symbol]

    Recursively assemble all children of this symbol.

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

  379. def selfType: Type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  380. def setAnnotations(annots: List[AnnotationInfo]): Symbol.this.type

    Definition Classes
    SymbolAnnotatable
  381. def setAnnotations(annots: AnnotationInfo*): Symbol.this.type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  382. def setFlag(mask: Long): Symbol.this.type

  383. def setInfo(info: Type): Symbol.this.type

    Set initial info.

  384. def setInfoAndEnter(info: Type): Symbol.this.type

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

  385. def setInfoOwnerAdjusted(info: Type): Symbol.this.type

  386. def setInternalFlags(flag: Long): Symbol.this.type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  387. final def setNotFlag(flag: Int): Any

    If the given flag is set on this symbol, also set the corresponding notFLAG.

    If the given flag is set on this symbol, also set the corresponding notFLAG. For instance if flag is PRIVATE, the notPRIVATE flag will be set if PRIVATE is currently set.

  388. def setPos(pos: Position): Symbol.this.type

  389. def setPrivateWithin(sym: Symbol): Symbol.this.type

  390. def setTypeSignature(tpe: Type): Symbol.this.type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  391. final def setter(base: Symbol, hasExpandedName: Boolean): Symbol

  392. final def setter(base: Symbol): Symbol

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

  393. def signatureString: String

  394. final def simpleName: Name

    The simple name of this Symbol

  395. final def skipConstructor: Symbol

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

  396. final def skipPackageObject: Symbol

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

  397. def sourceFile: AbstractFileType

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

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

  400. def sourceModule_=(sym: Symbol): Unit

  401. def substInfo(syms0: List[Symbol], syms1: List[Symbol]): Symbol.this.type

    Substitute second list of symbols for first in current info.

  402. def suchThat(cond: (Symbol) ⇒ Boolean): Symbol

  403. def superClass: Symbol

    The superclass of this class.

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

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

    Definition Classes
    AnyRef
  406. final def tag: Int

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

  407. def thisPrefix: Type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  408. 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) ...

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

  410. def throwsAnnotations(): List[Symbol]

    Symbols of any @throws annotations on this symbol.

    Symbols of any @throws annotations on this symbol.

    Definition Classes
    Annotatable
  411. final 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?
  412. 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.

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

    Get type.

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

  414. def tpeHK: Type

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

  416. def typeOfThis: Type

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

  417. def typeOfThis_=(tp: Type): Unit

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

  419. def typeSignature: Type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  420. def typeSignatureIn(site: Type): Type

    Definition Classes
    AbsSymbolImpl → AbsSymbol
  421. 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.

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

  423. def updateInfo(info: Type): Symbol

    Set new info valid from start of this phase.

  424. def validTo: Period

  425. def validTo_=(x: Period): Unit

  426. final def variance: Int

    The variance of this symbol as an integer

  427. def varianceString: String

    String representation of symbol's variance

  428. final def wait(): Unit

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

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

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

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

    Definition Classes
    SymbolAnnotatable
  433. def withoutAnnotations: Symbol.this.type

    Definition Classes
    SymbolAnnotatable

Deprecated Value Members

  1. def isAbstract: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0)

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use the other signature

  10. def toplevelClass: Symbol

    Kept for source compatibility with 2.

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

    Annotations
    @deprecated
    Deprecated

    Use enclosingTopLevelClass

Inherited from Annotatable[Symbol]

Inherited from HasFlags

Inherited from AbsSymbolImpl

Inherited from AbsSymbol

Inherited from AnyRef

Inherited from Any