Name
Compiler
Synopsis
The static methods of this class provide an
interface to the just-in-time (JIT)
byte-code-to-native code compiler in
use by the Java interpreter. If no JIT compiler is in use by the VM,
these methods do nothing. compileClass( )
asks the
JIT compiler to compile the specified class. compileClasses(
)
asks the JIT compiler to compile all classes that match
the specified name. These methods return true
if
the compilation was successful, or false
if it
failed or if there is no JIT compiler on the system. enable(
)
and disable( )
turn just-in-time
compilation on and off. command( )
asks the JIT
compiler to perform some compiler-specific operation; this is a hook
for vendor extensions. No standard operations have been defined.
public final class Compiler { // No Constructor // Public Class Methods public static Object command(Object any); native public static boolean compileClass(Class<?> clazz); native public static boolean compileClasses(String string); native public static void disable( ); native public static void enable( ); native }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.