API glossary
On this page
Kinds, modifiers and package labels in the Scala API reference. Select an annotation or full API badge to open its definition here.
The signature and entry documentation describe the API’s behavior, including its calling conventions, storage and runtime checks.
Symbol kinds
Kinds identify declarations in the Scala API reference.
module
A singleton object that groups Scala declarations.
The module badge represents object declarations here. Its members belong to that object; the label does not identify a separately installed artifact.
References: Scala singleton objects .
class
A Scala class that defines instances, constructors and members.
Traits and case classes have their own declaration syntax; read the displayed signature for those distinctions.
References: Scala classes .
enum
A Scala enum whose cases describe the alternatives of a type.
Cases can be singleton values or carry constructor parameters.
References: Scala enums .
function
A callable Scala declaration shown at package or object scope.
A def declaration is a method; a function value is a value that can be applied. The signature distinguishes them.
References: Scala methods .
method
A Scala method declared with def, with parameter lists and a result type.
An extension method adds callable syntax to a receiver without changing its type. The extension declaration identifies that receiver and any contextual requirements.
References: Scala method declarations ; Scala extension methods .
property
A Scala value or variable exposed as a member.
val prevents reassignment of its binding; var permits it. A val may still refer to a mutable object.
References: Scala values ; Scala variables .
constant
A named Scala value exposed by the API.
Read its declaration for val, lazy val or a literal value; the badge alone does not promise compile-time evaluation.
References: Scala values .
typealias
A Scala type name defined with type, including an opaque type alias.
An opaque alias hides its representation outside its defining scope while retaining that representation inside it.
References: Scala opaque type aliases .
Modifiers
Modifiers add information about calling, implementing, or accessing a declaration. Their precise effect follows the language and the signature.
opaque
A Scala opaque type alias whose representation is visible in its defining scope and hidden outside it.
Its public bounds and provided operations define how callers can use the alias.
References: Scala opaque type aliases .
overload
Scala methods with the same name and different accepted parameter types or lists.
The call and its available context determine which signature applies.
References: Scala overload resolution .
Package context
Package labels identify where an API is supplied.
package
The library artifact supplying this Scala API.
An artifact dependency and a Scala package used in imports are different names; use the displayed installation and import instructions.
References: Scala packages and imports .