FileDocCategorySizeDatePackage
Compiler.javaAPI DocAndroid 1.5 API3165Wed May 06 22:41:04 BST 2009java.lang

Compiler

public final class Compiler extends Object
Placeholder class for environments which explicitly manage the action of a Just In Time (JIT) compiler. This class is usually implemented by the virtual machine vendor. The Android reference implementation does not (yet) contain such a JIT compiler, though other implementations may choose to provide one.
since
Android 1.0

Fields Summary
Constructors Summary
private Compiler()
Prevent this class from being instantiated.

        //do nothing
    
Methods Summary
public static java.lang.Objectcommand(java.lang.Object cmd)
Executes an operation according to the specified command object. This method is the low-level interface to the JIT compiler. It may return any object or {@code null} if no JIT compiler is available.

param
cmd the command object for the JIT compiler.
return
the result of executing command or {@code null}.
since
Android 1.0

        return null;
    
public static booleancompileClass(java.lang.Class classToCompile)
Compiles the specified class using the JIT compiler and indicates if compilation has been successful.

param
classToCompile java.lang.Class the class to JIT compile
return
{@code true} if the compilation has been successful; {@code false} if it has failed or if there is no JIT compiler available.
since
Android 1.0

        return false;
    
public static booleancompileClasses(java.lang.String nameRoot)
Compiles all classes whose name matches the specified name using the JIT compiler and indicates if compilation has been successful.

param
nameRoot the string to match class names with.
return
{@code true} if the compilation has been successful; {@code false} if it has failed or if there is no JIT compiler available.
since
Android 1.0

        return false;
    
public static voiddisable()
Disables the JIT compiler.

since
Android 1.0

        return;
    
public static voidenable()
Enables the JIT compiler.

since
Android 1.0

        return;