The NamedFunction object provides utilities for working with instances of the NamedFunction trait, including methods to assert and combine named function instances.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
NamedFunction.type
Members list
Value members
Concrete methods
Ensures that a named function, along with its type constraints, is not null at runtime. This method serves to validate that specific types implementing the NamedFunction trait are properly instantiated and available for the calling context.
Ensures that a named function, along with its type constraints, is not null at runtime. This method serves to validate that specific types implementing the NamedFunction trait are properly instantiated and available for the calling context.
Type parameters
- N
-
the type of the named function that must have evidence of
NamedFunction. - T
-
the class type associated with the named function, requiring evidence of
ClassTag.
Value parameters
- caller
-
the name of the invoking method or context, used for diagnostic messaging.
Attributes
- Returns
-
Unit, as this method performs a validation check without producing a result.
Combines the names of two instances of NamedFunction into a single string.
Combines the names of two instances of NamedFunction into a single string.
This method retrieves the names of the two given types using the implicit evidence of their NamedFunction instances and concatenates them with a "+" separator.
Type parameters
- T0
-
the type of the first
NamedFunction. - T1
-
the type of the second
NamedFunction.
Attributes
- Returns
-
a string representation of the combined names of the two
NamedFunctions, separated by "+".
Combines the names of three instances of NamedFunction for specified types T0, T1, and T2. The names are derived using the named method and concatenated using the combineNames3 method.
Combines the names of three instances of NamedFunction for specified types T0, T1, and T2. The names are derived using the named method and concatenated using the combineNames3 method.
Type parameters
- T0
-
the type of the first
NamedFunction. - T1
-
the type of the second
NamedFunction. - T2
-
the type of the third
NamedFunction.
Attributes
- Returns
-
a concatenated string representation of the names of the three
NamedFunctioninstances.
Combines the names of four types, each having an implicit NamedFunction instance.
Combines the names of four types, each having an implicit NamedFunction instance.
This method retrieves the NamedFunction instance for each type parameter (T0, T1, T2, T3), extracts their names via the name method, and concatenates them using a specific combination logic defined in the combineNames4 method.
Type parameters
- T0
-
the first type parameter with an associated
NamedFunction. - T1
-
the second type parameter with an associated
NamedFunction. - T2
-
the third type parameter with an associated
NamedFunction. - T3
-
the fourth type parameter with an associated
NamedFunction.
Attributes
- Returns
-
a
Stringrepresenting the combined names of the four types, formatted according to the logic incombineNames4.
Combines the names of five NamedFunction instances into a single string. The names are retrieved using the named method and then combined using the combineNames5 method.
Combines the names of five NamedFunction instances into a single string. The names are retrieved using the named method and then combined using the combineNames5 method.
Type parameters
- T0
-
the type of the first
NamedFunction. - T1
-
the type of the second
NamedFunction. - T2
-
the type of the third
NamedFunction. - T3
-
the type of the fourth
NamedFunction. - T4
-
the type of the fifth
NamedFunction.
Attributes
- Returns
-
a string representing the combined names of the five
NamedFunctioninstances.
Combines the names of six types, represented as instances of NamedFunction, into a single string. The result is constructed by combining the result of combineNamed5 for the first five types and the name of the sixth type.
Combines the names of six types, represented as instances of NamedFunction, into a single string. The result is constructed by combining the result of combineNamed5 for the first five types and the name of the sixth type.
Type parameters
- T0
-
the first type parameter, required to have a
NamedFunctionevidence. - T1
-
the second type parameter, required to have a
NamedFunctionevidence. - T2
-
the third type parameter, required to have a
NamedFunctionevidence. - T3
-
the fourth type parameter, required to have a
NamedFunctionevidence. - T4
-
the fifth type parameter, required to have a
NamedFunctionevidence. - T5
-
the sixth type parameter, required to have a
NamedFunctionevidence.
Attributes
- Returns
-
a string representing the concatenated names of the six types, separated by "+".
Combines the names of seven NamedFunction instances into a single string. The resulting string is constructed by concatenating the combined names of the first six NamedFunction instances using combineNamed6, followed by the name of the seventh NamedFunction, separated by a plus sign ("+").
Combines the names of seven NamedFunction instances into a single string. The resulting string is constructed by concatenating the combined names of the first six NamedFunction instances using combineNamed6, followed by the name of the seventh NamedFunction, separated by a plus sign ("+").
Type parameters
- T0
-
the type of the first
NamedFunction. - T1
-
the type of the second
NamedFunction. - T2
-
the type of the third
NamedFunction. - T3
-
the type of the fourth
NamedFunction. - T4
-
the type of the fifth
NamedFunction. - T5
-
the type of the sixth
NamedFunction. - T6
-
the type of the seventh
NamedFunction.
Attributes
- Returns
-
a string composed of the combined names of the seven
NamedFunctioninstances.
Combines the names of two NamedFunction instances using the given type constraints.
Combines the names of two NamedFunction instances using the given type constraints.
Type parameters
- T0
-
the type of the first
NamedFunction, which must have an implicitNamedFunctioninstance. - T1
-
the type of the second
NamedFunction.
Value parameters
- t1n
-
the second
NamedFunctionof typeT1, whose name will be combined with the name of the first function.
Attributes
- Returns
-
a
Stringrepresenting the combined names of the twoNamedFunctioninstances.
Combines the names of three types using the associated NamedFunction trait. Each type T0, T1, and T2 is expected to have an implicitly available instance of NamedFunction. The name for T2 is provided explicitly as an argument.
Combines the names of three types using the associated NamedFunction trait. Each type T0, T1, and T2 is expected to have an implicitly available instance of NamedFunction. The name for T2 is provided explicitly as an argument.
Type parameters
- T0
-
the first type parameter with an implicit
NamedFunctionavailable - T1
-
the second type parameter with an implicit
NamedFunctionavailable - T2
-
the third type parameter whose associated
NamedFunctionis explicitly passed
Value parameters
- t2n
-
the
NamedFunctioninstance associated with the third typeT2
Attributes
- Returns
-
a string made by combining the names of
T0,T1, andT2as defined by their respectiveNamedFunction
Combines the names of four NamedFunction instances into a single string representation.
Combines the names of four NamedFunction instances into a single string representation.
Type parameters
- T0
-
the type parameter of the first
NamedFunction. - T1
-
the type parameter of the second
NamedFunction. - T2
-
the type parameter of the third
NamedFunction. - T3
-
the type parameter of the fourth
NamedFunction.
Value parameters
- t3n
-
the fourth
NamedFunctioninstance to include in the combination.
Attributes
- Returns
-
a string representing the combined names of the four
NamedFunctioninstances.
Combines the names of five types, where the first four types are inferred from context and the fifth type is provided explicitly via its NamedFunction instance.
Combines the names of five types, where the first four types are inferred from context and the fifth type is provided explicitly via its NamedFunction instance.
Type parameters
- T0
-
the first type, which has an implicit
NamedFunctionin scope. - T1
-
the second type, which has an implicit
NamedFunctionin scope. - T2
-
the third type, which has an implicit
NamedFunctionin scope. - T3
-
the fourth type, which has an implicit
NamedFunctionin scope. - T4
-
the fifth type, represented by the
NamedFunctionpassed explicitly.
Value parameters
- t4n
-
an instance of
NamedFunctionrepresenting the fifth type to combine.
Attributes
- Returns
-
the combined name as a
String.
Combines the names of six NamedFunction instances, where the first five types are implicitly resolved, and the sixth is provided as a parameter.
Combines the names of six NamedFunction instances, where the first five types are implicitly resolved, and the sixth is provided as a parameter.
Type parameters
- T0
-
the type of the first
NamedFunctioninstance. - T1
-
the type of the second
NamedFunctioninstance. - T2
-
the type of the third
NamedFunctioninstance. - T3
-
the type of the fourth
NamedFunctioninstance. - T4
-
the type of the fifth
NamedFunctioninstance. - T5
-
the type of the sixth
NamedFunctioninstance.
Value parameters
- t5n
-
the sixth
NamedFunctioninstance whose name is combined with the previous five.
Attributes
- Returns
-
a string representing the combined names of the six
NamedFunctioninstances.
Combines the names of two NamedFunction instances into a single string.
Combines the names of two NamedFunction instances into a single string.
Value parameters
- t0n
-
the first
NamedFunctioninstance - t1n
-
the second
NamedFunctioninstance
Attributes
- Returns
-
a string representing the combined names of the two
NamedFunctioninstances, separated by a "+" symbol
Combines the names of three given NamedFunction instances into a single string.
Combines the names of three given NamedFunction instances into a single string.
Value parameters
- t0n
-
the first
NamedFunctioninstance whose name is to be combined. - t1n
-
the second
NamedFunctioninstance whose name is to be combined. - t2n
-
the third
NamedFunctioninstance whose name is to be combined.
Attributes
- Returns
-
a string representing the combined names of the three
NamedFunctioninstances.
Combines the names of four NamedFunction instances into a single string. The result is constructed by combining the names of the first three NamedFunction instances using combineNames3, followed by appending the name of the fourth NamedFunction instance, separated by a "+".
Combines the names of four NamedFunction instances into a single string. The result is constructed by combining the names of the first three NamedFunction instances using combineNames3, followed by appending the name of the fourth NamedFunction instance, separated by a "+".
Value parameters
- t0n
-
the first
NamedFunctionwhose name will be included in the combined result - t1n
-
the second
NamedFunctionwhose name will be included in the combined result - t2n
-
the third
NamedFunctionwhose name will be included in the combined result - t3n
-
the fourth
NamedFunctionwhose name will be appended in the combined result
Attributes
- Returns
-
a string representing the combined names of the four
NamedFunctioninstances
Combines the names of five NamedFunction instances into a single string.
Combines the names of five NamedFunction instances into a single string.
Value parameters
- t0n
-
the first
NamedFunctioninstance. - t1n
-
the second
NamedFunctioninstance. - t2n
-
the third
NamedFunctioninstance. - t3n
-
the fourth
NamedFunctioninstance. - t4n
-
the fifth
NamedFunctioninstance.
Attributes
- Returns
-
a string representation of the combined names of the five instances.
Combines the names of six NamedFunction instances into a single string. The resulting string is formed by concatenating the names of the first five instances using the combineNames5 method and appending the name of the sixth instance, separated by a "+" symbol.
Combines the names of six NamedFunction instances into a single string. The resulting string is formed by concatenating the names of the first five instances using the combineNames5 method and appending the name of the sixth instance, separated by a "+" symbol.
Value parameters
- t0n
-
the first
NamedFunctioninstance. - t1n
-
the second
NamedFunctioninstance. - t2n
-
the third
NamedFunctioninstance. - t3n
-
the fourth
NamedFunctioninstance. - t4n
-
the fifth
NamedFunctioninstance. - t5n
-
the sixth
NamedFunctioninstance.
Attributes
- Returns
-
a string representing the combined names of the six
NamedFunctioninstances.
Retrieves the name of the parameterized entity P by applying a NamedFunction to it. If the name is not available, returns the string "uninitialized".
Retrieves the name of the parameterized entity P by applying a NamedFunction to it. If the name is not available, returns the string "uninitialized".
Attributes
- Returns
-
A string representing the name of the parameterized entity
Por "uninitialized" if the name is not set.
Provides the implicit NamedFunction instance for the specified type P.
Provides the implicit NamedFunction instance for the specified type P.
This method uses the context bound P: NamedFunction to ensure that an implicit NamedFunction instance for the type P is available in the current scope. If such an instance exists, it returns it using the implicitly method.
Type parameters
- P
-
the type for which the
NamedFunctioninstance is required.
Attributes
- Returns
-
an instance of
NamedFunction[P]from the implicit scope.