加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090303144650/http://developer.android.com:80/reference/java/lang/Compiler.html
public final class

Compiler

extends Object
java.lang.Object
   ↳ java.lang.Compiler

Class Overview

This class must be implemented by the VM vendor. This class is a placeholder for environments which explicitly manage the action of a "Just In Time" compiler.

See Also

Summary

Public Methods
static Object command(Object cmd)
Low level interface to the JIT compiler.
static boolean compileClass(Class<?> classToCompile)
Compiles the class using the JIT compiler.
static boolean compileClasses(String nameRoot)
Compiles all classes whose name matches the argument using the JIT compiler.
static void disable()
Disable the JIT compiler
static void enable()
Disable the JIT compiler
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Object command (Object cmd)

Low level interface to the JIT compiler. Can return any object, or null if no JIT compiler is available.

Parameters
cmd Object a command for the JIT compiler
Returns
  • Object result of executing command

public static boolean compileClass (Class<?> classToCompile)

Compiles the class using the JIT compiler. Returns true if the compilation was successful, or false if it failed or there was no JIT compiler available.

Parameters
classToCompile java.lang.Class the class to JIT compile
Returns
  • boolean indicating compilation success

public static boolean compileClasses (String nameRoot)

Compiles all classes whose name matches the argument using the JIT compiler. Returns true if the compilation was successful, or false if it failed or there was no JIT compiler available.

Parameters
nameRoot String the string to match against class names
Returns
  • boolean indicating compilation success

public static void disable ()

Disable the JIT compiler

public static void enable ()

Disable the JIT compiler