|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Compiler
public final class Compiler
The Compiler
class is a placeholder for a JIT compiler
implementation, and does nothing unless there is such a compiler.
The system property java.compiler
may contain the name
of a library to load with System.loadLibrary
when the
virtual machine first starts. If so, and loading the library succeeds,
then a function by the name of java_lang_Compiler_start()
in that library is called.
Note that a VM might not have implemented any of this.
System.getProperty(String)
,
System.getProperty(String, String)
,
System.loadLibrary(String)
Method Summary | |
---|---|
static Object |
command(Object arg)
This method examines the argument and performs an operation according to the compilers documentation. |
static boolean |
compileClass(Class<?> oneClass)
Compile the class named by oneClass . |
static boolean |
compileClasses(String classNames)
Compile the classes whose name matches classNames . |
static void |
disable()
Calling Compiler.disable() will cause the compiler
to be suspended; provided that a compiler even exists. |
static void |
enable()
Calling Compiler.enable() will cause the compiler
to resume operation if it was previously disabled; provided that a
compiler even exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean compileClass(Class<?> oneClass)
oneClass
.
oneClass
- the class to compile
false
if no compiler is available or
compilation failed, true
if compilation succeeded
NullPointerException
- if oneClass is nullpublic static boolean compileClasses(String classNames)
classNames
.
classNames
- the name of classes to compile
false
if no compiler is available or
compilation failed, true
if compilation succeeded
NullPointerException
- if classNames is nullpublic static Object command(Object arg)
arg
- a compiler-specific argument
NullPointerException
- if the compiler doesn't like a null argpublic static void enable()
Compiler.enable()
will cause the compiler
to resume operation if it was previously disabled; provided that a
compiler even exists.
public static void disable()
Compiler.disable()
will cause the compiler
to be suspended; provided that a compiler even exists.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |