object SCollection extends STypeCompanion with MethodByNameUnapply
- Alphabetic
- By Inheritance
- SCollection
- MethodByNameUnapply
- STypeCompanion
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type SAvlTreeArray = SCollection[SAvlTree.type]
- type SBigIntArray = SCollection[SBigInt.type]
- type SBooleanArray = SCollection[SBoolean.type]
- type SBoxArray = SCollection[SBox.type]
- type SByteArray = SCollection[SByte.type]
- type SGroupElementArray = SCollection[SGroupElement.type]
- type SIntArray = SCollection[SInt.type]
- type SLongArray = SCollection[SLong.type]
- type SShortArray = SCollection[SShort.type]
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 AppendMethod: SMethod
- val ApplyMethod: SMethod
-
final
val
CheckFlatmapBody_Info: OperationCostInfo[PerItemCost]
We assume all flatMap body patterns have similar executon cost.
- val ExistsMethod: SMethod
- val FilterMethod: SMethod
- val FlatMapMethod: SMethod
-
val
FlatMapMethod_CostKind: PerItemCost
BaseCost: 1) base cost of Coll.flatMap PerChunkCost: 1) cost of Coll.flatMap (per item) 2) new collection is allocated for each item 3) each collection is then appended to the resulting collection
- val FoldMethod: SMethod
- val ForallMethod: SMethod
- val GetOrElseMethod: SMethod
- val IndexOfMethod: SMethod
- val IndicesMethod: SMethod
-
val
IndicesMethod_CostKind: PerItemCost
Cost of creating a collection of indices
- val MapMethod: SMethod
-
final
val
MatchSingleArgMethodCall_Info: OperationCostInfo[FixedCost]
Operation descriptor for matching
flatMap
method calls with valid lambdas. - val PatchMethod: SMethod
- val SAvlTreeArray: SCollection[SAvlTree.type]
- val SBigIntArray: SCollection[SBigInt.type]
-
val
SBooleanArray: SCollection[SBoolean.type]
This descriptors are instantiated once here and then reused.
- val SBoxArray: SCollection[SBox.type]
- val SByteArray: SCollection[SByte.type]
- val SByteArray2: SCollection[SCollection[SByte.type]]
- val SGroupElementArray: SCollection[SGroupElement.type]
- val SHeaderArray: SCollection[SHeader.type]
- val SIntArray: SCollection[SInt.type]
- val SLongArray: SCollection[SLong.type]
- val SShortArray: SCollection[SShort.type]
- val SSigmaPropArray: SCollection[SSigmaProp.type]
-
val
SizeMethod: SMethod
The following SMethod instances are descriptors of methods defined in
Coll
type. - val SliceMethod: SMethod
-
val
ThisType: SCollection[STypeVar]
This descriptors are instantiated once here and then reused.
- val UpdateManyMethod: SMethod
- val UpdatedMethod: SMethod
- val ZipMethod: SMethod
-
val
Zip_CostKind: PerItemCost
Cost descriptor of Coll.zip operation.
- def apply[T <: SType](implicit elemType: T, ov: Overload1): SCollection[T]
-
def
apply[T <: SType](elemType: T): SCollection[T]
Helper constructors.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkValidFlatmap(mc: MethodCall)(implicit E: ErgoTreeEvaluator): Unit
Checks that the given MethodCall operation is valid flatMap.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
flatMap_BodyPatterns: Array[PartialFunction[SValue, Int]]
This patterns recognize all expressions, which are allowed as lambda body of flatMap.
This patterns recognize all expressions, which are allowed as lambda body of flatMap. Other bodies are rejected with throwing exception.
-
def
flatMap_eval[A, B](mc: MethodCall, xs: Coll[A], f: (A) ⇒ Coll[B])(implicit E: ErgoTreeEvaluator): Coll[B]
Implements evaluation of Coll.flatMap method call ErgoTree node.
Implements evaluation of Coll.flatMap method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
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
getOrElse_eval[A](mc: MethodCall, xs: Coll[A], i: Int, default: A)(implicit E: ErgoTreeEvaluator): A
Implements evaluation of Coll.getOrElse method call ErgoTree node.
Implements evaluation of Coll.getOrElse method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
indexOf_eval[A](mc: MethodCall, xs: Coll[A], elem: A, from: Int)(implicit E: ErgoTreeEvaluator): Int
Implements evaluation of Coll.indexOf method call ErgoTree node.
Implements evaluation of Coll.indexOf method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
def
indices_eval[A, B](mc: MethodCall, xs: Coll[A])(implicit E: ErgoTreeEvaluator): Coll[Int]
Implements evaluation of Coll.indices method call ErgoTree node.
Implements evaluation of Coll.indices method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isValidPropertyAccess(varId: Int, expr: SValue)(implicit E: ErgoTreeEvaluator): Boolean
Check the given expression is valid body of flatMap argument lambda.
Check the given expression is valid body of flatMap argument lambda.
- varId
id of lambda variable (see FuncValue.args)
- expr
expression with is expected to use varId in ValUse node.
- returns
true if the body is allowed
-
def
map_eval[A, B](mc: MethodCall, xs: Coll[A], f: (A) ⇒ B)(implicit E: ErgoTreeEvaluator): Coll[B]
Implements evaluation of Coll.map method call ErgoTree node.
Implements evaluation of Coll.map method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
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
-
lazy val
methods: Seq[SMethod]
List of methods defined for instances of this type.
List of methods defined for instances of this type.
- Definition Classes
- SCollection → 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
patch_eval[A](mc: MethodCall, xs: Coll[A], from: Int, patch: Coll[A], replaced: Int)(implicit E: ErgoTreeEvaluator): Coll[A]
Implements evaluation of Coll.patch method call ErgoTree node.
Implements evaluation of Coll.patch method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
val
reprClass: Class[_]
Class which represents values of this type.
Class which represents values of this type. When method call is executed, the corresponding method of this class is invoked via reflection java.lang.reflect.Method.invoke().
- Definition Classes
- SCollection → STypeCompanion
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tIV: STypeVar
Helper descriptors reused across different method descriptors.
- def tOV: STypeVar
- val tOVColl: SCollection[STypeVar]
- val tPredicate: SFunc
- def throwInvalidFlatmap(mc: MethodCall): Nothing
-
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
- SCollection → 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
-
def
unapply(methodName: String): Option[SMethod]
- Definition Classes
- MethodByNameUnapply
-
def
updateMany_eval[A](mc: MethodCall, coll: Coll[A], indexes: Coll[Int], values: Coll[A])(implicit E: ErgoTreeEvaluator): Coll[A]
Implements evaluation of Coll.updateMany method call ErgoTree node.
Implements evaluation of Coll.updateMany method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
def
updated_eval[A](mc: MethodCall, coll: Coll[A], index: Int, elem: A)(implicit E: ErgoTreeEvaluator): Coll[A]
Implements evaluation of Coll.updated method call ErgoTree node.
Implements evaluation of Coll.updated method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
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( ... )
-
def
zip_eval[A, B](mc: MethodCall, xs: Coll[A], ys: Coll[B])(implicit E: ErgoTreeEvaluator): Coll[(A, B)]
Implements evaluation of Coll.zip method call ErgoTree node.
Implements evaluation of Coll.zip method call ErgoTree node. Called via reflection based on naming convention.
- See also
SMethod.evalMethod
-
object
IsSingleArgMethodCall
Recognizer of
flatMap
method calls with valid lambdas.
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated