scala.reflect.generic.Symbols

AbsSymbol

class AbsSymbol extends AnyRef

attributes: abstract
source: Symbols.scala
Inherited
  1. Hide All
  2. Show all
  1. AnyRef
  2. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new AbsSymbol()

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

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

    attributes: final
    definition classes: Any
  3. def ##(): Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf[T0](): T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf[T0](): Boolean

    attributes: final
    definition classes: AnyRef
  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

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

    attributes: final
    definition classes: AnyRef
  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

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

    attributes: final
    definition classes: Any
  8. def addAnnotation(annot: AnnotationInfo): Unit

  9. def addChild(sym: Symbol): Unit

  10. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to 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 expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(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 typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  11. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns 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
    definition classes: AnyRef
  12. def decodedName: String

    The decoded name of the symbol, e.

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

  13. def enclClass: Symbol

    The next enclosing class

    The next enclosing class

  14. def enclMethod: Symbol

    The next enclosing method

    The next enclosing method

  15. def encodedName: String

    The name of the symbol before decoding, e.

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

    attributes: abstract
  16. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other 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).

    arg0

    the object to compare against this object for reference equality.

    returns

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

    attributes: final
    definition classes: AnyRef
  17. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

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

    definition classes: AnyRef → Any
  18. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  19. def flags: Long

    The flags of this symbol

    The flags of this symbol

    attributes: abstract
  20. def flags_=(flags: Long): Unit

  21. 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
  22. 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
  23. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns 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
  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
  25. def hasDefault: Boolean

    attributes: final
  26. def hasFlag(mask: Long): Boolean

    Does symbol have ANY flag in mask set?

    Does symbol have ANY flag in mask set?

    attributes: final
  27. def hashCode(): Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  28. 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.

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

  30. def isAbstractClass: Boolean

    attributes: final
  31. def isAbstractOverride: Boolean

    attributes: final
  32. def isAbstractType: Boolean

  33. def isAliasType: Boolean

  34. def isBridge: Boolean

    attributes: final
  35. def isCase: Boolean

    attributes: final
  36. def isCaseAccessor: Boolean

    attributes: final
  37. def isClass: Boolean

  38. def isContravariant: Boolean

    attributes: final
  39. def isCovariant: Boolean

    attributes: final
  40. def isDeferred: Boolean

    attributes: final
  41. def isEarlyInitialized: Boolean

    attributes: final
  42. def isEffectiveRoot: Boolean

    Is this symbol an effective root for fullname string?

    Is this symbol an effective root for fullname string?

  43. def isEmptyPackage: Boolean

    Package tests

    Package tests

    attributes: final
  44. def isEmptyPackageClass: Boolean

    attributes: final
  45. def isExistentiallyBound: Boolean

    attributes: final
  46. def isFinal: Boolean

    attributes: final
  47. def isGetterOrSetter: Boolean

    attributes: final
  48. def isImplClass: Boolean

    attributes: final
  49. def isImplicit: Boolean

    attributes: final
  50. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.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 requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  51. def isInterface: Boolean

    attributes: final
  52. def isJavaDefined: Boolean

    attributes: final
  53. def isLazy: Boolean

    attributes: final
  54. def isMethod: Boolean

    attributes: final
  55. def isModule: Boolean

    attributes: final
  56. def isModuleClass: Boolean

    attributes: final
  57. def isMutable: Boolean

    attributes: final
  58. def isOverloaded: Boolean

    attributes: final
  59. def isOverride: Boolean

    attributes: final
  60. def isPackage: Boolean

    attributes: final
  61. def isPackageClass: Boolean

    attributes: final
  62. def isParamAccessor: Boolean

    attributes: final
  63. def isParameter: Boolean

    attributes: final
  64. def isPrivate: Boolean

    Access tests

    Access tests

    attributes: final
  65. def isPrivateLocal: Boolean

    attributes: final
  66. def isProtected: Boolean

    attributes: final
  67. def isProtectedLocal: Boolean

    attributes: final
  68. def isPublic: Boolean

    attributes: final
  69. def isRefinementClass: Boolean

    attributes: final
  70. def isRoot: Boolean

    attributes: final
  71. def isRootPackage: Boolean

    attributes: final
  72. def isSealed: Boolean

    attributes: final
  73. def isSourceMethod: Boolean

    attributes: final
  74. def isSuperAccessor: Boolean

    attributes: final
  75. def isSynthetic: Boolean

    attributes: final
  76. def isTerm: Boolean

  77. def isTrait: Boolean

  78. def isType: Boolean

  79. def isTypeParameter: Boolean

    attributes: final
  80. 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
  81. 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
  82. 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
  83. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  84. def newAbstractType(name: Name, pos: Position = Symbols.this.NoPosition): Symbol

    attributes: abstract
  85. def newAliasType(name: Name, pos: Position = Symbols.this.NoPosition): Symbol

    attributes: abstract
  86. def newClass(name: Name, pos: Position = Symbols.this.NoPosition): Symbol

    attributes: abstract
  87. def newMethod(name: Name, pos: Position = Symbols.this.NoPosition): Symbol

    attributes: abstract
  88. def newModule(name: Name, clazz: Symbol, pos: Position = Symbols.this.NoPosition): Symbol

    attributes: abstract
  89. def newModuleClass(name: Name, pos: Position = Symbols.this.NoPosition): Symbol

    attributes: abstract
  90. def newValue(name: Name, pos: Position = Symbols.this.NoPosition): Symbol

    attributes: abstract
  91. 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
  92. 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
  93. def owner: Symbol

    The owner of this symbol.

    The owner of this symbol.

    attributes: abstract
  94. def owner_=(sym: Symbol): Unit

  95. 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
  96. def privateWithin_=(sym: Symbol): Unit

  97. def rawInfo: Type

    The raw info of the type

    The raw info of the type

    attributes: abstract
  98. def sourceModule: Symbol

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

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

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

  100. def synchronized[T0](arg0: T0): T0

    attributes: final
    definition classes: AnyRef
  101. def toString(): String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  102. def tpe: Type

    The type of the symbol

    The type of the symbol

  103. 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
  104. def typeOfThis_=(tp: Type): Unit

  105. def wait(): Unit

    attributes: final
    definition classes: AnyRef
  106. def wait(arg0: Long, arg1: Int): Unit

    attributes: final
    definition classes: AnyRef
  107. def wait(arg0: Long): Unit

    attributes: final
    definition classes: AnyRef