object SMethod extends Serializable
- Alphabetic
- By Inheritance
- SMethod
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
InvokeDescBuilder = (SFunc) ⇒ Seq[SType]
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.
-
abstract
class
MethodCostFunc extends (ErgoTreeEvaluator, MethodCall, Any, Array[Any]) ⇒ CostDetails
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 themc
node with the givenobj
as method receiver andargs
as method arguments.
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
MethodCallIrBuilder: PartialFunction[(SigmaBuilder, SValue, SMethod, Seq[SValue], STypeSubst), SValue]
Default fallback method call recognizer which builds MethodCall ErgoTree nodes.
-
def
apply(objType: STypeCompanion, name: String, stype: SFunc, methodId: Byte, costKind: CostKind): SMethod
Convenience factory method.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromIds(typeId: Byte, methodId: Byte): SMethod
Looks up SMethod instance for the given type and method ids.
Looks up SMethod instance for the given type and method ids.
- typeId
id of a type which can contain methods
- methodId
id of a method of the type given by
typeId
- returns
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
givenCost(costKind: FixedCost): MethodCostFunc
Returns a cost function which always returs the given cost.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
javaMethodOf[T, A1, A2](methodName: String)(implicit cT: ClassTag[T], cA1: ClassTag[A1], cA2: ClassTag[A2]): RMethod
Return Method descriptor for the given
methodName
on the givencT
type.Return Method descriptor for the given
methodName
on the givencT
type.- methodName
the name of the method to lookup
- cT
the class where to search the methodName
- cA1
the class of the method's first argument
- cA2
the class of the method's second argument
-
def
javaMethodOf[T, A1](methodName: String)(implicit cT: ClassTag[T], cA1: ClassTag[A1]): RMethod
Return Method descriptor for the given
methodName
on the givencT
type.Return Method descriptor for the given
methodName
on the givencT
type.- methodName
the name of the method to lookup
- cT
the class where to search the methodName
- cA1
the class of the method argument
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
perItemCost(costKind: PerItemCost): MethodCostFunc
Returns a cost function which expects
obj
to be ofColl[T]
type and uses its length to compute SeqCostItem -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()