java.lang
Class Runtime
java.lang.Object
java.lang.Runtime
- public class Runtime
- extends Object
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this); |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Runtime
public Runtime()
getRuntime
public static Runtime getRuntime()
- Specifications: pure non_null
exit
public void exit(int status)
addShutdownHook
public void addShutdownHook(non_null Thread hook)
removeShutdownHook
public boolean removeShutdownHook(non_null Thread hook)
halt
public void halt(int status)
runFinalizersOnExit
public static void runFinalizersOnExit(boolean value)
- Deprecated.
exec
public Process exec(non_null String command)
throws IOException
- Throws:
IOException
- Specifications: non_null
exec
public Process exec(non_null String command,
non_null String[] envp)
throws IOException
- Throws:
IOException
- Specifications: non_null
exec
public Process exec(non_null String command,
non_null String[] envp,
non_null File dir)
throws IOException
- Throws:
IOException
- Specifications: non_null
exec
public Process exec(non_null String[] cmdarray)
throws IOException
- Throws:
IOException
- Specifications: non_null
exec
public Process exec(non_null String[] cmdarray,
non_null String[] envp)
throws IOException
- Throws:
IOException
- Specifications: non_null
exec
public Process exec(non_null String[] cmdarray,
non_null String[] envp,
non_null File dir)
throws IOException
- Throws:
IOException
- Specifications: non_null
availableProcessors
public int availableProcessors()
freeMemory
public long freeMemory()
- Specifications: pure
totalMemory
public long totalMemory()
- Specifications: pure
maxMemory
public long maxMemory()
- Specifications: pure
gc
public void gc()
runFinalization
public void runFinalization()
traceInstructions
public void traceInstructions(boolean on)
traceMethodCalls
public void traceMethodCalls(boolean on)
load
public void load(non_null String filename)
loadLibrary
public void loadLibrary(non_null String libname)
getLocalizedInputStream
public InputStream getLocalizedInputStream(non_null InputStream in)
- Deprecated.
- Specifications: non_null
getLocalizedOutputStream
public OutputStream getLocalizedOutputStream(non_null OutputStream out)
- Deprecated.
- Specifications: non_null
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.