TermSymbol
Attributes
- Graph
-
- Supertypes
Members list
Type members
Value members
Concrete methods
Is this symbol a method with at least one parameter with a default value?
Is this symbol a method with at least one parameter with a default value?
Attributes
Is this term definition abstract override
?
Is this term definition abstract override
?
Attributes
Is this symbol a case class field accessor?
Is this symbol a case class field accessor?
Attributes
Is this symbol a value case
of an enum
?
Is this symbol a value case
of an enum
?
Attributes
Is this symbol an exporter generated by an export
statement?
Is this symbol an exporter generated by an export
statement?
Attributes
Is this an extension
method?
Is this an extension
method?
Attributes
Is this symbol given
or using
?
Is this symbol given
or using
?
Attributes
Is this symbol implicit
?
Is this symbol implicit
?
Attributes
Is this symbol inline
?
Is this symbol inline
?
Attributes
Is this symbol a macro?
Is this symbol a macro?
Attributes
Is this symbol a method, i.e., a def
?
Is this symbol a method, i.e., a def
?
Attributes
- Returns
-
true iff
kind == TermSymbolKind.Method
Is this symbol a module val, i.e., the term of an object
?
Is this symbol a module val, i.e., the term of an object
?
Attributes
- Returns
-
true iff
kind == TermSymbolKind.Module
Is this symbol an accessor for a constructor parameter?
Is this symbol an accessor for a constructor parameter?
Parameters of primary constructors almost always lead to two symbols: the parameter itself, which is local to the constructor, and a "param accessor", which is a field of the class. The param accessor is private if the parameter is not introduced with val
or var
. Otherwise, its visibility is that specified for the val
or var
.
Attributes
Is this symbol a method parameter with a default value?
Is this symbol a method parameter with a default value?
Attributes
Is this symbol the setter of a var
?
Is this symbol the setter of a var
?
Attributes
Is this term symbol a signature-polymorphic method?
Is this term symbol a signature-polymorphic method?
See https://scala-lang.org/files/archive/spec/3.4/06-expressions.html#signature-polymorphic-methods
Attributes
Is this term symbol a stable member?
Is this term symbol a stable member?
A stable member is one that is known to be idempotent.
Attributes
Is this symbol transparent inline
?
Is this symbol transparent inline
?
Attributes
The kind of term definition (val
, lazy val
, var
, def
or object
).
The kind of term definition (val
, lazy val
, var
, def
or object
).
Parameters and bindings declared with none of these keywords are considered val
s.
Attributes
A reference to this symbol that is valid within its declaring scope.
A reference to this symbol that is valid within its declaring scope.
If this symbol is a polymorphic type, for example a polymorphic class, it is left unapplied.
Attributes
- Definition Classes
Get the module class of this module value definition, if it exists:
Get the module class of this module value definition, if it exists:
- for
object val C
=>object class C[$]
Attributes
Returns the possibly signed name of this symbol.
Returns the possibly signed name of this symbol.
For methods with at least one term or type parameter list, this returns a SignedName
. For other terms, the returned name is not a SignedName
.
If the owner
of this symbol is a DeclaringSymbol
, then owner.getDecl(signedName)
will return this symbol. This is not always the case with name
.
Attributes
Inherited methods
All symbols overridden by this symbol.
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
A full name of this symbol for display purposes, such as debugging or error messages.
A full name of this symbol for display purposes, such as debugging or error messages.
displayFullName
must not be used to identify symbols, as it is not unique.
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
Is this symbol an abstract member?
Is this symbol an abstract member?
An abstract member must be implemented in a subclass of its owner. Term members are abstract if they have no right-hand-side. Type members are abstract if they are neither type aliases nor opaque type aliases.
Other kinds of symbols are never abstract members. To test whether a class is abstract
, use ClassSymbol.isAbstractClass.
Note that this is false for abstract override
members.
Attributes
- Inherited from:
- TermOrTypeSymbol
Is this symbol a final member, in the sense that it cannot be overridden?
Is this symbol a final member, in the sense that it cannot be overridden?
Classes are always final members, since Scala 3 does not allow to override (shadow) inner classes.
Other symbols are final members iff they have the final
modifier.
Attributes
- Inherited from:
- TermOrTypeSymbol
Does this symbol have the infix
modifier?
Is this symbol private?
Is this symbol private?
A symbol is said private if it either private
without scope or private[this]
.
Private members obey different rules than other members in a number of situations. In particular, they are not inherited and therefore do not participate in overriding relationships.
Attributes
- Returns
-
true
iffvisibility == Visibility.Private || visibility == Visibility.PrivateThis
- Inherited from:
- TermOrTypeSymbol
Is this symbol public?
Is this symbol public?
Attributes
- Returns
-
true
iffvisibility == Visibility.Public
- Inherited from:
- TermOrTypeSymbol
Is this symbol generated by the compiler?
The symbol whose name and type matches the type of this symbol in the given class.
The symbol whose name and type matches the type of this symbol in the given class.
If inClass == this.owner
, matchingSymbol
returns this symbol. Otherwise, private members and constructors are ignored.
Unlike the override-related methods overriddenSymbol
and overridingSymbol
, this method can return non-empty results when inClass
and this.owner
are unrelated.
siteClass
must be a common subclass of this.owner
and inClass
.
Value parameters
- inClass
-
The class in which to look for a matching symbol
- siteClass
-
The base class from which member types are computed
Attributes
- Throws
-
java.lang.IllegalArgumentException
if
owner.isClass
is false, ifsiteClass.isSubclass(owner.asClass)
is false, or ifsiteClass.isSubclass(inClass)
is false - Inherited from:
- TermOrTypeSymbol
The first symbol overridden by this symbol, if any.
The symbol, in class inClass
, that is overridden by this symbol, if any.
The symbol, in class inClass
, that is overridden by this symbol, if any.
Attributes
- Inherited from:
- TermOrTypeSymbol
Returns true iff this symbol override that
symbol.
The symbol overriding this symbol in given subclass inClass
, if any.
The symbol overriding this symbol in given subclass inClass
, if any.
Attributes
- Inherited from:
- TermOrTypeSymbol
Attributes
- Inherited from:
- Symbol
The source language in which this symbol was defined.
The source language in which this symbol was defined.
The source language of a symbol may have an influence on how it is erased, and therefore on how its signature is computed.
Attributes
- Inherited from:
- TermOrTypeSymbol
Attributes
- Inherited from:
- Symbol
Attributes
- Inherited from:
- Symbol
The declared visibility of this symbol.