📜  Java.lang.Compiler类

📅  最后修改于: 2020-11-15 02:59:29             🧑  作者: Mango


介绍

提供java.lang.Compiler类以支持Java到本地代码的编译器和相关服务。根据设计,它充当JIT编译器实现的占位符。

类声明

以下是java.lang.Compiler类的声明-

public final class Compiler
   extends Object

类方法

Sr.No. Method & Description
1 static Object command(Object any)

This method examines the argument type and its fields and perform some documented operation.

2 static boolean compileClass(Class clazz)

This method compiles the specified class.

3 static void disable()

This method causes the Compiler to cease operation.

4 static boolean compileClasses(String string)

This method compiles all classes whose name matches the specified string..

5 static void enable()

This method cause the Compiler to resume operation.

方法继承

此类从以下类继承方法-

  • java.lang.Object