c

scala.reflect.internal.Symbols

SymbolContextApiImpl

abstract class SymbolContextApiImpl extends SymbolTable.SymbolApi

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SymbolContextApiImpl
  2. SymbolApi
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SymbolContextApiImpl()

Type Members

  1. abstract type NameType >: Null <: SymbolTable.Name

    The type of the symbol name.

    The type of the symbol name. Can be either TermName or TypeName depending on whether this is a TermSymbol or a TypeSymbol.

    Type name namespaces do not intersect with term name namespaces. This fact is reflected in different types for names of TermSymbol and TypeSymbol.

    Definition Classes
    SymbolApi

Abstract Value Members

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

    The overloaded alternatives of this symbol.

    The overloaded alternatives of this symbol.

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

    A list of annotations attached to this Symbol.

    A list of annotations attached to this Symbol.

    Definition Classes
    SymbolApi
  3. abstract def filter(cond: (SymbolTable.Symbol) ⇒ Boolean): SymbolTable.Symbol

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

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

    Definition Classes
    SymbolApi
  4. abstract 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
    SymbolApi
  5. abstract def info: SymbolTable.Type

    The type signature of this symbol.

    The type signature of this symbol.

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

    Definition Classes
    SymbolApi
  6. abstract def isAbstractOverride: Boolean

    Is this symbol labelled as "abstract override"?

    Is this symbol labelled as "abstract override"?

    Definition Classes
    SymbolApi
  7. abstract def isConstructor: Boolean

    Does this method represent a constructor?

    Does this method represent a constructor?

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

    Definition Classes
    SymbolApi
  8. abstract def isFinal: Boolean

    Is this symbol final?

    Is this symbol final?

    Definition Classes
    SymbolApi
  9. abstract def isImplicit: Boolean

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

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

    Definition Classes
    SymbolApi
  10. abstract def isMacro: Boolean

    Is this symbol a macro?

    Is this symbol a macro?

    Definition Classes
    SymbolApi
  11. abstract def isPackage: Boolean

    Does this symbol represent the definition of a package? Known issues: https://github.com/scala/bug/issues/6732.

    Does this symbol represent the definition of a package? Known issues: https://github.com/scala/bug/issues/6732.

    Definition Classes
    SymbolApi
  12. abstract def isPackageClass: Boolean

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

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

    Definition Classes
    SymbolApi
  13. abstract def isParameter: Boolean

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

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

    Definition Classes
    SymbolApi
  14. abstract def isPrivate: Boolean

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

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

    Definition Classes
    SymbolApi
  15. abstract def isProtected: Boolean

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

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

    Definition Classes
    SymbolApi
  16. abstract def isPublic: Boolean

    Does this symbol represent a public declaration or definition?

    Does this symbol represent a public declaration or definition?

    Definition Classes
    SymbolApi
  17. abstract def isSpecialized: Boolean

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

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

    Definition Classes
    SymbolApi
  18. abstract def isStatic: Boolean

    Is this symbol static (i.e.

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

    Definition Classes
    SymbolApi
  19. abstract def isSynthetic: Boolean

    Does this symbol represent a synthetic (i.e.

    Does this symbol represent a synthetic (i.e. a compiler-generated) entity? Examples of synthetic entities are accessors for vals and vars.

    Definition Classes
    SymbolApi
  20. abstract def map(f: (SymbolTable.Symbol) ⇒ SymbolTable.Symbol): SymbolTable.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
    SymbolApi
  21. abstract def name: Symbol.NameType

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

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

    Definition Classes
    SymbolApi
  22. abstract def orElse(alt: ⇒ SymbolTable.Symbol): SymbolTable.Symbol

    Provides an alternate if symbol is a NoSymbol.

    Provides an alternate if symbol is a NoSymbol.

    Definition Classes
    SymbolApi
  23. abstract def owner: SymbolTable.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
    SymbolApi
  24. abstract def pos: SymbolTable.Position

    Position of the tree.

    Position of the tree.

    Definition Classes
    SymbolApi
  25. abstract def privateWithin: SymbolTable.Symbol

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

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

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

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

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

    The java access levels translate as follows:

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

    Definition Classes
    SymbolApi
  26. abstract def suchThat(cond: (SymbolTable.Symbol) ⇒ Boolean): SymbolTable.Symbol

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

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

    Definition Classes
    SymbolApi
  27. abstract def allOverriddenSymbols: List[SymbolTable.Symbol]

    Definition Classes
    SymbolApi
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use overrides instead

    See also

    overrides

  28. abstract def associatedFile: AbstractFile

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

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

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

    Definition Classes
    SymbolApi
    Annotations
    @deprecated
    Deprecated

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

  29. abstract def companionSymbol: SymbolTable.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 a module: the class with the same name in the same package. For all others: NoSymbol.

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

    Definition Classes
    SymbolApi
    Annotations
    @deprecated
    Deprecated

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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def asClass: SymbolTable.ClassSymbol

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

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

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isClass is false.

  5. def asFreeTerm: SymbolTable.FreeTermSymbol
  6. def asFreeType: SymbolTable.FreeTypeSymbol
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asMethod: SymbolTable.MethodSymbol

    This symbol cast to a MethodSymbol.

    This symbol cast to a MethodSymbol.

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isMethod is false.

  9. def asModule: SymbolTable.ModuleSymbol

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

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

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isModule is false.

  10. def asTerm: SymbolTable.TermSymbol

    This symbol cast to a TermSymbol.

    This symbol cast to a TermSymbol.

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isTerm is false.

  11. def asType: SymbolTable.TypeSymbol

    This symbol cast to a TypeSymbol.

    This symbol cast to a TypeSymbol.

    Definition Classes
    SymbolApi
    Exceptions thrown

    ScalaReflectionException if isType is false.

  12. def baseClasses: List[SymbolTable.Symbol]
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def companion: SymbolTable.Symbol

    For a class: its companion object if exists.

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

    Definition Classes
    SymbolContextApiImplSymbolApi
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getter: SymbolTable.Symbol
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def infoIn(site: SymbolTable.Type): SymbolTable.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
  22. def isAbstract: Boolean

    Is this symbol abstract (i.e.

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

    Definition Classes
    SymbolContextApiImplSymbolApi
  23. def isByNameParam: Boolean
  24. 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
    SymbolApi
  25. def isExistential: Boolean
  26. def isField: Boolean
  27. def isFreeTerm: Boolean
  28. def isFreeType: Boolean
  29. def isImplementationArtifact: Boolean

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

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

    Definition Classes
    SymbolContextApiImplSymbolApi
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def isJava: Boolean

    Is this symbol defined by Java?

    Is this symbol defined by Java?

    Definition Classes
    SymbolContextApiImplSymbolApi
  32. def isJavaAnnotation: Boolean

    Does this symbol represent a java annotation interface?

    Does this symbol represent a java annotation interface?

    Definition Classes
    SymbolContextApiImplSymbolApi
  33. def isJavaEnum: Boolean

    Does this symbol represent a java enum class or a java enum value?

    Does this symbol represent a java enum class or a java enum value?

    Definition Classes
    SymbolContextApiImplSymbolApi
  34. 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
    SymbolApi
  35. def isModule: Boolean

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

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

    Definition Classes
    SymbolApi
  36. def isModuleClass: Boolean

    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.

    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
    SymbolApi
  37. def isMutableVal: Boolean
  38. def isOverloadedMethod: Boolean

    Used to provide a better error message for asMethod.

    Used to provide a better error message for asMethod.

    Attributes
    protected
    Definition Classes
    SymbolApi
  39. def isParamWithDefault: Boolean
  40. def isPrivateThis: Boolean

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

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

    Definition Classes
    SymbolContextApiImplSymbolApi
  41. def isProtectedThis: Boolean

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

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

    Definition Classes
    SymbolContextApiImplSymbolApi
  42. def isTerm: Boolean

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

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

    Definition Classes
    SymbolApi
  43. 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 (except for NoSymbol), either sym.isTerm is true or sym.isType is true.

    Definition Classes
    SymbolApi
  44. def isVal: Boolean
  45. def isVar: Boolean
  46. def knownDirectSubclasses: Set[SymbolTable.Symbol]
  47. def module: SymbolTable.Symbol
  48. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  49. def newNestedSymbol(name: SymbolTable.Name, pos: SymbolTable.Position, newFlags: Long, isClass: Boolean): SymbolTable.Symbol
  50. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. def overrides: List[SymbolTable.Symbol]

    Returns all symbols overridden by this symbol.

    Returns all symbols overridden by this symbol.

    Definition Classes
    SymbolContextApiImplSymbolApi
  53. def paramLists: List[List[SymbolTable.Symbol]]
  54. def selfType: SymbolTable.Type
  55. def setAnnotations(annots: SymbolTable.AnnotationInfo*): SymbolContextApiImpl.this.type
  56. def setter: SymbolTable.Symbol
  57. def superPrefix(supertpe: SymbolTable.Type): SymbolTable.Type
  58. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  59. def thisPrefix: SymbolTable.Type
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. def toType: SymbolTable.Type
  62. def toTypeConstructor: SymbolTable.Type
  63. def toTypeIn(site: SymbolTable.Type): SymbolTable.Type
  64. def typeSignature: SymbolTable.Type

    Definition Classes
    SymbolContextApiImplSymbolApi
    See also

    info

  65. def typeSignatureIn(site: SymbolTable.Type): SymbolTable.Type

    Definition Classes
    SymbolContextApiImplSymbolApi
    See also

    infoIn

  66. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from SymbolTable.SymbolApi

Inherited from AnyRef

Inherited from Any

Method Symbol Members

Symbol Basic Information

Symbol Type Tests

Symbol Conversions

Iteration Helpers

These methods enable collections-like operations on symbols.

Ungrouped