scala.reflect.generic.Symbols

AbsSymbol

class AbsSymbol extends HasFlags

Attributes
abstract
Self Type
Symbol
Source
Symbols.scala
Linear Supertypes
HasFlags, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. AbsSymbol
  2. HasFlags
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbsSymbol ()

Type Members

  1. type AccessBoundaryType = Symbol

    Definition Classes
    AbsSymbolHasFlags
  2. type AnnotationType = AnnotationInfo

    Definition Classes
    AbsSymbolHasFlags
  3. type FlagsType = Long

    Definition Classes
    AbsSymbolHasFlags

Abstract Value Members

  1. def annotations : List[AnnotationType]

    A list of annotations attached to this entity.

    A list of annotations attached to this entity.

    Attributes
    abstract
    Definition Classes
    HasFlags
  2. def flags : Long

    The flags of this symbol

    The flags of this symbol

    Attributes
    abstract
    Definition Classes
    AbsSymbolHasFlags
  3. def hasFlagsToString (mask: FlagsType): 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.

    Attributes
    abstract
    Definition Classes
    HasFlags
  4. def lazyAccessor : Symbol

    If symbol is a lazy val, it's lazy accessor

    If symbol is a lazy val, it's lazy accessor

    Attributes
    abstract
  5. 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. For instance object Foo class Foo

    Then object Foo has a moduleClass' (invisible to the user, the backend calls it Foo$ linkedClassOfClass goes from class Foo$ to class Foo, and back.

    Attributes
    abstract
  6. def moduleClass : Symbol

    If symbol is an object definition, it's implied associated class, otherwise NoSymbol

    If symbol is an object definition, it's implied associated class, otherwise NoSymbol

    Attributes
    abstract
  7. def name : Name

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

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

    Attributes
    abstract
  8. def newAbstractType (name: TypeName, pos: Position = NoPosition): Symbol

    Attributes
    abstract
  9. def newAliasType (name: TypeName, pos: Position = NoPosition): Symbol

    Attributes
    abstract
  10. def newClass (name: TypeName, pos: Position = NoPosition): Symbol

    Attributes
    abstract
  11. def newMethod (name: TermName, pos: Position = NoPosition): Symbol

    Attributes
    abstract
  12. def newModule (name: TermName, clazz: Symbol, pos: Position = NoPosition): Symbol

    Attributes
    abstract
  13. def newModuleClass (name: TypeName, pos: Position = NoPosition): Symbol

    Attributes
    abstract
  14. def newValue (name: TermName, pos: Position = NoPosition): Symbol

    Attributes
    abstract
  15. def owner : Symbol

    The owner of this symbol.

    The owner of this symbol.

    Attributes
    abstract
  16. def privateWithin : Symbol

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

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

    Attributes
    abstract
    Definition Classes
    AbsSymbolHasFlags
  17. def rawInfo : Type

    The raw info of the type

    The raw info of the type

    Attributes
    abstract
  18. def typeOfThis : Type

    If this symbol is a class or trait, its self type, otherwise the type of the symbol itse;lf

    If this symbol is a class or trait, its self type, otherwise the type of the symbol itse;lf

    Attributes
    abstract

