SimpleName

final class SimpleName(val start: Int, val length: Int) extends TermName

A simple name is essentially an interned string

class TermName
class Name
trait Showable
class Object
trait Matchable
class Any

Type members

Inherited types

Inherited from
TermName

Value members

Concrete methods

def apply(n: Int): Char

The n'th character

The n'th character

override def asSimpleName: SimpleName
Definition Classes
override def collect[T](f: PartialFunction[Name, T]): Option[T]
Definition Classes
def contains(ch: Char): Boolean

The name contains given character ch

The name contains given character ch

override def decode: SimpleName
Definition Classes
def drop(n: Int): SimpleName
override def encode: SimpleName
Definition Classes
override def endsWith(suffix: String): Boolean
Definition Classes
override def endsWith(suffix: SimpleName): Boolean
Definition Classes
def exists(p: Char => Boolean): Boolean

A character in this name satisfies predicate p

A character in this name satisfies predicate p

override def firstPart: SimpleName
Definition Classes
def forall(p: Char => Boolean): Boolean

All characters in this name satisfy predicate p

All characters in this name satisfy predicate p

def getChars(from: Int, end: Int, dst: Array[Char], dstStart: Int): Unit

Copy character slice (from until end) to character array starting at dstStart.

Copy character slice (from until end) to character array starting at dstStart.

override def hashCode: Int
Definition Classes
Name -> Any
def head: Char
override def isEmpty: Boolean
Definition Classes
def last: Char
def lastIndexOf(ch: Char, start: Int): Int

The index of the last occurrence of ch in this name which is at most start.

The index of the last occurrence of ch in this name which is at most start.

The index of the last occurrence of str in this name

The index of the last occurrence of str in this name

override def lastPart: SimpleName
Definition Classes
final override def mangle: SimpleName
Definition Classes
Definition Classes
Definition Classes
Definition Classes
override def replace(from: Char, to: Char): SimpleName
Definition Classes
def slice(from: Int, end: Int): SimpleName

A slice of this name making up the characters between from and until (exclusive)

A slice of this name making up the characters between from and until (exclusive)

def sliceToString(from: Int, end: Int): String

Same as slice, but as a string

Same as slice, but as a string

override def split: (TermName, SimpleName, String)
Definition Classes
override def startsWith(str: String, start: Int): Boolean
Definition Classes
def take(n: Int): SimpleName
override def toSimpleName: SimpleName
Definition Classes

Inherited methods

def ++(other: String): ThisName
Inherited from
Name
def ++(other: Name): ThisName

Append other to the last part of this name

Append other to the last part of this name

Inherited from
Name
override def asTermName: TermName
Definition Classes
Inherited from
TermName
override def asTypeName: Nothing
Definition Classes
Inherited from
TermName
override def derived(info: NameInfo): TermName
Definition Classes
Inherited from
TermName

A derived name consisting of this name and the info of kind

A derived name consisting of this name and the info of kind

Inherited from
Name
override def equals(that: Any): Boolean
Definition Classes
Name -> Any
Inherited from
Name
override def exclude(kind: NameKind): TermName
Definition Classes
Inherited from
TermName
def fallbackToText(printer: Printer): Text

A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

Inherited from
Showable
Inherited from
TermName
override def is(kind: NameKind): Boolean
Definition Classes
Inherited from
TermName
override def isTermName: Boolean
Definition Classes
Inherited from
TermName
override def isTypeName: Boolean
Definition Classes
Inherited from
TermName
override def likeSpaced(name: Name): TermName
Definition Classes
Inherited from
TermName
final def mangled: ThisName
Inherited from
TermName
Inherited from
TermName

Convert to string as follows. If this is a qualified name <first> <sep> <last>, the sanitized version of f1(<first>) <sep> f2(<last>). Otherwise f2 applied to this name.

Convert to string as follows. If this is a qualified name <first> <sep> <last>, the sanitized version of f1(<first>) <sep> f2(<last>). Otherwise f2 applied to this name.

Inherited from
TermName
def show(using Context): String

The string representation of this showable element.

The string representation of this showable element.

Inherited from
Showable
def showIndented(margin: Int)(using Context): String

The string representation with each line after the first one indented by the given given margin (in spaces).

The string representation with each line after the first one indented by the given given margin (in spaces).

Inherited from
Showable
def showSummary(depth: Int)(using Context): String

The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

Inherited from
Showable
override def toString: String
Definition Classes
TermName -> Any
Inherited from
TermName
override def toTermName: TermName
Definition Classes
Inherited from
TermName
def toText(printer: Printer): Text

Convert name to text via printer.

Convert name to text via printer.

Inherited from
Name
override def toTypeName: TypeName
Definition Classes
Inherited from
TermName
Inherited from
TermName

Concrete fields

val length: Int
val start: Int