English | Site Directory

Android - An Open Handset Alliance Project

java.lang
public final class

java.lang.Compiler

java.lang.Object
java.lang.Compiler

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
Methods inherited from class java.lang.Object

Details

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. Answers 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. Answers 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
Build m5-rc15i - 10 Jun 2008 13:54