Compiler

Name

Compiler

Synopsis

Description

The Compiler class encapsulates a facility for compiling Java classes to native code. As provided by Sun, the methods of this class do not actually do anything. However, if the system property java.compiler has been defined and if the method System.loadLibrary() is able to load the library named by the property, the methods of this class use the implementations provided in the library.

The Compiler class has no public constructors, so it cannot be instantiated.

Class Summary

public final class java.lang.Compiler extends java.lang.Object {
 // Class Methods public static native Object command(Object any);
public static native boolean compileClass(Class clazz);
public static native boolean compileClasses(String string);
public static native void disable();
public static native void enable();
}

Class Methods

command

public static native Object command(Object any)

compileClass

public static native boolean compileClass(Class clazz)

compileClasses

public static native boolean compileClasses(String string)

disable

public static native void disable()

enable

public static native void enable()

Inherited Methods

Method Inherited From Method Inherited From
clone() Object equals(Object) Object
finalize() Object getClass() Object
hashCode() Object notify() Object
notifyAll() Object toString() Object
wait() Object wait(long) Object
wait(long, int) Object

See Also

Object; System