object SNumericType extends STypeCompanion
- Alphabetic
- By Inheritance
- SNumericType
- STypeCompanion
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ToBigIntMethod: SMethod
- val ToBitsMethod: SMethod
-
val
ToBits_CostKind: FixedCost
Cost of: 1) creating Boolean collection (one bool for each bit) from a numeric value.
-
val
ToByteMethod: SMethod
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.
- See also
val methods
below
- val ToBytesMethod: SMethod
-
val
ToBytes_CostKind: FixedCost
Cost of: 1) creating Byte collection from a numeric value
- val ToIntMethod: SMethod
- val ToLongMethod: SMethod
- val ToShortMethod: SMethod
-
final
val
allNumericTypes: Array[SPrimType with SNumericType with SMonoType with SEmbeddable with Serializable { type WrappedType >: special.sigma.BigInt with Long with Int with Short with Byte }]
Array of all numeric types ordered by number of bytes in the representation.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
castMethods: Array[String]
Collection of names of numeric casting methods (like
toByte
,toInt
, etc). -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
val
costOfNumericCast: MethodCostFunc
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getMethodById(methodId: Byte): Option[SMethod]
Lookup method by its id in this type.
Lookup method by its id in this type.
- Definition Classes
- STypeCompanion
- Annotations
- @inline()
-
def
getMethodByName(name: String): SMethod
Looks up the method descriptor by the method name.
Looks up the method descriptor by the method name.
- Definition Classes
- STypeCompanion
-
def
getNumericCast(fromTpe: SType, methodName: String, resTpe: SType): Option[NumericCastCompanion]
Convert the given method to a cast operation from fromTpe to resTpe.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
isCastMethod(name: String): Boolean
Checks the given name is numeric type cast method (like toByte, toInt, etc.).
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
methodById(methodId: Byte): SMethod
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.
- Definition Classes
- STypeCompanion
- See also
getMethodById
-
val
methods: Seq[SMethod]
List of methods defined for instances of this type.
List of methods defined for instances of this type.
- Definition Classes
- SNumericType → STypeCompanion
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
reprClass: Class[_]
Since this object is not used in SMethod instances.
Since this object is not used in SMethod instances.
- Definition Classes
- SNumericType → STypeCompanion
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
tNum: STypeVar
Type variable used in generic signatures of method descriptors.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typeId: TypeCode
Type identifier to use in method serialization
Type identifier to use in method serialization
- Definition Classes
- SNumericType → STypeCompanion
-
def
typeName: String
If this is SType instance then returns the name of the corresponding RType.
If this is SType instance then returns the name of the corresponding RType. Otherwise returns the name of type companion object (e.g. SCollection).
- Definition Classes
- STypeCompanion
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated