blob: 11e90a0789d00d48c1d0644997f9d62a0e10bd63 (
plain) (
tree)
|
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
package scala.compat;
import java.lang.System
import Predef.Class
object Platform {
type StackOverflowError = java.lang.StackOverflowError
def arraycopy(src: AnyRef, srcPos: Int, dest: AnyRef, destPos: Int, length: Int): Unit =
System.arraycopy(src, srcPos, dest, destPos, length)
/** create array of the same type as arrayInstance with the given length */
def createArray(elemClass: Class, length: Int): AnyRef =
java.lang.reflect.Array.newInstance(elemClass, length)
def getClassForName(name: String): Class = java.lang.Class.forName(name)
val EOL = System.getProperty("line.separator", "\n")
def currentTime: Long = System.currentTimeMillis()
def collectGarbage: Unit = System.gc()
}
|