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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def bothNames: List[Name]
  10. final def charAt(i: Int): Char

    returns

    the i'th Char of this name

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

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

  18. def debugString: String
  19. def decode: String

    Replace $op_name by corresponding operator symbol.

  20. def decoded: String

    !!! Duplicative but consistently named.

    !!! Duplicative but consistently named.

    Definition Classes
    NameNameApi
  21. def decodedName: ThisNameType

    The decoded name, still represented as a name.

    The decoded name, still represented as a name.

    Definition Classes
    NameNameApi
  22. def encode: ThisNameType

    Replace operator symbols by corresponding $op_name.

  23. 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
  24. def encodedName: ThisNameType

    The encoded name, still represented as a name.

    The encoded name, still represented as a name.

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

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

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

    Does this name end with suffix?

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

    returns

    the hash value of this name

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

    The lastPos methods already return -1 on failure.

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

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

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

    The length of this name.

    The length of this name.

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

    Return a new name based on string transformation.

  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. final def nonEmpty: Boolean
  53. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  54. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  55. 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

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

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

    returns

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

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

    returns

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

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

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

  61. final def start: Int

    Index into name table

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

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

    Does this name start with prefix at given start index?

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

    Does this name start with prefix?

  68. def string_==(that: String): Boolean
  69. 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.

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

    returns

    the ascii representation of this name

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

Inherited from CharSequence

Inherited from Names.NameApi

Inherited from AnyRef

Inherited from Any

Ungrouped