public final class Compiler
extends Object
| java.lang.Object | |
| java.lang.Compiler | |
Android上没有任何内容。
公共方法(Public methods) |
|
|---|---|
static Object |
command(Object cmd) 根据指定的命令对象执行操作。 |
static boolean |
compileClass(Class<?> classToCompile) 使用JIT编译器编译指定的类并指示编译是否成功。 |
static boolean |
compileClasses(String nameRoot) 使用JIT编译器编译名称与指定名称匹配的所有类,并指示编译是否成功。 |
static void |
disable() 禁用JIT编译器。 |
static void |
enable() 启用JIT编译器。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
Object command (Object cmd)
根据指定的命令对象执行操作。 此方法是JIT编译器的低级接口。 如果没有JIT编译器可用,它可能会返回任何对象或null 。 在Android上返回null,无论系统是否具有JIT。
| 参数(Parameters) | |
|---|---|
cmd |
Object: the command object for the JIT compiler. |
| 返回(Returns) | |
|---|---|
Object |
the result of executing command or null. |
boolean compileClass (Class<?> classToCompile)
使用JIT编译器编译指定的类并指示编译是否成功。 在Android上不做任何事情并返回false。
| 参数(Parameters) | |
|---|---|
classToCompile |
Class: java.lang.Class the class to JIT compile |
| 返回(Returns) | |
|---|---|
boolean |
true if the compilation has been successful; false if it has failed or if there is no JIT compiler available. |
boolean compileClasses (String nameRoot)
使用JIT编译器编译名称与指定名称匹配的所有类,并指示编译是否成功。 在Android上不做任何事情并返回false。
| 参数(Parameters) | |
|---|---|
nameRoot |
String: the string to match class names with. |
| 返回(Returns) | |
|---|---|
boolean |
true if the compilation has been successful; false if it has failed or if there is no JIT compiler available. |