Dotty Documentation

0.14.0-bin-SNAPSHOT

final class TypeName
extends Name

[-] Constructors

TypeName ( toTermName: TermName )

[-] Members

[+] type ThisName = TypeName

A type for names of the same kind as this name

[+] val toTermName : TermName

This name converted to a term name

[+] override def asSimpleName : SimpleName

This name downcasted to a simple term name

[+] override def asTermName : Nothing

This name downcasted to a term name

[+] override def asTypeName : TypeName

This name downcasted to a type name

[+] override def collect ( f: PartialFunction [ Name, T ] ) : Option [ T ]

If partial function f is defined for some part of this name, apply it in a Some, otherwise None. Stops at derived names whose kind has definesNewName = true.

[+] override def debugString : String

A string showing the internal structure of this name. By contrast, toString shows the name after conversion to a simple name.

[+] override def decode : TypeName

Replace operator expansions by corresponding operator symbols.

[+] override def derived ( info: NameInfo ) : TypeName

A derived name consisting of this name and the added info, unless it is already present in this name.

[+] override def encode : TypeName

Replace operator symbols by corresponding operator expansions

[+] override def exclude ( kind: NameKind ) : TypeName

This name without any info of the given kind. Excepted, as always, is the underlying name part of a qualified name.

[+] override def firstPart : SimpleName

The first part of this (possible qualified) name

[+] override def is ( kind: NameKind ) : Boolean

Does this name contain an info of the given kind? Excepted, as always, is the underlying name part of a qualified name.

[+] override def isEmpty : Boolean

Is this name empty?

[+] override def isTermName : Boolean

Is this name a term name?

[+] override def isTypeName : Boolean

Is this name a type name?

[+] override def lastPart : SimpleName

The last part of this (possible qualified) name

[+] override def likeSpaced ( name: Name ) : TypeName

A name in the same (term or type) namespace as this name and with same characters as given name.

[+] override def mangled : TypeName

This name converted to a simple term name and in addition with all symbolic operator characters expanded.

[+] override def mangledString : String

Convert to string after mangling

[+] override def mapLast ( f: SimpleName => SimpleName ) : TypeName

Apply f to last simple term name making up this name

[+] override def mapParts ( f: SimpleName => SimpleName ) : TypeName

Apply f to all simple term names making up this name

[+] override def replace ( f: PartialFunction [ Name, Name ] ) : ThisName

Apply rewrite rule given by f to some part of this name, skipping and rewrapping other decorators. Stops at derived names whose kind has definesNewName = true. If f does not apply to any part, return name unchanged.

[+] override def toSimpleName : SimpleName

This name converted to a simple term name

[+] override def toString : String
[+] override def toTypeName : TypeName

This name converted to a type name