Packages This Package Prev Next Index
public final class java.lang.Compiler extends java.lang.Object (I-§1.12) { // Methods public static Object command(Object any); §1.5.1 public static boolean compileClass(Class clazz); §1.5.2 public static boolean compileClasses(String string); §1.5.3 public static void disable(); §1.5.4 public static void enable(); §1.5.5 }The Compiler class is provided in support of Java-to-native-code compilers and related services.
When the Java Virtual Machine first starts, it determines if a system property (I-§1.18.9) java.compiler exists. If so, it is assumed to be the name of a library (whose exact location and type is platform-dependent); the loadLibrary method (I-§1.18.13) in class System is called to load that library. If this loading succeeds, the function named java_lang_Compiler_start() in that library is called.
If there is no compiler available, these methods do nothing.
public static Object command(Object any)
any
-
an argument
public static boolean compileClass(Class clazz)
clazz
-
a class
public static boolean compileClasses(String string)
string
-
the name of the classes to compile
public static void disable()
public static void enable()
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)