Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.lang

Class Compiler

java.lang.Object
|
+--java.lang.Compiler


public final class Compiler

extends Object

The Compiler class is a placeholder for a JIT compiler implementation, and does nothing unless there is such a compiler.

The system property java.compiler may contain the name of a library to load with System.loadLibrary when the virtual machine first starts. If so, and loading the library succeeds, then a function by the name of java_lang_Compiler_start() in that library is called.

Note that a VM might not have implemented any of this.

Since:Author:See Also:

Method Summary

static java.lang.Objectcommand(java.lang.Object arg)

This method examines the argument and performs an operation according to the compilers documentation.
static booleancompileClass(java.lang.Class oneClass)

Compile the class named by oneClass.
static booleancompileClasses(java.lang.String classNames)

Compile the classes whose name matches classNames/code>.
static voiddisable()

Calling Compiler.disable() will cause the compiler to be suspended; provided that a compiler even exists.
static voidenable()

Calling Compiler.enable() will cause the compiler to resume operation if it was previously disabled; provided that a compiler even exists.

Method Details

command

public static Object command(java.lang.Object arg)

This method examines the argument and performs an operation according to the compilers documentation. No specific operation is required.

Parameters:

Returns:

Throws:


compileClass

public static boolean compileClass(java.lang.Class oneClass)

Compile the class named by oneClass.

Parameters:

Returns:

Throws:


compileClasses

public static boolean compileClasses(java.lang.String classNames)

Compile the classes whose name matches classNames/code>.

Parameters:

Returns:

Throws:


disable

public static void disable()

Calling Compiler.disable() will cause the compiler to be suspended; provided that a compiler even exists.


enable

public static void enable()

Calling Compiler.enable() will cause the compiler to resume operation if it was previously disabled; provided that a compiler even exists.