Update README to point at 3.0 api javadoc.
This commit is contained in:
30
README.html
30
README.html
@@ -450,8 +450,8 @@ as with the yield-from-anywhere patch in C-based lua.
|
|||||||
<p>
|
<p>
|
||||||
Luaj uses WeakReferences and the OrphanedThread error to ensure that coroutines that are no longer referenced
|
Luaj uses WeakReferences and the OrphanedThread error to ensure that coroutines that are no longer referenced
|
||||||
are properly garbage collected. For thread safety, OrphanedThread should not be caught by Java code.
|
are properly garbage collected. For thread safety, OrphanedThread should not be caught by Java code.
|
||||||
See <a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/LuaThread.html">LuaThread</a>
|
See <a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/LuaThread.html">LuaThread</a>
|
||||||
and <a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/OrphanedThread.html">OrphanedThread</a>
|
and <a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/OrphanedThread.html">OrphanedThread</a>
|
||||||
javadoc for details.
|
javadoc for details.
|
||||||
|
|
||||||
<h3>Debug Library</h3>
|
<h3>Debug Library</h3>
|
||||||
@@ -501,7 +501,7 @@ The <em>lua</em> connand line tool includes <em>luajava</em>.
|
|||||||
<h2>API Javadoc</h2>
|
<h2>API Javadoc</h2>
|
||||||
The javadoc for the main classes in the LuaJ API are on line at
|
The javadoc for the main classes in the LuaJ API are on line at
|
||||||
<pre>
|
<pre>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/index.html">http://luaj.sourceforge.net/api/2.0</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/index.html">http://luaj.sourceforge.net/api/3.0</a>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
You can also build a local version from sources using
|
You can also build a local version from sources using
|
||||||
@@ -511,10 +511,10 @@ You can also build a local version from sources using
|
|||||||
|
|
||||||
<h2>LuaValue and Varargs</h2>
|
<h2>LuaValue and Varargs</h2>
|
||||||
All lua value manipulation is now organized around
|
All lua value manipulation is now organized around
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/LuaValue.html">LuaValue</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/LuaValue.html">LuaValue</a>
|
||||||
which exposes the majority of interfaces used for lua computation.
|
which exposes the majority of interfaces used for lua computation.
|
||||||
<pre>
|
<pre>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/LuaValue.html">org.luaj.vm2.LuaValue</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/LuaValue.html">org.luaj.vm2.LuaValue</a>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h3>Common Functions</h3>
|
<h3>Common Functions</h3>
|
||||||
@@ -537,12 +537,12 @@ Some commonly used functions and constants include:
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h2>Varargs</h2>
|
<h2>Varargs</h2>
|
||||||
The interface <a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/Varargs.html">Varargs</a> provides an abstraction for
|
The interface <a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/Varargs.html">Varargs</a> provides an abstraction for
|
||||||
both a variable argument list and multiple return values.
|
both a variable argument list and multiple return values.
|
||||||
For convenience, <em>LuaValue</em> implements <em>Varargs</em> so a single value can be supplied anywhere
|
For convenience, <em>LuaValue</em> implements <em>Varargs</em> so a single value can be supplied anywhere
|
||||||
variable arguments are expected.
|
variable arguments are expected.
|
||||||
<pre>
|
<pre>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/Varargs.html">org.luaj.vm2.Varargs</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/Varargs.html">org.luaj.vm2.Varargs</a>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h3>Common Functions</h3>
|
<h3>Common Functions</h3>
|
||||||
@@ -556,18 +556,18 @@ variable arguments are expected.
|
|||||||
optlong(int n,long d); // return n if a long, d if no argument, or error if not a long
|
optlong(int n,long d); // return n if a long, d if no argument, or error if not a long
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
See the <a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/Varargs.html">Varargs</a> API for a complete list.
|
See the <a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/Varargs.html">Varargs</a> API for a complete list.
|
||||||
|
|
||||||
<h2>LibFunction</h2>
|
<h2>LibFunction</h2>
|
||||||
The simplest way to implement a function is to choose a base class based on the number of arguments to the function.
|
The simplest way to implement a function is to choose a base class based on the number of arguments to the function.
|
||||||
LuaJ provides 5 base classes for this purpose, depending if the function has 0, 1, 2, 3 or variable arguments,
|
LuaJ provides 5 base classes for this purpose, depending if the function has 0, 1, 2, 3 or variable arguments,
|
||||||
and if it provide multiple return values.
|
and if it provide multiple return values.
|
||||||
<pre>
|
<pre>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/lib/ZeroArgFunction.html">org.luaj.vm2.lib.ZeroArgFunction</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/lib/ZeroArgFunction.html">org.luaj.vm2.lib.ZeroArgFunction</a>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/lib/OneArgFunction.html">org.luaj.vm2.lib.OneArgFunction</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/lib/OneArgFunction.html">org.luaj.vm2.lib.OneArgFunction</a>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/lib/TwoArgFunction.html">org.luaj.vm2.lib.TwoArgFunction</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/lib/TwoArgFunction.html">org.luaj.vm2.lib.TwoArgFunction</a>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/lib/ThreeArgFunction.html">org.luaj.vm2.lib.ThreeArgFunction</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/lib/ThreeArgFunction.html">org.luaj.vm2.lib.ThreeArgFunction</a>
|
||||||
<a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/lib/VarArgFunction.html">org.luaj.vm2.lib.VarArgFunction</a>
|
<a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/lib/VarArgFunction.html">org.luaj.vm2.lib.VarArgFunction</a>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Each of these functions has an abstract method that must be implemented,
|
Each of these functions has an abstract method that must be implemented,
|
||||||
@@ -650,7 +650,7 @@ An example that prints locations of all function definitions in a file may be fo
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
See the <a href="http://luaj.sourceforge.net/api/2.0/org/luaj/vm2/ast/package-summary.html">org.luaj.vm2.ast package</a> javadoc for the API relating to the syntax tree that is produced.
|
See the <a href="http://luaj.sourceforge.net/api/3.0/org/luaj/vm2/ast/package-summary.html">org.luaj.vm2.ast package</a> javadoc for the API relating to the syntax tree that is produced.
|
||||||
|
|
||||||
<h1>7 - <a name="7">Building and Testing</a></h1>
|
<h1>7 - <a name="7">Building and Testing</a></h1>
|
||||||
|
|
||||||
@@ -721,7 +721,7 @@ and LuaForge:
|
|||||||
<li>JSR-223 enhancement: allow both ".lua" and "lua" as extensions in getScriptEngine() </li>
|
<li>JSR-223 enhancement: allow both ".lua" and "lua" as extensions in getScriptEngine() </li>
|
||||||
<li>JSR-223 fix: use system class loader to support using luaj as JRE extension </li>
|
<li>JSR-223 fix: use system class loader to support using luaj as JRE extension </li>
|
||||||
<li>Improve selection logic when binding to overloaded functions using luajava</li>
|
<li>Improve selection logic when binding to overloaded functions using luajava</li>
|
||||||
<li>Enhance javadoc, put it <a href="docs/api/index.html">in distribution</a> and <a href="http://luaj.sourceforge.net/api/2.0/index.html">on line</a></li>
|
<li>Enhance javadoc, put it <a href="docs/api/index.html">in distribution</a> and <a href="http://luaj.sourceforge.net/api/3.0/index.html">on line</a></li>
|
||||||
<li>Major refactor of luajava type coercion logic, improve method selection.</li>
|
<li>Major refactor of luajava type coercion logic, improve method selection.</li>
|
||||||
<li>Add lib/luaj-sources-2.0.2.jar for easier integration into an IDE such as Netbeans </li>
|
<li>Add lib/luaj-sources-2.0.2.jar for easier integration into an IDE such as Netbeans </li>
|
||||||
<tr valign="top"><td> <b>3.0-alpha1</b></td><td><ul>
|
<tr valign="top"><td> <b>3.0-alpha1</b></td><td><ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user