scala.tools.nsc.symtab.Names

Name

sealed abstract class Name extends (Int) ⇒ Char

The name class.

Definition Classes
Names → Names
Source
Names.scala
Linear Supertypes
(Int) ⇒ Char, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Name
  2. Function1
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Name(index: Int, len: Int)

Abstract Value Members

  1. abstract def append(suffix: Name): Name

  2. abstract def append(suffix: String): Name

  3. abstract def companionName: Name

  4. abstract def isTermName: Boolean

  5. abstract def isTypeName: Boolean

  6. abstract def next: Name

    next name in the same hash bucket

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

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

  8. abstract def toTermName: TermName

  9. abstract def toTypeName: TypeName

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def andThen[A](g: (Char) ⇒ A): (Int) ⇒ A

    Definition Classes
    Function1
  7. final def apply(i: Int): Char

    return the i'th Char of this name

    return the i'th Char of this name

    Definition Classes
    Name → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def bothNames: List[Name]

  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def compose[A](g: (A) ⇒ Int): (A) ⇒ Char

    Definition Classes
    Function1
  12. final def containsName(subname: Name): Boolean

  13. final def containsName(subname: String): Boolean

  14. final def copyChars(cs: Array[Char], offset: Int): Unit

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

  15. final def copyUTF8(bs: Array[Byte], offset: Int): Int

    Write to UTF8 representation of this name to given character array.

    Write to UTF8 representation of this name to given character array. Start copying to index to'. Return index of next free byte in array. Array must have enough remaining space for all bytes (i.e. maximally 3*length bytes).

  16. def debugString(): String

  17. def decode: String

    Replace $op_name by corresponding operator symbol.

  18. def encode: Name

    Replace operator symbols by corresponding $op_name.

  19. final def endChar: Char

  20. final def endsWith(name: String): Boolean

  21. final def endsWith(char: Char): Boolean

  22. final def endsWith(suffix: Name, end: Int): Boolean

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

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

    does this name end with suffix?

  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  28. final def hashCode(): Int

    return the hash value of this name

    return the hash value of this name

    Definition Classes
    Name → AnyRef → Any
  29. val index: Int

    Attributes
    protected
  30. final def isEmpty: Boolean

  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def isOperatorName: Boolean

  33. def lastIndexOf(ch: Char): Int

  34. final def lastPos(s: String, start: Int): Int

    return the index of the last occurrence of string s in this name from start, -1 if not found.

    return the index of the last occurrence of string s in this name from start, -1 if not found.

    s

    the string

    start

    ...

    returns

    the index of the last occurrence of s

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

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

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

    c

    the character

    start

    ...

    returns

    the index of the last occurrence of c

  36. final def lastPos(s: String): Int

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

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

    return 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

  38. val len: Int

    Attributes
    protected
  39. final def length: Int

    return the length of this name

  40. def longString: String

  41. def nameKind: String

  42. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. final def nonEmpty: Boolean

  44. final def notify(): Unit

    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  46. final def pos(s: String, start: Int): Int

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

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

    s

    the string

    start

    ...

    returns

    the index of the first occurrence of s

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

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

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

    c

    the character

    start

    ...

    returns

    the index of the first occurrence of c

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

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

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

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

  50. def replace(from: Char, to: Char): Name

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

  51. def start: Int

    Index into name table

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

  53. final def startsWith(name: String): Boolean

  54. final def startsWith(char: Char): Boolean

  55. final def startsWith(prefix: Name, start: Int): Boolean

    does this name start with prefix at given start index?

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

    does this name start with prefix?

  57. final def stripEnd(suffix: String): Name

  58. final def stripEnd(suffix: Name): Name

  59. final def stripStart(prefix: String): Name

  60. final def stripStart(prefix: Name): Name

  61. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  62. final def toChars: Array[Char]

    return the ascii representation of this name

  63. final def toString(): String

    return the string representation of this name

    return the string representation of this name

    Definition Classes
    Name → Function1 → AnyRef → Any
  64. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from (Int) ⇒ Char

Inherited from AnyRef

Inherited from Any