Concrete Value Members

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

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

    Test two objects for inequality.

    Test two objects for inequality.

    returns

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

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

    Equivalent to x.hashCode except for boxed numeric types.

    Equivalent to x.hashCode except for boxed numeric types. 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.

    returns

    a hash value consistent with ==

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

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

    Test two objects for equality.

    Test two objects for equality.

    returns

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

    Attributes
    final
    Definition Classes
    Any
  6. def addAnnotation (annot: AnnotationInfo): Unit

  7. def addChild (sym: Symbol): Unit

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

    Attributes
    final
    Definition Classes
    Any
  9. 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()
  10. def decodedName : String

    The decoded name of the symbol, e.

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

  11. def enclClass : Symbol

    The next enclosing class

  12. def enclMethod : Symbol

    The next enclosing method

  13. def encodedName : String

    The name of the symbol before decoding, e.

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    The equality method for reference types.

    The equality method for reference types. See equals in Any.

    returns

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

    Definition Classes
    AnyRef → Any
  16. 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()
  17. def flags_= (flags: Long): Unit

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

    Attributes
    final
  19. 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.

    Attributes
    final
  20. def getClass (): java.lang.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.

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def hasAbstractFlag : Boolean

    Definition Classes
    HasFlags
  22. def hasAccessBoundary : Boolean

    Whether this entity has a "privateWithin" visibility barrier attached.

    Whether this entity has a "privateWithin" visibility barrier attached.

    Attributes
    final
    Definition Classes
    AbsSymbolHasFlags
  23. def hasAccessorFlag : Boolean

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

    Does symbol have ALL the flags in mask set?

    Does symbol have ALL the flags in mask set?

    Attributes
    final
    Definition Classes
    AbsSymbolHasFlags
  25. def hasContravariantFlag : Boolean

    Definition Classes
    HasFlags
  26. def hasDefault : Boolean

    Definition Classes
    HasFlags
  27. def hasDefaultFlag : Boolean

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

    Does symbol have ANY flag in mask set?

    Does symbol have ANY flag in mask set?

    Attributes
    final
    Definition Classes
    AbsSymbolHasFlags
  29. def hasInConstructorFlag : Boolean

    Definition Classes
    HasFlags
  30. def hasLocalFlag : Boolean

    Definition Classes
    HasFlags
  31. def hasModuleFlag : Boolean

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

    Definition Classes
    HasFlags
  34. def hasPreSuperFlag : Boolean

    Definition Classes
    HasFlags
  35. def hasStableFlag : Boolean

    Definition Classes
    HasFlags
  36. def hasStaticFlag : Boolean

    Definition Classes
    HasFlags
  37. def hasTraitFlag : Boolean

    Definition Classes
    HasFlags
  38. 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
  39. def info : Type

    The info of the symbol.

    The info of the symbol. This is like tpe, except for class symbols where the info describes the contents of the class whereas the tpe is a reference to the class.

  40. def info_= (tp: Type): Unit

  41. def isAbstractClass : Boolean

    Attributes
    final
  42. def isAbstractOverride : Boolean

    Definition Classes
    HasFlags
  43. def isAbstractType : Boolean

  44. def isAliasType : Boolean

  45. def isBridge : Boolean

    Attributes
    final
  46. def isByNameParam : Boolean

    Definition Classes
    HasFlags
  47. def isCase : Boolean

    Definition Classes
    HasFlags
  48. def isCaseAccessor : Boolean

    Definition Classes
    HasFlags
  49. def isClass : Boolean

  50. def isContravariant : Boolean

    Attributes
    final
  51. def isCovariant : Boolean

    Attributes
    final
  52. def isDefaultInit : Boolean

    Definition Classes
    HasFlags
  53. def isDeferred : Boolean

    Definition Classes
    HasFlags
  54. def isEarlyInitialized : Boolean

    Attributes
    final
  55. def isEffectiveRoot : Boolean

    Is this symbol an effective root for fullname string?

  56. def isEmptyPackage : Boolean

    Package tests

    Package tests

    Attributes
    final
  57. def isEmptyPackageClass : Boolean

    Attributes
    final
  58. def isExistentiallyBound : Boolean

    Attributes
    final
  59. def isFinal : Boolean

    Definition Classes
    HasFlags
  60. def isImplClass : Boolean

    Attributes
    final
  61. def isImplicit : Boolean

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

    Attributes
    final
    Definition Classes
    Any
  63. def isInterface : Boolean

    Definition Classes
    HasFlags
  64. def isJavaDefined : Boolean

    Definition Classes
    HasFlags
  65. def isLabel : Boolean

    Definition Classes
    HasFlags
  66. def isLazy : Boolean

    Definition Classes
    HasFlags
  67. def isLazyAccessor : Boolean

    Attributes
    final
  68. def isLifted : Boolean

    Definition Classes
    HasFlags
  69. def isMethod : Boolean

    Attributes
    final
  70. def isModule : Boolean

    Attributes
    final
  71. def isModuleClass : Boolean

    Attributes
    final
  72. def isMutable : Boolean

    Definition Classes
    HasFlags
  73. def isOverloaded : Boolean

    Attributes
    final
  74. def isOverride : Boolean

    Definition Classes
    HasFlags
  75. def isPackage : Boolean

    Attributes
    final
  76. def isPackageClass : Boolean

    Attributes
    final
  77. def isParamAccessor : Boolean

    Definition Classes
    HasFlags
  78. def isParameter : Boolean

    Definition Classes
    HasFlags
  79. def isPrivate : Boolean

    Definition Classes
    HasFlags
  80. def isPrivateLocal : Boolean

    Definition Classes
    HasFlags
  81. def isProtected : Boolean

    Definition Classes
    HasFlags
  82. def isProtectedLocal : Boolean

    Definition Classes
    HasFlags
  83. def isPublic : Boolean

    Definition Classes
    HasFlags
  84. def isRefinementClass : Boolean

    Attributes
    final
  85. def isRoot : Boolean

    Attributes
    final
  86. def isRootPackage : Boolean

    Attributes
    final
  87. def isSealed : Boolean

    Definition Classes
    HasFlags
  88. def isSourceMethod : Boolean

    Attributes
    final
  89. def isSuperAccessor : Boolean

    Definition Classes
    HasFlags
  90. def isSynthetic : Boolean

    Definition Classes
    HasFlags
  91. def isTerm : Boolean

  92. def isTrait : Boolean

    Definition Classes
    AbsSymbolHasFlags
  93. def isType : Boolean

  94. def isTypeParameter : Boolean

    Attributes
    final
  95. def isVarargsMethod : Boolean

    Attributes
    final
  96. 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.

    Attributes
    final
    Definition Classes
    AnyRef
  97. 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.

    Attributes
    final
    Definition Classes
    AnyRef
  98. 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.

    Attributes
    final
    Definition Classes
    AnyRef
  99. def orElse [T] (alt: ⇒ Symbol): Symbol

    If this is NoSymbol, evaluate the argument: otherwise, this.

  100. def owner_= (sym: Symbol): Unit

  101. def privateWithin_= (sym: Symbol): Unit

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

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

  104. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  105. def toString (): String

    Creates a String representation of this object.

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

    returns

    a String representation of the object.

    Definition Classes
    AnyRef → Any
  106. def tpe : Type

    The type of the symbol

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

  108. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def isAbstract : Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

Inherited from HasFlags

Inherited from AnyRef

Inherited from Any