Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.runtime/ScalaRunTime

ScalaRunTime

scala.runtime.ScalaRunTime

The object ScalaRunTime provides support methods required by the scala runtime. All these methods should be considered outside the API and subject to change or removal without notice.

Attributes

Source
ScalaRunTime.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type

Members list

Value members

Concrete methods

Attributes

Source
ScalaRunTime.scala
defanyValClass[T <:AnyVal :ClassTag](value:T):Class[T]

Return the class object representing an unboxed value type, e.g., classOf[int], not classOf[java.lang.Integer].

Return the class object representing an unboxed value type, e.g., classOf[int], not classOf[java.lang.Integer]. The compiler rewrites expressions like 5.getClass to come here.

Attributes

Source
ScalaRunTime.scala
defarrayClass(clazz:Class[_]):Class[_]

Return the class object representing an array with element classclazz.

Return the class object representing an array with element classclazz.

Attributes

Source
ScalaRunTime.scala

Retrieve generic array element

Retrieve generic array element

Attributes

Source
ScalaRunTime.scala

Get generic array length

Get generic array length

Attributes

Source
ScalaRunTime.scala
defarray_update(xs:AnyRef,idx:Int,value:Any):Unit

update generic array element

update generic array element

Attributes

Source
ScalaRunTime.scala
defdrop[Repr](coll:Repr,num:Int)(implicititerable:IsIterable[Repr] {typeC <:Repr; }):Repr

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala
defisArray(x:Any,atLevel:Int = ...):Boolean

Attributes

Source
ScalaRunTime.scala
defreplStringOf(arg:Any,maxElements:Int):String

stringOf formatted for use in a repl result.

stringOf formatted for use in a repl result.

Attributes

Source
ScalaRunTime.scala

Given any Scala value, convert it to a String.

Given any Scala value, convert it to a String.

The primary motivation for this method is to provide a means for correctly obtaining a String representation of a value, while avoiding the pitfalls of naively calling toString on said value. In particular, it addresses the fact that (a) toString cannot be called on null and (b) depending on the apparent type of an array, toString may or may not print it in a human-readable form.

Value parameters

arg

the value to stringify

Attributes

Returns

a string representation of arg.

Source
ScalaRunTime.scala
defstringOf(arg:Any,maxElements:Int):String

Attributes

Source
ScalaRunTime.scala
deftoArray[T](xs:Seq[T]):Array[AnyRef]

Attributes

Source
ScalaRunTime.scala

Convert an array to an object array.

Convert an array to an object array. Needed to deal with vararg arguments of primitive types that are passed to a generic Java vararg parameter T ...

Attributes

Source
ScalaRunTime.scala

A helper for case classes.

A helper for case classes.

Attributes

Source
ScalaRunTime.scala
defwrapRefArray[T <:AnyRef](xs:Array[T]):ArraySeq[T]

Attributes

Source
ScalaRunTime.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp