Names

object Names
class Object
trait Matchable
class Any
Names.type

Type members

Classlikes

final case class DerivedName(underlying: TermName, info: NameInfo) extends TermName

A term name that's derived from an underlying name and that adds info to it.

A term name that's derived from an underlying name and that adds info to it.

abstract class Designator

A common superclass of Name and Symbol. After bootstrap, this should be just the type alias Name | Symbol

A common superclass of Name and Symbol. After bootstrap, this should be just the type alias Name | Symbol

abstract class Name extends Designator with Showable

A name if either a term name or a type name. Term names can be simple or derived. A simple term name is essentially an interned string stored in a name table. A derived term name adds a tag, and possibly a number or a further simple name to some other name.

A name if either a term name or a type name. Term names can be simple or derived. A simple term name is essentially an interned string stored in a name table. A derived term name adds a tag, and possibly a number or a further simple name to some other name.

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

A simple name is essentially an interned string

A simple name is essentially an interned string

abstract class TermName extends Name

Names for terms, can be simple or derived

Names for terms, can be simple or derived

final class TypeName(val toTermName: TermName) extends Name

Types

Things that can be turned into names with totermName and toTypeName Decorators defines implements these as extension methods for strings.

Things that can be turned into names with totermName and toTypeName Decorators defines implements these as extension methods for strings.

Value members

Concrete methods

def termName(cs: Array[Char], offset: Int, len: Int): SimpleName

Create a term name from the characters in cs[offset..offset+len-1]. Assume they are already encoded.

Create a term name from the characters in cs[offset..offset+len-1]. Assume they are already encoded.

def termName(bs: Array[Byte], offset: Int, len: Int): SimpleName

Create a term name from the UTF8 encoded bytes in bs[offset..offset+len-1]. Assume they are already encoded.

Create a term name from the UTF8 encoded bytes in bs[offset..offset+len-1]. Assume they are already encoded.

Create a term name from a string. See sliceToTermName in Decorators for a more efficient version which however requires a Context for its operation.

Create a term name from a string. See sliceToTermName in Decorators for a more efficient version which however requires a Context for its operation.

def typeName(cs: Array[Char], offset: Int, len: Int): TypeName

Create a type name from the characters in cs[offset..offset+len-1]. Assume they are already encoded.

Create a type name from the characters in cs[offset..offset+len-1]. Assume they are already encoded.

def typeName(bs: Array[Byte], offset: Int, len: Int): TypeName

Create a type name from the UTF8 encoded bytes in bs[offset..offset+len-1]. Assume they are already encoded.

Create a type name from the UTF8 encoded bytes in bs[offset..offset+len-1]. Assume they are already encoded.

Create a type name from a string

Create a type name from a string

Concrete fields

The term name represented by the empty string

The term name represented by the empty string

The type name represented by the empty string

The type name represented by the empty string

inline val InitialNameSize: 131072

Implicits

Implicits

implicit val NameOrdering: Ordering[Name]