sealed abstract class Name extends NameApi with CharSequence
The name class. TODO - resolve schizophrenia regarding whether to treat Names as Strings or Strings as Names. Give names the key functions the absence of which make people want Strings all the time.
- Alphabetic
- By Inheritance
- Name
- CharSequence
- NameApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def companionName: Name
-
abstract
def
isTermName: Boolean
Checks whether the name is a term name
-
abstract
def
isTypeName: Boolean
Checks whether the name is a type name
- abstract def nameKind: String
-
abstract
def
newName(str: String): Name with ThisNameType
Return a new name of the same variety.
-
abstract
def
next: Name with ThisNameType
The next name in the same hash bucket.
-
abstract
def
subName(from: Int, to: Int): Name with ThisNameType
Return the subname with characters from from to to-1.
-
abstract
def
thisName: ThisNameType
- Attributes
- protected[this]
-
abstract
def
toTermName: TermName
Returns a term name that wraps the same string as
this
-
abstract
def
toTypeName: TypeName
Returns a type name that wraps the same string as
this
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def append(separator: Char, suffix: Name): Name with ThisNameType
- def append(suffix: Name): Name with ThisNameType
- def append(suffix: String): Name with ThisNameType
-
def
append(ch: Char): Name with ThisNameType
TODO - find some efficiency.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bothNames: List[Name]
-
final
def
charAt(i: Int): Char
- returns
the i'th Char of this name
- Definition Classes
- Name → CharSequence
-
def
chars(): IntStream
- Definition Classes
- CharSequence
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
codePoints(): IntStream
- Definition Classes
- CharSequence
- final def containsChar(ch: Char): Boolean
- final def containsName(subname: Name): Boolean
- final def containsName(subname: String): Boolean
-
final
def
copyChars(cs: Array[Char], offset: Int): Unit
Copy bytes of this name to buffer cs, starting at position
offset
. - def debugString: String
-
def
decode: String
Replace $op_name by corresponding operator symbol.
-
def
decoded: String
!!! Duplicative but consistently named.
-
def
decodedName: ThisNameType
The decoded name, still represented as a name.
-
def
encode: ThisNameType
Replace operator symbols by corresponding $op_name.
-
def
encoded: String
Replaces all occurrences of operator symbols in this name by corresponding $op_names.
-
def
encodedName: ThisNameType
The encoded name, still represented as a name.
- final def endChar: Char
- final def endsWith(name: String): Boolean
- final def endsWith(char: Char): Boolean
- final def endsWith(suffix: String, end: Int): Boolean
-
final
def
endsWith(suffix: Name, end: Int): Boolean
Does this name end with suffix just before given end index?
-
final
def
endsWith(suffix: Name): Boolean
Does this name end with suffix?
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
hashCode(): Int
- returns
the hash value of this name
- Definition Classes
- Name → AnyRef → Any
-
val
index: Int
- Attributes
- protected
- def indexOf(s: String): Int
- def indexOf(ch: Char, fromIndex: Int): Int
- def indexOf(ch: Char): Int
- final def isEmpty: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOperatorName: Boolean
- def lastIndexOf(s: String): Int
-
def
lastIndexOf(ch: Char): Int
The lastPos methods already return -1 on failure.
-
final
def
lastPos(c: Char, start: Int): Int
Returns the index of the last occurrence of char c in this name from start, -1 if not found.
Returns the index of the last occurrence of char c in this name from start, -1 if not found.
- c
the character
- start
the index from which to search
- returns
the index of the last occurrence of c
-
final
def
lastPos(c: Char): Int
Returns the index of last occurrence of char c in this name, -1 if not found.
Returns 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
-
val
len: Int
- Attributes
- protected
-
final
def
length(): Int
The length of this name.
The length of this name.
- Definition Classes
- Name → CharSequence
- def longString: String
-
def
mapName(f: (String) ⇒ String): Name with ThisNameType
Return a new name based on string transformation.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def nonEmpty: Boolean
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
pos(s: String, start: Int): Int
Returns the index of the first occurrence of nonempty string s in this name from start, length if not found.
Returns the index of the first occurrence of nonempty string s in this name from start, length if not found.
- s
the string
- start
the index from which to search
- returns
the index of the first occurrence of s
-
final
def
pos(c: Char, start: Int): Int
Returns the index of the first occurrence of character c in this name from start, length if not found.
Returns the index of the first occurrence of character c in this name from start, length if not found.
- c
the character
- start
the index from which to search
- returns
the index of the first occurrence of c
-
final
def
pos(s: String): Int
- returns
the index of first occurrence of s in this name, length if not found
-
final
def
pos(c: Char): Int
- returns
the index of first occurrence of char c in this name, length if not found
- def prepend(prefix: String): Name with ThisNameType
-
def
replace(from: Char, to: Char): Name
Replace all occurrences of
from
byto
in name; result is always a term name. -
final
def
start: Int
Index into name table
-
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.
- final def startsWith(name: String): Boolean
- final def startsWith(char: Char): Boolean
- final def startsWith(prefix: String, start: Int): Boolean
-
final
def
startsWith(prefix: Name, start: Int): Boolean
Does this name start with prefix at given start index?
-
final
def
startsWith(prefix: Name): Boolean
Does this name start with prefix?
- def string_==(that: String): Boolean
-
def
string_==(that: Name): Boolean
- returns
true if the string value of this name is equal to the string value of the given name or String.
-
def
subSequence(from: Int, to: Int): CharSequence
- Definition Classes
- Name → CharSequence
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toChars: Array[Char]
- returns
the ascii representation of this name
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )