Base strings from which synthetic names are derived.
Base strings from which synthetic names are derived.
The expanded name of name
relative to this class base
with given separator
The expanded name of name
relative to this class base
with given separator
The expanded setter name of name
relative to this class base
The expanded setter name of name
relative to this class base
If name
is an expandedName name, the original name.
If name
is an expandedName name, the original name.
Otherwise name
itself.
The name of a method which stands in for a primitive operation during structural type dispatch.
Postfix/prefix, really.
The name of an accessor for protected symbols.
The name of an accessor for protected symbols.
The name of a setter for protected symbols.
The name of a setter for protected symbols. Used for inherited Java fields.
Translate a String into a list of simple TypeNames and TermNames.
Translate a String into a list of simple TypeNames and TermNames. In all segments before the last, type/term is determined by whether the following separator char is '.' or '#'. In the last segment, the argument "assumeTerm" determines it. Examples:
package foo { object Lorax { object Wog ; class Wog } class Lorax { object Zax ; class Zax } }
f("foo.Lorax", true) == List("foo": Term, "Lorax": Term) // object Lorax f("foo.Lorax", false) == List("foo": Term, "Lorax": Type) // class Lorax f("Lorax.Wog", true) == List("Lorax": Term, "Wog": Term) // object Wog f("Lorax.Wog", false) == List("Lorax": Term, "Wog": Type) // class Wog f("Lorax#Zax", true) == List("Lorax": Type, "Zax": Term) // object Zax f("Lorax#Zax", false) == List("Lorax": Type, "Zax": Type) // class Zax
Note that in actual scala syntax you cannot refer to object Zax without an instance of Lorax, so Lorax#Zax could only mean the type. One might think that Lorax#Zax.type would work, but this is not accepted by the parser. For the purposes of referencing that object, the syntax is allowed.
Return the original name and the types on which this name is specialized.
Return the original name and the types on which this name is specialized. For example,
splitSpecializedName("foo$mIcD$sp") == ('foo', "I", "D")
foo$mIcD$sp
is the name of a method specialized on two type
parameters, the first one belonging to the method itself, on Int,
and another one belonging to the enclosing class, on Double.
(Since version 2.10.0) Use SPECIALIZED_SUFFIX
(Since version 2.10.0) Use SPECIALIZED_SUFFIX
(Since version 2.10.0) Use a method in tpnme
(Since version 2.10.0) Use a method in tpnme
(Since version 2.10.0) Use a method in tpnme
(Since version 2.10.0) Use a method in tpnme