java.lang
public final class: Compiler [javadoc |
source]
java.lang.Object
java.lang.Compiler
The {@code Compiler} class is provided to support Java-to-native-code
compilers and related services. By design, the {@code Compiler} class does
nothing; it serves as a placeholder for a JIT compiler implementation.
When the Java Virtual Machine first starts, it determines if the system
property {@code java.compiler} exists. (System properties are accessible
through System#getProperty(String) and System#getProperty(String, String) . If so, it is assumed to be the name of
a library (with a platform-dependent exact location and type); System#loadLibrary is called to load that library. If this loading
succeeds, the function named {@code java_lang_Compiler_start()} in that
library is called.
If no compiler is available, these methods do nothing.
- author:
Frank - Yellin
- since:
JDK1.0 -
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.lang.Compiler Detail: |
public static native Object command(Object any)
Examines the argument type and its fields and perform some documented
operation. No specific operations are required. |
public static native boolean compileClass(Class clazz)
Compiles the specified class. |
public static native boolean compileClasses(String string)
Compiles all classes whose name matches the specified string. |
public static native void disable()
Cause the Compiler to cease operation. |
public static native void enable()
Cause the Compiler to resume operation. |