SimpleName
A simple name is essentially an interned string
Attributes
- Graph
-
- Supertypes
-
class TermNameclass Nametrait Showableclass Designatorclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
This name downcasted to a simple term name
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
.
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
.
Attributes
- Definition Classes
The name contains given character ch
The name contains given character ch
Attributes
A string showing the internal structure of this name. By contrast, toString
shows the name after conversion to a simple name.
A string showing the internal structure of this name. By contrast, toString
shows the name after conversion to a simple name.
Attributes
Replace operator expansions by corresponding operator symbols.
Replace operator symbols by corresponding operator expansions
Does (the last part of) this name end with str
?
Attributes
- Definition Classes
A character in this name satisfies predicate p
A character in this name satisfies predicate p
Attributes
The first part of this (possible qualified) name
All characters in this name satisfy predicate p
All characters in this name satisfy predicate p
Attributes
Copy character slice (from until end) to character array starting at dstStart
.
Copy character slice (from until end) to character array starting at dstStart
.
Attributes
Calculate a hash code value for the object.
Calculate a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
- Returns
-
the hash code value for this object.
- Definition Classes
-
Name -> Any
Is this name empty?
The index of the last occurrence of ch
in this name which is at most start
.
The index of the last occurrence of ch
in this name which is at most start
.
Attributes
The index of the last occurrence of str
in this name
The index of the last occurrence of str
in this name
Attributes
The last part of this (possible qualified) name
Attributes
- Definition Classes
Apply f
to last simple term name making up this name
Apply f
to all simple term names making up this name
Apply rewrite rule given by f
to some part of this name, skipping and rewrapping other decorators. Stops at DerivedNames with infos of kind QualifiedInfo. If f
does not apply to any part, return name unchanged.
Apply rewrite rule given by f
to some part of this name, skipping and rewrapping other decorators. Stops at DerivedNames with infos of kind QualifiedInfo. If f
does not apply to any part, return name unchanged.
Attributes
- Definition Classes
Replace all occurrences of from
to to
in this name
A slice of this name making up the characters between from
and until
(exclusive)
A slice of this name making up the characters between from
and until
(exclusive)
Attributes
Same as slice, but as a string
Same as slice, but as a string
Attributes
If this a qualified name, split it into underlying, last part, and separator Otherwise return an empty name, the name itself, and "")
If this a qualified name, split it into underlying, last part, and separator Otherwise return an empty name, the name itself, and "")
Attributes
- Definition Classes
Does (the first part of) this name starting at index start
starts with str
?
Does (the first part of) this name starting at index start
starts with str
?
Attributes
- Definition Classes
This name converted to a simple term name
Inherited methods
Append other
to the last part of this name
A derived name consisting of this name and the info of kind
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
This name without any info of the given kind
. Excepted, as always, is the underlying name part of a qualified name.
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
Attributes
- Inherited from:
- Showable
Does this name contain an info of the given kind? Excepted, as always, is the underlying name part of a qualified name.
This name converted to a simple term name and in addition with all symbolic operator characters expanded.
This name converted to a simple term name and in addition with all symbolic operator characters expanded.
Attributes
- Inherited from:
- TermName
Convert to string after mangling
Convert to string as follows. If this is a qualified name <first> <sep> <last>
, the sanitized version of f1(<first>) <sep> f2(<last>)
. Otherwise f2
applied to this name.
Convert to string as follows. If this is a qualified name <first> <sep> <last>
, the sanitized version of f1(<first>) <sep> f2(<last>)
. Otherwise f2
applied to this name.
Attributes
- Inherited from:
- TermName
Same as replace, but does not stop at DerivedNames with infos of kind QualifiedInfo.
Same as replace, but does not stop at DerivedNames with infos of kind QualifiedInfo.
Attributes
- Inherited from:
- Name
The string representation of this showable element.
The string representation with each line after the first one indented by the given given margin (in spaces).
The string representation with each line after the first one indented by the given given margin (in spaces).
Attributes
- Inherited from:
- Showable
The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.
The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.
Attributes
- Inherited from:
- Showable
Convert name to text via printer
.
Attributes
- Inherited from:
- TermName