type or type constructor descriptor
method name
method signature type,
where stype.tDom
- argument type and
stype.tRange - method result type.
method code, it should be unique among methods of the same objType.
cost descriptor for this method
meta information connecting SMethod with ErgoTree (see MethodIRInfo)
optional human readable method description data
optional specification of how the cost should be computed for the given method call (See ErgoTreeEvaluator.calcCost method).
Lookup ArgInfo for the given argName or throw an exception.
optional specification of how the cost should be computed for the given method call (See ErgoTreeEvaluator.calcCost method).
cost descriptor for this method
optional human readable method description data
Returns Java refection Method which must be invoked to evaluate this method.
Returns Java refection Method which must be invoked to evaluate this method.
The method is resolved by its name using name + "_eval"
naming convention.
map_eval
, flatMap_eval
and other *_eval
methods.
Additional type descriptors, which are necessary to perform invocation of Method associated with this instance.
Additional type descriptors, which are necessary to perform invocation of Method associated with this instance.
MethodCall.eval
Return generic template of this method.
Return generic template of this method.
Invoke this method on the given object with the arguments.
Invoke this method on the given object with the arguments. This is used for methods with FixedCost costKind.
meta information connecting SMethod with ErgoTree (see MethodIRInfo)
Finds and keeps the Method instance which corresponds to this method descriptor.
Finds and keeps the Method instance which corresponds to this method descriptor. The lazy value is forced only if irInfo.javaMethod == None
method code, it should be unique among methods of the same objType.
method name
type or type constructor descriptor
Operation descriptor of this method.
Returns OperationId for AOT costing.
Name of a language operation represented by this method.
Specializes this instance by creating a new SMethod instance where signature is specialized with respect to the given object and args types.
Specializes this instance by creating a new SMethod instance where signature
is specialized with respect to the given object and args types. It is used in
sigmastate.serialization.MethodCallSerializer parse
method, so it is part of
consensus protocol.
specific type of method receiver (aka object)
specific types of method arguments
new instance of method descriptor with specialized signature
method signature type,
where stype.tDom
- argument type and
stype.tRange - method result type.
Create a new instance in which the stype
field transformed using
the given substitution.
Create a new instance with the given cost function.
Create a new instance with the given IR builder (aka MethodCall rewriter) parameter.
Create a new instance with the given OperationInfo parameters.
Create a new instance with the given OperationInfo parameters. NOTE: opDesc parameter is not defined and falls back to None.
Create a new instance with the given OperationInfo parameters.
Create a new instance with the given stype.
Represents method descriptor.
type or type constructor descriptor
method name
method signature type, where
stype.tDom
- argument type and
stype.tRange- method result type.
method code, it should be unique among methods of the same objType.
cost descriptor for this method
meta information connecting SMethod with ErgoTree (see MethodIRInfo)
optional human readable method description data
optional specification of how the cost should be computed for the given method call (See ErgoTreeEvaluator.calcCost method).