Packages

sealed abstract class Name extends NameApi with CharSequence

The name class. TODO - resolve schizophrenia regarding whether to treat Names as Strings or Strings as Names. Give names the key functions the absence of which make people want Strings all the time.

Linear Supertypes
CharSequence, Names.NameApi, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Name
  2. CharSequence
  3. NameApi
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type ThisNameType >: Null <: Name

Abstract Value Members

  1. abstract def companionName: Name
  2. abstract def isTermName: Boolean

    Checks whether the name is a term name

    Checks whether the name is a term name

    Definition Classes
    NameNameApi
  3. abstract def isTypeName: Boolean

    Checks whether the name is a type name

    Checks whether the name is a type name

    Definition Classes
    NameNameApi
  4. abstract def nameKind: String
  5. abstract def newName(str: String): Name with ThisNameType

    Return a new name of the same variety.

  6. abstract def next: Name with ThisNameType

    The next name in the same hash bucket.

  7. abstract def subName(from: Int, to: Int): Name with ThisNameType

    Return the subname with characters from from to to-1.

  8. abstract def thisName: ThisNameType
    Attributes
    protected[this]
  9. abstract def toTermName: TermName

    Returns a term name that wraps the same string as this

    Returns a term name that wraps the same string as this

    Definition Classes
    NameNameApi
  10. abstract def toTypeName: TypeName

    Returns a type name that wraps the same string as this

    Returns a type name that wraps the same string as this

    Definition Classes
    NameNameApi

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 append(separator: Char, suffix: Name): Name with ThisNameType
  5. def append(suffix: Name): Name with ThisNameType
  6. def append(suffix: String): Name with ThisNameType
  7. def append(ch: Char): Name with ThisNameType

    TODO - find some efficiency.

  8. final def appendTo(buffer: StringBuffer, start: Int, length: Int): Unit
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. val cachedString: String
    Attributes
    protected
  11. final def charAt(i: Int): Char

    returns

    the i'th Char of this name

    Definition Classes
    Name → CharSequence
  12. def chars(): IntStream
    Definition Classes
    CharSequence
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  14. def codePoints(): IntStream
    Definition Classes
    CharSequence
  15. final def containsChar(ch: Char): Boolean
  16. final def containsName(subname: Name): Boolean
  17. final def containsName(subname: String): Boolean
  18. final def copyChars(cs: Array[Char], offset: Int): Unit

    Copy bytes of this name to buffer cs, starting at position offset.

  19. def debugString: String
  20. def decode: String

    Replace $op_name by corresponding operator symbol.

  21. def decoded: String

    !!! Duplicative but consistently named.

    !!! Duplicative but consistently named.

    Definition Classes
    NameNameApi
  22. def decodedName: ThisNameType

    The decoded name, still represented as a name.

    The decoded name, still represented as a name.

    Definition Classes
    NameNameApi
  23. def encode: ThisNameType

    Replace operator symbols by corresponding $op_name.

  24. def encoded: String

    Replaces all occurrences of operator symbols in this name by corresponding $op_names.

    Replaces all occurrences of operator symbols in this name by corresponding $op_names. Example: foo_+= becomes foo_$plus$eq.

    Definition Classes
    NameNameApi
  25. def encodedName: ThisNameType

    The encoded name, still represented as a name.

    The encoded name, still represented as a name.

    Definition Classes
    NameNameApi
  26. final def endChar: Char
  27. final def endsWith(name: String): Boolean
  28. final def endsWith(char: Char): Boolean
  29. final def endsWith(suffix: String, end: Int): Boolean
  30. final def endsWith(suffix: Name, end: Int): Boolean

    Does this name end with suffix just before given end index?

  31. final def endsWith(suffix: Name): Boolean

    Does this name end with suffix?

  32. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  34. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  36. final def hashCode(): Int

    returns

    the hash value of this name

    Definition Classes
    Name → AnyRef → Any
  37. val index: Int
    Attributes
    protected
  38. def indexOf(s: String): Int
  39. def indexOf(ch: Char, fromIndex: Int): Int
  40. def indexOf(ch: Char): Int
  41. final def isEmpty: Boolean
  42. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  43. def isOperatorName: Boolean
  44. def lastIndexOf(s: String): Int
  45. def lastIndexOf(ch: Char): Int

    The lastPos methods already return -1 on failure.

  46. final def lastPos(c: Char, start: Int): Int

    Returns the index of the last occurrence of char c in this name from start, -1 if not found.

    Returns the index of the last occurrence of char c in this name from start, -1 if not found.

    c

    the character

    start

    the index from which to search

    returns

    the index of the last occurrence of c

  47. final def lastPos(c: Char): Int

    Returns the index of last occurrence of char c in this name, -1 if not found.

    Returns the index of last occurrence of char c in this name, -1 if not found.

    c

    the character

    returns

    the index of the last occurrence of c

  48. val len: Int
    Attributes
    protected
  49. final def length(): Int

    The length of this name.

    The length of this name.

    Definition Classes
    Name → CharSequence
  50. def longString: String
  51. def mapName(f: (String) ⇒ String): Name with ThisNameType

    Return a new name based on string transformation.

  52. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. final def nonEmpty: Boolean
  54. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  55. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  56. final def pos(s: String, start: Int): Int

    Returns the index of the first occurrence of nonempty string s in this name from start, length if not found.

    Returns the index of the first occurrence of nonempty string s in this name from start, length if not found.

    s

    the string

    start

    the index from which to search

    returns

    the index of the first occurrence of s

  57. final def pos(c: Char, start: Int): Int

    Returns the index of the first occurrence of character c in this name from start, length if not found.

    Returns the index of the first occurrence of character c in this name from start, length if not found.

    c

    the character

    start

    the index from which to search

    returns

    the index of the first occurrence of c

  58. final def pos(s: String): Int

    returns

    the index of first occurrence of s in this name, length if not found

  59. final def pos(c: Char): Int

    returns

    the index of first occurrence of char c in this name, length if not found

  60. def prepend(prefix: String): Name with ThisNameType
  61. def replace(from: Char, to: Char): Name

    Replace all occurrences of from by to in name; result is always a term name.

  62. final def start: Int

    Index into name table

  63. final def startChar: Char

    Some thoroughly self-explanatory convenience functions.

    Some thoroughly self-explanatory convenience functions. They assume that what they're being asked to do is known to be valid.

  64. final def startsWith(name: String): Boolean
  65. final def startsWith(char: Char): Boolean
  66. final def startsWith(prefix: String, start: Int): Boolean
  67. final def startsWith(prefix: Name, start: Int): Boolean

    Does this name start with prefix at given start index?

  68. final def startsWith(prefix: Name): Boolean

    Does this name start with prefix?

  69. def string_==(that: String): Boolean
  70. def string_==(that: Name): Boolean

    returns

    true if the string value of this name is equal to the string value of the given name or String.

  71. def subSequence(from: Int, to: Int): CharSequence
    Definition Classes
    Name → CharSequence
  72. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  73. final def toChars: Array[Char]

    returns

    the ascii representation of this name

  74. final def toString(): String
    Definition Classes
    Name → CharSequence → AnyRef → Any
  75. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Deprecated Value Members

  1. def bothNames: List[Name]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.9) Use either toTermName or toTypeName

Inherited from CharSequence

Inherited from Names.NameApi

Inherited from AnyRef

Inherited from Any

Ungrouped