Some runtime methods (like Coll.map, Coll.flatMap) require additional RType descriptors.
Some runtime methods (like Coll.map, Coll.flatMap) require additional RType descriptors. The builder can extract those descriptors from the given type of the method signature.
Type of functions used to assign cost to method call nodes.
Type of functions used to assign cost to method call nodes.
For a function f: (mc, obj, args) => cost
it is called before the evaluation of
the mc
node with the given obj
as method receiver and args
as method
arguments.
Default fallback method call recognizer which builds MethodCall ErgoTree nodes.
Convenience factory method.
Looks up SMethod instance for the given type and method ids.
Looks up SMethod instance for the given type and method ids.
id of a type which can contain methods
id of a method of the type given by typeId
an instance of SMethod which may contain generic type variables in the
signature (see SMethod.stype). As a result specializeFor
is called by
deserializer to obtain monomorphic method descriptor.
Returns a cost function which always returs the given cost.
Return Method descriptor for the given methodName
on the given cT
type.
Return Method descriptor for the given methodName
on the given cT
type.
the name of the method to lookup
the class where to search the methodName
the class of the method's first argument
the class of the method's second argument
Return Method descriptor for the given methodName
on the given cT
type.
Return Method descriptor for the given methodName
on the given cT
type.
the name of the method to lookup
the class where to search the methodName
the class of the method argument
Returns a cost function which expects obj
to be of Coll[T]
type and
uses its length to compute SeqCostItem