Build 1.0_r1(from source)

java.lang
Class Compiler

java.lang.Object
  extended by java.lang.Compiler

public final class Compiler
extends Object

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:
Cloneable

Method Summary
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

command

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

compileClass

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

compileClasses

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

disable

public static void disable()
Disable the JIT compiler


enable

public static void enable()
Disable the JIT compiler


Build 1.0_r1(from source)

Please submit a feedback, bug or feature