Cost of: 1) creating Boolean collection (one bool for each bit) from a numeric value.
The following SMethod instances are descriptors of methods available on all numeric types.
The following SMethod instances are descriptors of methods available on all numeric types.
val methods
below
Cost of: 1) creating Byte collection from a numeric value
Collection of names of numeric casting methods (like toByte
, toInt
, etc).
Cost function which is assigned for numeric cast MethodCall nodes in ErgoTree.
Cost function which is assigned for numeric cast MethodCall nodes in ErgoTree. It is called as part of MethodCall.eval method.
Lookup method by its id in this type.
Lookup method by its id in this type.
Looks up the method descriptor by the method name.
Looks up the method descriptor by the method name.
This method should be overriden in derived classes to add new methods in addition to inherited.
This method should be overriden in derived classes to add new methods in addition to inherited.
Typical override: super.getMethods() ++ Seq(m1, m2, m3)
Convert the given method to a cast operation from fromTpe to resTpe.
Returns true if this type has a method with the given name.
Returns true if this type has a method with the given name.
Checks the given name is numeric type cast method (like toByte, toInt, etc.).
Finds a method descriptor SMethod for the given name.
Finds a method descriptor SMethod for the given name.
Lookup method in this type by method's id or throw ValidationException.
Lookup method in this type by method's id or throw ValidationException. This method can be used in trySoftForkable section to either obtain valid method or catch ValidatioinException which can be checked for soft-fork condition. It delegate to getMethodById to lookup method.
getMethodById
Returns -1 if method
is not found.
Returns -1 if method
is not found.
Returns all the methods of this type.
Returns all the methods of this type.
Type for which this container defines methods.
Type for which this container defines methods.
Type variable used in generic signatures of method descriptors.
Represents class of this
.
Represents class of this
.