Scripting API

Home Scripting API Index Class Overview

nlvm.lang

Class System


public final class System
extends Object

Fundamental fields and methods. This class cannot be instantiated.

Field Summary

static final PrintStream err
The print stream for errors (similar to standard error)
static final PrintStream out
The print stream for normal text (similar to standard out)


Method Summary

static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
  copy elements between two arrays
static long currentTimeMillis()
  Returns a time value in milliseconds
static void exit(int status)
  Exits the running virtual machine
static void gc()
  Runs the garbage collector
static void throwRuntimeException(String a)
  This is a helper function to exit the virtual machine showing an error.


Field Detail


err

public static final PrintStream err

The print stream for errors (similar to standard error)


out

public static final PrintStream out

The print stream for normal text (similar to standard out)


Method Detail


arraycopy

public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)

copy elements between two arrays


currentTimeMillis

public static long currentTimeMillis()

Returns a time value in milliseconds


exit

public static void exit(int status)

Exits the running virtual machine


gc

public static void gc()

Runs the garbage collector


throwRuntimeException

public static void throwRuntimeException(String a)

This is a helper function to exit the virtual machine showing an error.

The language currently does not support exceptions. This can be used to simulate a critical runtime exception.