<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.Compiler
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.ClassLoader.html#_top_">Previous</a>  <a href="java.lang.Double.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.Compiler
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.lang.Compiler
</pre>
<hr>
<dl>
  <dt> public final class <b>Compiler</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The <code>Compiler</code> class is provided to support
 Java-to-native-code compilers and related services. By design, the
 <code>Compiler</code> class does nothing; it serves as a
 placeholder for a JIT compiler implementation.
 <p>
 When the Java Virtual Machine first starts, it determines if the
 system property <code>java.compiler</code> exists. (System
 properties are accessible through <code>getProperty</code>  and ,
 a method defined by the <code>System</code> class.) If so, it is
 assumed to be the name of a library (with a platform-dependent
 exact location and type); the <code>loadLibrary</code> method in
 class <code>System</code> is called to load that library. If this
 loading succeeds, the function named
 <code>java_lang_Compiler_start()</code> in that library is called.
 <p>
 If no compiler is available, these methods do nothing.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getProperty(java.lang.String)">getProperty</a>, <a href="java.lang.System.html#getProperty(java.lang.String, java.lang.String)">getProperty</a>, <a href="java.lang.System.html#loadLibrary(java.lang.String)">loadLibrary</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#command(java.lang.Object)"><b>command</b></a>(Object)
  <dd>  Examines the argument type and its fields and perform some documented
 operation.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#compileClass(java.lang.Class)"><b>compileClass</b></a>(Class)
  <dd>  Compiles the specified class.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#compileClasses(java.lang.String)"><b>compileClasses</b></a>(String)
  <dd>  Compiles all classes whose name matches the specified string.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#disable()"><b>disable</b></a>()
  <dd>  Cause the Compiler to cease operation.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#enable()"><b>enable</b></a>()
  <dd>  Cause the Compiler to resume operation.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="compileClass(java.lang.Class)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="compileClass"><b>compileClass</b></a>
<pre>
 public static native boolean compileClass(<a href="java.lang.Class.html#_top_">Class</a> clazz)
</pre>
<dl>
  <dd> Compiles the specified class.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> clazz - a class.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the compilation succeeded;
          <code>false</code> if the compilation failed or no compiler
          is available.
  </dl></dd>
</dl>
<a name="compileClasses(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="compileClasses"><b>compileClasses</b></a>
<pre>
 public static native boolean compileClasses(<a href="java.lang.String.html#_top_">String</a> string)
</pre>
<dl>
  <dd> Compiles all classes whose name matches the specified string.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> string - the name of the classes to compile.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the compilation succeeded;
          <code>false</code> if the compilation failed or no compiler
          is available.
  </dl></dd>
</dl>
<a name="command(java.lang.Object)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="command"><b>command</b></a>
<pre>
 public static native <a href="java.lang.Object.html#_top_">Object</a> command(<a href="java.lang.Object.html#_top_">Object</a> any)
</pre>
<dl>
  <dd> Examines the argument type and its fields and perform some documented
 operation. No specific operations are required.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> any - an argument.
    <dt> <b>Returns:</b>
    <dd> a compiler-specific value, or <code>null</code> if no compiler
          is available.
  </dl></dd>
</dl>
<a name="enable()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="enable"><b>enable</b></a>
<pre>
 public static native void enable()
</pre>
<dl>
  <dd> Cause the Compiler to resume operation.
<p>
</dl>
<a name="disable()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="disable"><b>disable</b></a>
<pre>
 public static native void disable()
</pre>
<dl>
  <dd> Cause the Compiler to cease operation.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.ClassLoader.html#_top_">Previous</a>  <a href="java.lang.Double.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
