- java.lang.Object
-
- java.lang.Compiler
-
@Deprecated(forRemoval=true, since="9") public final class Compiler extends Object
Deprecated, for removal: This API element is subject to removal in a future version.This class is a placeholder for environments which explicitly manage the action of a "Just In Time" compiler.- See Also:
Cloneable
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Object
command(Object cmd)
Deprecated, for removal: This API element is subject to removal in a future version.Low level interface to the JIT compiler.static boolean
compileClass(Class<?> classToCompile)
Deprecated, for removal: This API element is subject to removal in a future version.Compiles the class using the JIT compiler.static boolean
compileClasses(String nameRoot)
Deprecated, for removal: This API element is subject to removal in a future version.Compiles all classes whose name matches the argument using the JIT compiler.static void
disable()
Deprecated, for removal: This API element is subject to removal in a future version.Disable the JIT compilerstatic void
enable()
Deprecated, for removal: This API element is subject to removal in a future version.Enable the JIT compiler
-
-
-
Method Detail
-
command
public static Object command(Object cmd)
Deprecated, for removal: This API element is subject to removal in a future version.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)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
compileClasses
public static boolean compileClasses(String nameRoot)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
disable
public static void disable()
Deprecated, for removal: This API element is subject to removal in a future version.Disable the JIT compiler
-
enable
public static void enable()
Deprecated, for removal: This API element is subject to removal in a future version.Enable the JIT compiler
-
-