Base strings from which synthetic names are derived.
Note that for performance reasons, stripEnd does not verify that the suffix is actually the suffix specified.
Note that for performance reasons, stripEnd does not verify that the suffix is actually the suffix specified.
The expanded name of name
relative to this class base
with given separator
If name
is an expandedName name, the original name.
If name
is an expandedName name, the original name.
Otherwise name
itself.
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.