java.lang
public
final
class
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.
Summary
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
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