scala.tools.nsc.symtab.Names

Name

class Name extends (Int) ⇒ Char

The name class.

Attributes
sealed abstract
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. def append (suffix: Name): Name

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

    Attributes
    abstract
  3. def companionName : Name

    Attributes
    abstract
  4. def isTermName : Boolean

    Attributes
    abstract
  5. def isTypeName : Boolean

    Attributes
    abstract
  6. def next : Name

    next name in the same hash bucket

    next name in the same hash bucket

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

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

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

    Attributes
    abstract
  8. def toTermName : TermName

    Attributes
    abstract
  9. def toTypeName : TypeName

    Attributes
    abstract

Concrete Value Members

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

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

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

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

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

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

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

    return the i'th Char of this name

    return the i'th Char of this name

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

    Attributes
    final
    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. def containsName (subname: Name): Boolean

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

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

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

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

    Attributes
    final
  15. 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).

    Attributes
    final
  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. def endChar : Char

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

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

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

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

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

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

    does this name end with suffix?

    does this name end with suffix?

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

    Attributes
    final
    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. def getClass (): java.lang.Class[_]

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

    return the hash value of this name

    return the hash value of this name

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

    Attributes
    protected
  30. def isEmpty : Boolean

    Attributes
    final
  31. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  32. def isOperatorName : Boolean

  33. def lastIndexOf (ch: Char): Int

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

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

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

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

    Attributes
    final
  38. val len : Int

    Attributes
    protected
  39. def length : Int

    return the length of this name

    return the length of this name

    Attributes
    final
  40. def longString : String

  41. def nameKind : String

  42. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  43. def nonEmpty : Boolean

    Attributes
    final
  44. def notify (): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

    does this name start with prefix at given start index?

    does this name start with prefix at given start index?

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

    does this name start with prefix?

    does this name start with prefix?

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

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

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

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

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

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

    return the ascii representation of this name

    return the ascii representation of this name

    Attributes
    final
  63. def toString (): String

    return the string representation of this name

    return the string representation of this name

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from (Int) ⇒ Char

Inherited from AnyRef

Inherited from Any