Android
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. 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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56