8293 lines
477 KiB
HTML
8293 lines
477 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jan 21 13:40:25 PST 2013 -->
|
|
<TITLE>
|
|
LuaValue (Luaj API)
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2013-01-21">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="LuaValue (Luaj API)";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LuaValue.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../org/luaj/vm2/OrphanedThread.html" title="class in org.luaj.vm2"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?org/luaj/vm2/LuaValue.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="LuaValue.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
org.luaj.vm2</FONT>
|
|
<BR>
|
|
Class LuaValue</H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">org.luaj.vm2.Varargs</A>
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.luaj.vm2.LuaValue</B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/luaj/vm2/lib/IoLib.File.html" title="class in org.luaj.vm2.lib">IoLib.File</A>, <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2">LuaBoolean</A>, <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2">LuaFunction</A>, <A HREF="../../../org/luaj/vm2/LuaNil.html" title="class in org.luaj.vm2">LuaNil</A>, <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A>, <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A>, <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A>, <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2">LuaThread</A>, <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2">LuaUserdata</A></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public abstract class <B>LuaValue</B><DT>extends <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
Base class for all concrete lua type values.
|
|
<p>
|
|
Establishes base implementations for all the operations on lua types.
|
|
This allows Java clients to deal essentially with one type for all Java values, namely <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
Constructors are provided as static methods for common Java types, such as
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(int)"><CODE>valueOf(int)</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(java.lang.String)"><CODE>valueOf(String)</CODE></A>
|
|
to allow for instance pooling.
|
|
<p>
|
|
Constants are defined for the lua values
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A>, <A HREF="../../../org/luaj/vm2/LuaValue.html#TRUE"><CODE>TRUE</CODE></A>, and <A HREF="../../../org/luaj/vm2/LuaValue.html#FALSE"><CODE>FALSE</CODE></A>.
|
|
A constant <A HREF="../../../org/luaj/vm2/LuaValue.html#NONE"><CODE>NONE</CODE></A> is defined which is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> list having no values.
|
|
<p>
|
|
Operations are performed on values directly via their Java methods.
|
|
For example, the following code divides two numbers:
|
|
<pre> <code>LuaValue a = LuaValue.valueOf( 5 );
|
|
LuaValue b = LuaValue.valueOf( 4 );
|
|
LuaValue c = a.div(b);
|
|
</code> </pre>
|
|
Note that in this example, c will be a <A HREF="../../../org/luaj/vm2/LuaDouble.html" title="class in org.luaj.vm2"><CODE>LuaDouble</CODE></A>, but would be a <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A>
|
|
if the value of a were changed to 8, say.
|
|
In general the value of c in practice will vary depending on both the types and values of a and b
|
|
as well as any metatable/metatag processing that occurs.
|
|
<p>
|
|
Field access and function calls are similar, with common overloads to simplify Java usage:
|
|
<pre> <code>LuaValue globals = JsePlatform.standardGlobals();
|
|
LuaValue sqrt = globals.get("math").get("sqrt");
|
|
LuaValue print = globals.get("print");
|
|
LuaValue d = sqrt.call( a );
|
|
print.call( LuaValue.valueOf("sqrt(5):"), a );
|
|
</code> </pre>
|
|
<p>
|
|
To supply variable arguments or get multiple return values, use
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue, Varargs)</CODE></A> methods:
|
|
<pre> <code>LuaValue modf = globals.get("math").get("modf");
|
|
Varargs r = modf.invoke( d );
|
|
print.call( r.arg(1), r.arg(2) );
|
|
</code> </pre>
|
|
<p>
|
|
To load and run a script, <A HREF="../../../org/luaj/vm2/LoadState.html" title="class in org.luaj.vm2"><CODE>LoadState</CODE></A> is used:
|
|
<pre> <code>LoadState.load( new FileInputStream("main.lua"), "main.lua", globals ).call();
|
|
</code> </pre>
|
|
<p>
|
|
although <code>require</code> could also be used:
|
|
<pre> <code>globals.get("require").call(LuaValue.valueOf("main"));
|
|
</code> </pre>
|
|
For this to work the file must be in the current directory, or in the class path,
|
|
dependening on the platform.
|
|
See <CODE>JsePlatform</CODE> and <CODE>JmePlatform</CODE> for details.
|
|
<p>
|
|
In general a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> may be thrown on any operation when the
|
|
types supplied to any operation are illegal from a lua perspective.
|
|
Examples could be attempting to concatenate a NIL value, or attempting arithmetic
|
|
on values that are not number.
|
|
<p>
|
|
There are several methods for preinitializing tables, such as:
|
|
<ul>
|
|
<li><A HREF="../../../org/luaj/vm2/LuaValue.html#listOf(org.luaj.vm2.LuaValue[])"><CODE>listOf(LuaValue[])</CODE></A> for unnamed elements</li>
|
|
<li><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf(org.luaj.vm2.LuaValue[])"><CODE>tableOf(LuaValue[])</CODE></A> for named elements</li>
|
|
<li><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)"><CODE>tableOf(LuaValue[], LuaValue[], Varargs)</CODE></A> for mixtures</li>
|
|
</ul>
|
|
<p>
|
|
Predefined constants exist for the standard lua type constants
|
|
<CODE>TNIL</CODE>, <CODE>TBOOLEAN</CODE>, <CODE>TLIGHTUSERDATA</CODE>, <CODE>TNUMBER</CODE>, <CODE>TSTRING</CODE>,
|
|
<CODE>TTABLE</CODE>, <CODE>TFUNCTION</CODE>, <CODE>TUSERDATA</CODE>, <CODE>TTHREAD</CODE>,
|
|
and extended lua type constants
|
|
<CODE>TINT</CODE>, <CODE>TNONE</CODE>, <CODE>TVALUE</CODE>
|
|
<p>
|
|
Predefined constants exist for all strings used as metatags:
|
|
<CODE>INDEX</CODE>, <CODE>NEWINDEX</CODE>, <CODE>CALL</CODE>, <CODE>MODE</CODE>, <CODE>METATABLE</CODE>,
|
|
<CODE>ADD</CODE>, <CODE>SUB</CODE>, <CODE>DIV</CODE>, <CODE>MUL</CODE>, <CODE>POW</CODE>,
|
|
<CODE>MOD</CODE>, <CODE>UNM</CODE>, <CODE>LEN</CODE>, <CODE>EQ</CODE>, <CODE>LT</CODE>,
|
|
<CODE>LE</CODE>, <CODE>TOSTRING</CODE>, and <CODE>CONCAT</CODE>.
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><CODE>JsePlatform</CODE>,
|
|
<CODE>JmePlatform</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LoadState.html" title="class in org.luaj.vm2"><CODE>LoadState</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A></DL>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#ADD">ADD</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__add" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#CALL">CALL</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__call" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#CONCAT">CONCAT</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__concat" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#DIV">DIV</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__div" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#EMPTYSTRING">EMPTYSTRING</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value ""</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#EQ">EQ</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__eq" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2">LuaBoolean</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#FALSE">FALSE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaBoolean constant corresponding to lua <code>false</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#INDEX">INDEX</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__index" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#LE">LE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__le" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#LEN">LEN</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__len" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#LT">LT</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__lt" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#METATABLE">METATABLE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__metatable" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#MINUSONE">MINUSONE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaValue number constant equal to -1</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#MOD">MOD</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__mod" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#MODE">MODE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__mode" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#MUL">MUL</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__mul" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#NEWINDEX">NEWINDEX</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__newindex" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#NIL">NIL</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaValue constant corresponding to lua <code>nil</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#NILS">NILS</A></B></CODE>
|
|
|
|
<BR>
|
|
Array of <CODE>NIL</CODE> values to optimize filling stacks using System.arraycopy().</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#NONE">NONE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaValue constant corresponding to a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> list of no values</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#NOVALS">NOVALS</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaValue array constant with no values</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#ONE">ONE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaValue number constant equal to 1</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#POW">POW</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__pow" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#SUB">SUB</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__sub" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TBOOLEAN">TBOOLEAN</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua booleans</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TFUNCTION">TFUNCTION</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua functions</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TINT">TINT</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua numbers that are ints, for compatibility with lua 5.1 number patch only</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TLIGHTUSERDATA">TLIGHTUSERDATA</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua light userdata, for compatibility with C-based lua only</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TNIL">TNIL</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua nil</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TNONE">TNONE</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua values that have no type, for example weak table entries</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER">TNUMBER</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua numbers</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TOSTRING">TOSTRING</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__tostring" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2">LuaBoolean</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TRUE">TRUE</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaBoolean constant corresponding to lua <code>true</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TSTRING">TSTRING</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua strings</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TTABLE">TTABLE</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua tables</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TTHREAD">TTHREAD</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua threads</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA">TUSERDATA</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for lua userdatas</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TVALUE">TVALUE</A></B></CODE>
|
|
|
|
<BR>
|
|
Type enumeration constant for unknown values, for compatibility with C-based lua only</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static java.lang.String[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#TYPE_NAMES">TYPE_NAMES</A></B></CODE>
|
|
|
|
<BR>
|
|
String array constant containing names of each of the lua value types</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#UNM">UNM</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaString constant with value "__unm" for use as metatag</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#ZERO">ZERO</A></B></CODE>
|
|
|
|
<BR>
|
|
LuaValue number constant equal to 0</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#LuaValue()">LuaValue</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#add(double)">add</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Add: Perform numeric add operation with another value
|
|
of double type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#add(int)">add</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Add: Perform numeric add operation with another value
|
|
of int type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#add(org.luaj.vm2.LuaValue)">add</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Add: Perform numeric add operation with another value
|
|
including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#and(org.luaj.vm2.LuaValue)">and</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Perform boolean <code>and</code> with another operand, based on lua rules for boolean evaluation.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#arg(int)">arg</A></B>(int index)</CODE>
|
|
|
|
<BR>
|
|
Get the n-th argument value (1-based).</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#arg1()">arg1</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the first argument in the list.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#argerror(int, java.lang.String)">argerror</A></B>(int iarg,
|
|
java.lang.String msg)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an invalid argument was supplied to a function</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#argerror(java.lang.String)">argerror</A></B>(java.lang.String expected)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an invalid argument was supplied to a function</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#aritherror()">aritherror</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on an arithmetic error such as add, or pow,
|
|
typically due to an invalid operand type</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#aritherror(java.lang.String)">aritherror</A></B>(java.lang.String fun)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on an arithmetic error such as add, or pow,
|
|
typically due to an invalid operand type</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">arithmt</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> op2)</CODE>
|
|
|
|
<BR>
|
|
Perform metatag processing for arithmetic operations.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmtwith(org.luaj.vm2.LuaValue, double)">arithmtwith</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
double op1)</CODE>
|
|
|
|
<BR>
|
|
Perform metatag processing for arithmetic operations when the left-hand-side is a number.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#assert_(boolean, java.lang.String)">assert_</A></B>(boolean b,
|
|
java.lang.String msg)</CODE>
|
|
|
|
<BR>
|
|
Assert a condition is true, or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2">Buffer</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#buffer()">buffer</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert the value to a <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2"><CODE>Buffer</CODE></A> for more efficient concatenation of
|
|
multiple strings.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#call()">call</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)">call</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">call</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with 2 arguments, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">call</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg3)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with 3 arguments, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#callmt()">callmt</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the metatag value for the <CODE>CALL</CODE> metatag, if it exists.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkboolean()">checkboolean</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is a <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2"><CODE>LuaBoolean</CODE></A>,
|
|
or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2">LuaClosure</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkclosure()">checkclosure</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is a <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A> ,
|
|
or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> double</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkdouble()">checkdouble</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is numeric and return the value as a double,
|
|
or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkfunction()">checkfunction</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is a function , or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()">checkint</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is numeric, and convert and cast value to int, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkinteger()">checkinteger</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is numeric, and convert and cast value to int, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkjstring()">checkjstring</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert this value to a Java String.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checklong()">checklong</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is numeric, and convert and cast value to long, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkmetatag(org.luaj.vm2.LuaValue, java.lang.String)">checkmetatag</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
java.lang.String reason)</CODE>
|
|
|
|
<BR>
|
|
Get particular metatag, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it doesn't exist</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checknotnil()">checknotnil</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that this is not the value <CODE>NIL</CODE>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()">checknumber</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that the value is numeric, and return as a LuaNumber if so, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber(java.lang.String)">checknumber</A></B>(java.lang.String msg)</CODE>
|
|
|
|
<BR>
|
|
Check that the value is numeric, and return as a LuaNumber if so, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkstring()">checkstring</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that this is a lua string, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checktable()">checktable</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that this is a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2">LuaThread</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkthread()">checkthread</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that this is a <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2"><CODE>LuaThread</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.Object</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata()">checkuserdata</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that this is a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.Object</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata(java.lang.Class)">checkuserdata</A></B>(java.lang.Class c)</CODE>
|
|
|
|
<BR>
|
|
Check that this is a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#checkvalidkey()">checkvalidkey</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check that this is a valid key in a table index operation, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#compareerror(org.luaj.vm2.LuaValue)">compareerror</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on a comparison error such as greater-than or less-than,
|
|
typically due to an invalid operand type</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#compareerror(java.lang.String)">compareerror</A></B>(java.lang.String rhs)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on a comparison error such as greater-than or less-than,
|
|
typically due to an invalid operand type</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">comparemt</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> op1)</CODE>
|
|
|
|
<BR>
|
|
Perform metatag processing for comparison operations.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2">Buffer</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#concat(org.luaj.vm2.Buffer)">concat</A></B>(<A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2">Buffer</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Concatenate a <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2"><CODE>Buffer</CODE></A> onto this value and return the result
|
|
using rules of lua string concatenation including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#concat(org.luaj.vm2.LuaValue)">concat</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Concatenate another value onto this value and return the result
|
|
using rules of lua string concatenation including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#concatmt(org.luaj.vm2.LuaValue)">concatmt</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Perform metatag processing for concatenation operations.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#concatTo(org.luaj.vm2.LuaNumber)">concatTo</A></B>(<A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-concatenation: concatenate this value onto another value
|
|
known to be a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
and return the result using rules of lua string concatenation including
|
|
metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#concatTo(org.luaj.vm2.LuaString)">concatTo</A></B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-concatenation: concatenate this value onto another value
|
|
known to be a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
and return the result using rules of lua string concatenation including
|
|
metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#concatTo(org.luaj.vm2.LuaValue)">concatTo</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-concatenation: concatenate this value onto another value
|
|
whose type is unknwon
|
|
and return the result using rules of lua string concatenation including
|
|
metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#div(double)">div</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Divide: Perform numeric divide operation by another value
|
|
of double type without metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#div(int)">div</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Divide: Perform numeric divide operation by another value
|
|
of int type without metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)">div</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Divide: Perform numeric divide operation by another value
|
|
of unknown type,
|
|
including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#divInto(double)">divInto</A></B>(double lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-divide: Perform numeric divide operation into another value
|
|
with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#eq_b(org.luaj.vm2.LuaValue)">eq_b</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</CODE>
|
|
|
|
<BR>
|
|
Equals: Perform equality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>,
|
|
and return java boolean</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#eq(org.luaj.vm2.LuaValue)">eq</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</CODE>
|
|
|
|
<BR>
|
|
Equals: Perform equality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#eqmtcall(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">eqmtcall</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> lhs,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> lhsmt,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhsmt)</CODE>
|
|
|
|
<BR>
|
|
Perform equality testing metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#error(java.lang.String)">error</A></B>(java.lang.String message)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> with a particular message</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#get(int)">get</A></B>(int key)</CODE>
|
|
|
|
<BR>
|
|
Get a value in a table including metatag processing using <CODE>INDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#get(org.luaj.vm2.LuaValue)">get</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key)</CODE>
|
|
|
|
<BR>
|
|
Get a value in a table including metatag processing using <CODE>INDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#get(java.lang.String)">get</A></B>(java.lang.String key)</CODE>
|
|
|
|
<BR>
|
|
Get a value in a table including metatag processing using <CODE>INDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#getfenv()">getfenv</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the environemnt for an instance.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#getmetatable()">getmetatable</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the metatable for this <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#getn()">getn</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Implementation of lua 5.0 getn() function.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gettable(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">gettable</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> t,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key)</CODE>
|
|
|
|
<BR>
|
|
get value from metatable operations, or NIL if not defined by metatables</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gt_b(double)">gt_b</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gt_b(int)">gt_b</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gt_b(org.luaj.vm2.LuaValue)">gt_b</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gt(double)">gt</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gt(int)">gt</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gt(org.luaj.vm2.LuaValue)">gt</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(double)">gteq_b</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(int)">gteq_b</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(org.luaj.vm2.LuaValue)">gteq_b</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than or equals: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(double)">gteq</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(int)">gteq</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)">gteq</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Greater than or equals: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#illegal(java.lang.String, java.lang.String)">illegal</A></B>(java.lang.String op,
|
|
java.lang.String typename)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an illegal operation occurred,
|
|
typically involved in managing weak references</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#inext(org.luaj.vm2.LuaValue)">inext</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> index)</CODE>
|
|
|
|
<BR>
|
|
Find the next integer-key,value pair if <code>this</code> is a table,
|
|
return <CODE>NIL</CODE> if there are no more, or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not a table.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()">invoke</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue[])">invoke</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)">invoke</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)">invoke</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)">invoke</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)">invoke</A></B>(<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</CODE>
|
|
|
|
<BR>
|
|
Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue)">invokemethod</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue[])">invokemethod</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)">invokemethod</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String)">invokemethod</A></B>(java.lang.String name)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.LuaValue[])">invokemethod</A></B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)">invokemethod</A></B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isboolean()">isboolean</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>boolean</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isclosure()">isclosure</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>function</code> that is a closure,
|
|
meaning interprets lua bytecode for its execution</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isfunction()">isfunction</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>function</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isint()">isint</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>number</code> and is representable by java int
|
|
without rounding or truncation</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isinttype()">isinttype</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#islong()">islong</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>number</code> and is representable by java long
|
|
without rounding or truncation</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isnil()">isnil</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is <code>nil</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()">isnumber</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>number</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isstring()">isstring</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>string</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#istable()">istable</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>table</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isthread()">isthread</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>thread</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata()">isuserdata</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>userdata</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata(java.lang.Class)">isuserdata</A></B>(java.lang.Class c)</CODE>
|
|
|
|
<BR>
|
|
Check if <code>this</code> is a <code>userdata</code> of type <code>c</code></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#isweaknil()">isweaknil</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Test if this is a weak reference and its value no longer is referenced.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#len()">len</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Length operator: return lua length of object <code>(#this)</code> including metatag processing as java int</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lenerror()">lenerror</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on the len operator,
|
|
typically due to an invalid operand type</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#length()">length</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Length operator: return lua length of object <code>(#this)</code> including metatag processing as java int</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#listOf(org.luaj.vm2.LuaValue[])">listOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied array values.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#listOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)">listOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> lastarg)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied array values.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#load(org.luaj.vm2.LuaValue)">load</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> library)</CODE>
|
|
|
|
<BR>
|
|
Load a library instance by setting its environment to <code>this</code>
|
|
and calling it, which should iniitalize the library instance and
|
|
install itself into this instance.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lt_b(double)">lt_b</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lt_b(int)">lt_b</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lt_b(org.luaj.vm2.LuaValue)">lt_b</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lt(double)">lt</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lt(int)">lt</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lt(org.luaj.vm2.LuaValue)">lt</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lteq_b(double)">lteq_b</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lteq_b(int)">lteq_b</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lteq_b(org.luaj.vm2.LuaValue)">lteq_b</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than or equals: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lteq(double)">lteq</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lteq(int)">lteq</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#lteq(org.luaj.vm2.LuaValue)">lteq</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Less than or equals: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#metatag(org.luaj.vm2.LuaValue)">metatag</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag)</CODE>
|
|
|
|
<BR>
|
|
Get particular metatag, or return <A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A> if it doesn't exist</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)">method</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">method</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">method</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 2 arguments, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)">method</A></B>(java.lang.String name)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue)">method</A></B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">method</A></B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2)</CODE>
|
|
|
|
<BR>
|
|
Call named method on <CODE>this</CODE> with 2 arguments, including metatag processing,
|
|
and return only the first return value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#mod(double)">mod</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Modulo: Perform numeric modulo operation with another value
|
|
of double type without metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#mod(int)">mod</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Modulo: Perform numeric modulo operation with another value
|
|
of int type without metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)">mod</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Modulo: Perform numeric modulo operation with another value
|
|
of unknown type,
|
|
including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#modFrom(double)">modFrom</A></B>(double lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-modulo: Perform numeric modulo operation from another value
|
|
with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#mul(double)">mul</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Multiply: Perform numeric multiply operation with another value
|
|
of double type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#mul(int)">mul</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Multiply: Perform numeric multiply operation with another value
|
|
of int type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#mul(org.luaj.vm2.LuaValue)">mul</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Multiply: Perform numeric multiply operation with another value
|
|
of unknown type,
|
|
including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#narg()">narg</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the number of arguments, or 0 if there are none.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#neg()">neg</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Unary minus: return negative value <code>(-this)</code> as defined by lua unary minus operator</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#neq_b(org.luaj.vm2.LuaValue)">neq_b</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</CODE>
|
|
|
|
<BR>
|
|
Notquals: Perform inequality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#neq(org.luaj.vm2.LuaValue)">neq</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</CODE>
|
|
|
|
<BR>
|
|
Notquals: Perform inequality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#next(org.luaj.vm2.LuaValue)">next</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> index)</CODE>
|
|
|
|
<BR>
|
|
Find the next key,value pair if <code>this</code> is a table,
|
|
return <CODE>NIL</CODE> if there are no more, or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not a table.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#not()">not</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Unary not: return inverse boolean value <code>(~this)</code> as defined by lua not operator</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#onInvoke(org.luaj.vm2.Varargs)">onInvoke</A></B>(<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</CODE>
|
|
|
|
<BR>
|
|
Callback used during tail call processing to invoke the function once.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optboolean(boolean)">optboolean</A></B>(boolean defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a boolean and return its boolean value</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2">LuaClosure</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optclosure(org.luaj.vm2.LuaClosure)">optclosure</A></B>(<A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2">LuaClosure</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a closure and return as <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> double</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optdouble(double)">optdouble</A></B>(double defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a number or string convertible to number and return as double</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2">LuaFunction</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optfunction(org.luaj.vm2.LuaFunction)">optfunction</A></B>(<A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2">LuaFunction</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a function and return as <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)">optint</A></B>(int defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a number or string convertible to number and return as int</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optinteger(org.luaj.vm2.LuaInteger)">optinteger</A></B>(<A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a number or string convertible to number and return as <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optjstring(java.lang.String)">optjstring</A></B>(java.lang.String defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a string or number and return as Java String</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optlong(long)">optlong</A></B>(long defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a number or string convertible to number and return as long</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optnumber(org.luaj.vm2.LuaNumber)">optnumber</A></B>(<A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a number or string convertible to number and return as <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optstring(org.luaj.vm2.LuaString)">optstring</A></B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a string or number and return as <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#opttable(org.luaj.vm2.LuaTable)">opttable</A></B>(<A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a table and return as <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2">LuaThread</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optthread(org.luaj.vm2.LuaThread)">optthread</A></B>(<A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2">LuaThread</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a thread and return as <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2"><CODE>LuaThread</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.Object</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Class, java.lang.Object)">optuserdata</A></B>(java.lang.Class c,
|
|
java.lang.Object defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a userdata whose instance is of a type
|
|
and return the Object instance</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.Object</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Object)">optuserdata</A></B>(java.lang.Object defval)</CODE>
|
|
|
|
<BR>
|
|
Check that optional argument is a userdata and return the Object instance</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#optvalue(org.luaj.vm2.LuaValue)">optvalue</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> defval)</CODE>
|
|
|
|
<BR>
|
|
Perform argument check that this is not nil or none.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#or(org.luaj.vm2.LuaValue)">or</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Perform boolean <code>or</code> with another operand, based on lua rules for boolean evaluation.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#pow(double)">pow</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Raise to power: Raise this value to a power
|
|
of double type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#pow(int)">pow</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Raise to power: Raise this value to a power
|
|
of int type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#pow(org.luaj.vm2.LuaValue)">pow</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Raise to power: Raise this value to a power
|
|
including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#powWith(double)">powWith</A></B>(double lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-raise to power: Raise another value of double type to this power
|
|
with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#powWith(int)">powWith</A></B>(int lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-raise to power: Raise another value of double type to this power
|
|
with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#presize(int)">presize</A></B>(int i)</CODE>
|
|
|
|
<BR>
|
|
Preallocate the array part of a table to be a certain size,</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(double)">raweq</A></B>(double val)</CODE>
|
|
|
|
<BR>
|
|
Equals: Perform direct equality comparison with a double value
|
|
without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(int)">raweq</A></B>(int val)</CODE>
|
|
|
|
<BR>
|
|
Equals: Perform direct equality comparison with a int value
|
|
without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaString)">raweq</A></B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> val)</CODE>
|
|
|
|
<BR>
|
|
Equals: Perform direct equality comparison with a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> value
|
|
without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaUserdata)">raweq</A></B>(<A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2">LuaUserdata</A> val)</CODE>
|
|
|
|
<BR>
|
|
Equals: Perform direct equality comparison with a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> value
|
|
without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaValue)">raweq</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</CODE>
|
|
|
|
<BR>
|
|
Equals: Perform direct equality comparison with another value
|
|
without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawget(int)">rawget</A></B>(int key)</CODE>
|
|
|
|
<BR>
|
|
Get a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawget(org.luaj.vm2.LuaValue)">rawget</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key)</CODE>
|
|
|
|
<BR>
|
|
Get a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawget(java.lang.String)">rawget</A></B>(java.lang.String key)</CODE>
|
|
|
|
<BR>
|
|
Get a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawset(int, org.luaj.vm2.LuaValue)">rawset</A></B>(int key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawset(int, java.lang.String)">rawset</A></B>(int key,
|
|
java.lang.String value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawset(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">rawset</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawset(java.lang.String, double)">rawset</A></B>(java.lang.String key,
|
|
double value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawset(java.lang.String, int)">rawset</A></B>(java.lang.String key,
|
|
int value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawset(java.lang.String, org.luaj.vm2.LuaValue)">rawset</A></B>(java.lang.String key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawset(java.lang.String, java.lang.String)">rawset</A></B>(java.lang.String key,
|
|
java.lang.String value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#rawsetlist(int, org.luaj.vm2.Varargs)">rawsetlist</A></B>(int key0,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> values)</CODE>
|
|
|
|
<BR>
|
|
Set list values in a table without invoking metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#set(int, org.luaj.vm2.LuaValue)">set</A></B>(int key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#set(int, java.lang.String)">set</A></B>(int key,
|
|
java.lang.String value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#set(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">set</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#set(java.lang.String, double)">set</A></B>(java.lang.String key,
|
|
double value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#set(java.lang.String, int)">set</A></B>(java.lang.String key,
|
|
int value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#set(java.lang.String, org.luaj.vm2.LuaValue)">set</A></B>(java.lang.String key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#set(java.lang.String, java.lang.String)">set</A></B>(java.lang.String key,
|
|
java.lang.String value)</CODE>
|
|
|
|
<BR>
|
|
Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#setfenv(org.luaj.vm2.LuaValue)">setfenv</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> env)</CODE>
|
|
|
|
<BR>
|
|
Set the environment on an object.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#setmetatable(org.luaj.vm2.LuaValue)">setmetatable</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> metatable)</CODE>
|
|
|
|
<BR>
|
|
Set the metatable for this <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected static boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#settable(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">settable</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> t,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</CODE>
|
|
|
|
<BR>
|
|
Perform field assignment including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#strcmp(org.luaj.vm2.LuaString)">strcmp</A></B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Perform string comparison with another value
|
|
known to be a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
using string comparison based on byte values.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#strcmp(org.luaj.vm2.LuaValue)">strcmp</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Perform string comparison with another value
|
|
of any type
|
|
using string comparison based on byte values.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#strongkey()">strongkey</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Return the key part of this value if it is a weak table entry, or <CODE>NIL</CODE> if it was weak and is no longer referenced.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#strongvalue()">strongvalue</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Return this value as a strong reference, or <CODE>NIL</CODE> if it was weak and is no longer referenced.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#strvalue()">strvalue</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert this value to a string if it is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>,
|
|
or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#sub(double)">sub</A></B>(double rhs)</CODE>
|
|
|
|
<BR>
|
|
Subtract: Perform numeric subtract operation with another value
|
|
of double type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#sub(int)">sub</A></B>(int rhs)</CODE>
|
|
|
|
<BR>
|
|
Subtract: Perform numeric subtract operation with another value
|
|
of int type with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)">sub</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</CODE>
|
|
|
|
<BR>
|
|
Subtract: Perform numeric subtract operation with another value
|
|
of unknown type,
|
|
including metatag processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#subFrom(double)">subFrom</A></B>(double lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-subtract: Perform numeric subtract operation from an int value
|
|
with metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#subFrom(int)">subFrom</A></B>(int lhs)</CODE>
|
|
|
|
<BR>
|
|
Reverse-subtract: Perform numeric subtract operation from a double value
|
|
without metatag processing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf()">tableOf</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Construct an empty <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf(int, int)">tableOf</A></B>(int narray,
|
|
int nhash)</CODE>
|
|
|
|
<BR>
|
|
Construct an empty <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> preallocated to hold array and hashed elements</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf(org.luaj.vm2.LuaValue[])">tableOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] namedValues)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied named values.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.LuaValue[])">tableOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] namedValues,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied named values and sequential elements.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)">tableOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] namedValues,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> lastarg)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied named values and sequential elements in an array part and as varargs.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tableOf(org.luaj.vm2.Varargs, int)">tableOf</A></B>(<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs,
|
|
int firstarg)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied array values.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tailcallOf(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)">tailcallOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> func,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/TailcallVarargs.html" title="class in org.luaj.vm2"><CODE>TailcallVarargs</CODE></A> around a function and arguments.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#testfor_b(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)">testfor_b</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> limit,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> step)</CODE>
|
|
|
|
<BR>
|
|
Perform end-condition test in for-loop processing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#toboolean()">toboolean</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to boolean false if <A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A> or <CODE>FALSE</CODE>, true if anything else</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> byte</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tobyte()">tobyte</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to byte if numeric, or 0 if not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> char</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tochar()">tochar</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to char if numeric, or 0 if not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> double</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()">todouble</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to double if numeric, or 0 if not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> float</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tofloat()">tofloat</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to float if numeric, or 0 if not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#toint()">toint</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to int if numeric, or 0 if not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()">tojstring</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to human readable String for any type.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tolong()">tolong</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to long if numeric, or 0 if not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()">tonumber</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Conditionally convert to lua number without throwing errors.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> short</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#toshort()">toshort</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to short if numeric, or 0 if not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#tostring()">tostring</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Conditionally convert to lua string without throwing errors.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#toString()">toString</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert the value to a human readable string using <A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()"><CODE>tojstring()</CODE></A></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.Object</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#touserdata()">touserdata</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Convert to userdata instance, or null.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.Object</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#touserdata(java.lang.Class)">touserdata</A></B>(java.lang.Class c)</CODE>
|
|
|
|
<BR>
|
|
Convert to userdata instance if specific type, or null.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#type()">type</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the enumeration value for the type of this value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#typename()">typename</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the String name of the type of this value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#typerror(java.lang.String)">typerror</A></B>(java.lang.String expected)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an invalid type was supplied to a function</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#unimplemented(java.lang.String)">unimplemented</A></B>(java.lang.String fun)</CODE>
|
|
|
|
<BR>
|
|
Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an operation is not implemented</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2">LuaUserdata</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#userdataOf(java.lang.Object)">userdataOf</A></B>(java.lang.Object o)</CODE>
|
|
|
|
<BR>
|
|
Construct a LuaUserdata for an object.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2">LuaUserdata</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#userdataOf(java.lang.Object, org.luaj.vm2.LuaValue)">userdataOf</A></B>(java.lang.Object o,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> metatable)</CODE>
|
|
|
|
<BR>
|
|
Construct a LuaUserdata for an object with a user supplied metatable.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2">LuaBoolean</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(boolean)">valueOf</A></B>(boolean b)</CODE>
|
|
|
|
<BR>
|
|
Convert java boolean to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(byte[])">valueOf</A></B>(byte[] bytes)</CODE>
|
|
|
|
<BR>
|
|
Convert bytes in an array to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(byte[], int, int)">valueOf</A></B>(byte[] bytes,
|
|
int off,
|
|
int len)</CODE>
|
|
|
|
<BR>
|
|
Convert bytes in an array to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(double)">valueOf</A></B>(double d)</CODE>
|
|
|
|
<BR>
|
|
Convert java double to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(int)">valueOf</A></B>(int i)</CODE>
|
|
|
|
<BR>
|
|
Convert java int to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(java.lang.String)">valueOf</A></B>(java.lang.String s)</CODE>
|
|
|
|
<BR>
|
|
Convert java string to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])">varargsOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], int, int)">varargsOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v,
|
|
int offset,
|
|
int length)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], int, int, org.luaj.vm2.Varargs)">varargsOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v,
|
|
int offset,
|
|
int length,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> more)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)">varargsOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> r)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)">varargsOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> v1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> v2,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> v3)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around a set of 3 or more <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)">varargsOf</A></B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> v,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> r)</CODE>
|
|
|
|
<BR>
|
|
Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around a set of 2 or more <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_org.luaj.vm2.Varargs"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class org.luaj.vm2.<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../org/luaj/vm2/Varargs.html#argcheck(boolean, int, java.lang.String)">argcheck</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkboolean(int)">checkboolean</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkclosure(int)">checkclosure</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkdouble(int)">checkdouble</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkfunction(int)">checkfunction</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkint(int)">checkint</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkinteger(int)">checkinteger</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkjstring(int)">checkjstring</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checklong(int)">checklong</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checknotnil(int)">checknotnil</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checknumber(int)">checknumber</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkstring(int)">checkstring</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checktable(int)">checktable</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkthread(int)">checkthread</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkuserdata(int)">checkuserdata</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkuserdata(int, java.lang.Class)">checkuserdata</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#checkvalue(int)">checkvalue</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#eval()">eval</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isfunction(int)">isfunction</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isnil(int)">isnil</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isnoneornil(int)">isnoneornil</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isnumber(int)">isnumber</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isstring(int)">isstring</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#istable(int)">istable</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isTailcall()">isTailcall</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isthread(int)">isthread</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isuserdata(int)">isuserdata</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#isvalue(int)">isvalue</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optboolean(int, boolean)">optboolean</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optclosure(int, org.luaj.vm2.LuaClosure)">optclosure</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optdouble(int, double)">optdouble</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optfunction(int, org.luaj.vm2.LuaFunction)">optfunction</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optint(int, int)">optint</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optinteger(int, org.luaj.vm2.LuaInteger)">optinteger</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optjstring(int, java.lang.String)">optjstring</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optlong(int, long)">optlong</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optnumber(int, org.luaj.vm2.LuaNumber)">optnumber</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optstring(int, org.luaj.vm2.LuaString)">optstring</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#opttable(int, org.luaj.vm2.LuaTable)">opttable</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optthread(int, org.luaj.vm2.LuaThread)">optthread</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optuserdata(int, java.lang.Class, java.lang.Object)">optuserdata</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optuserdata(int, java.lang.Object)">optuserdata</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#optvalue(int, org.luaj.vm2.LuaValue)">optvalue</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#subargs(int)">subargs</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#toboolean(int)">toboolean</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#tobyte(int)">tobyte</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#tochar(int)">tochar</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#todouble(int)">todouble</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#tofloat(int)">tofloat</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#toint(int)">toint</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#tojstring(int)">tojstring</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#tolong(int)">tolong</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#toshort(int)">toshort</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#touserdata(int)">touserdata</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#touserdata(int, java.lang.Class)">touserdata</A>, <A HREF="../../../org/luaj/vm2/Varargs.html#type(int)">type</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="TINT"><!-- --></A><H3>
|
|
TINT</H3>
|
|
<PRE>
|
|
public static final int <B>TINT</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua numbers that are ints, for compatibility with lua 5.1 number patch only
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TINT">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TNONE"><!-- --></A><H3>
|
|
TNONE</H3>
|
|
<PRE>
|
|
public static final int <B>TNONE</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua values that have no type, for example weak table entries
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TNONE">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TNIL"><!-- --></A><H3>
|
|
TNIL</H3>
|
|
<PRE>
|
|
public static final int <B>TNIL</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua nil
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TNIL">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TBOOLEAN"><!-- --></A><H3>
|
|
TBOOLEAN</H3>
|
|
<PRE>
|
|
public static final int <B>TBOOLEAN</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua booleans
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TBOOLEAN">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TLIGHTUSERDATA"><!-- --></A><H3>
|
|
TLIGHTUSERDATA</H3>
|
|
<PRE>
|
|
public static final int <B>TLIGHTUSERDATA</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua light userdata, for compatibility with C-based lua only
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TLIGHTUSERDATA">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TNUMBER"><!-- --></A><H3>
|
|
TNUMBER</H3>
|
|
<PRE>
|
|
public static final int <B>TNUMBER</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua numbers
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TNUMBER">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TSTRING"><!-- --></A><H3>
|
|
TSTRING</H3>
|
|
<PRE>
|
|
public static final int <B>TSTRING</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua strings
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TSTRING">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TTABLE"><!-- --></A><H3>
|
|
TTABLE</H3>
|
|
<PRE>
|
|
public static final int <B>TTABLE</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua tables
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TTABLE">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TFUNCTION"><!-- --></A><H3>
|
|
TFUNCTION</H3>
|
|
<PRE>
|
|
public static final int <B>TFUNCTION</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua functions
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TFUNCTION">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TUSERDATA"><!-- --></A><H3>
|
|
TUSERDATA</H3>
|
|
<PRE>
|
|
public static final int <B>TUSERDATA</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua userdatas
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TUSERDATA">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TTHREAD"><!-- --></A><H3>
|
|
TTHREAD</H3>
|
|
<PRE>
|
|
public static final int <B>TTHREAD</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for lua threads
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TTHREAD">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TVALUE"><!-- --></A><H3>
|
|
TVALUE</H3>
|
|
<PRE>
|
|
public static final int <B>TVALUE</B></PRE>
|
|
<DL>
|
|
<DD>Type enumeration constant for unknown values, for compatibility with C-based lua only
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LuaValue.TVALUE">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TYPE_NAMES"><!-- --></A><H3>
|
|
TYPE_NAMES</H3>
|
|
<PRE>
|
|
public static final java.lang.String[] <B>TYPE_NAMES</B></PRE>
|
|
<DL>
|
|
<DD>String array constant containing names of each of the lua value types
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#type()"><CODE>type()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#typename()"><CODE>typename()</CODE></A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="NIL"><!-- --></A><H3>
|
|
NIL</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>NIL</B></PRE>
|
|
<DL>
|
|
<DD>LuaValue constant corresponding to lua <code>nil</code>
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TRUE"><!-- --></A><H3>
|
|
TRUE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2">LuaBoolean</A> <B>TRUE</B></PRE>
|
|
<DL>
|
|
<DD>LuaBoolean constant corresponding to lua <code>true</code>
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="FALSE"><!-- --></A><H3>
|
|
FALSE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2">LuaBoolean</A> <B>FALSE</B></PRE>
|
|
<DL>
|
|
<DD>LuaBoolean constant corresponding to lua <code>false</code>
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="NONE"><!-- --></A><H3>
|
|
NONE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>NONE</B></PRE>
|
|
<DL>
|
|
<DD>LuaValue constant corresponding to a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> list of no values
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ZERO"><!-- --></A><H3>
|
|
ZERO</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> <B>ZERO</B></PRE>
|
|
<DL>
|
|
<DD>LuaValue number constant equal to 0
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ONE"><!-- --></A><H3>
|
|
ONE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> <B>ONE</B></PRE>
|
|
<DL>
|
|
<DD>LuaValue number constant equal to 1
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="MINUSONE"><!-- --></A><H3>
|
|
MINUSONE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> <B>MINUSONE</B></PRE>
|
|
<DL>
|
|
<DD>LuaValue number constant equal to -1
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="NOVALS"><!-- --></A><H3>
|
|
NOVALS</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] <B>NOVALS</B></PRE>
|
|
<DL>
|
|
<DD>LuaValue array constant with no values
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="INDEX"><!-- --></A><H3>
|
|
INDEX</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>INDEX</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__index" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="NEWINDEX"><!-- --></A><H3>
|
|
NEWINDEX</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>NEWINDEX</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__newindex" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="CALL"><!-- --></A><H3>
|
|
CALL</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>CALL</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__call" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="MODE"><!-- --></A><H3>
|
|
MODE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>MODE</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__mode" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="METATABLE"><!-- --></A><H3>
|
|
METATABLE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>METATABLE</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__metatable" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ADD"><!-- --></A><H3>
|
|
ADD</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>ADD</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__add" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="SUB"><!-- --></A><H3>
|
|
SUB</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>SUB</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__sub" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="DIV"><!-- --></A><H3>
|
|
DIV</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>DIV</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__div" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="MUL"><!-- --></A><H3>
|
|
MUL</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>MUL</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__mul" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="POW"><!-- --></A><H3>
|
|
POW</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>POW</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__pow" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="MOD"><!-- --></A><H3>
|
|
MOD</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>MOD</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__mod" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="UNM"><!-- --></A><H3>
|
|
UNM</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>UNM</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__unm" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="LEN"><!-- --></A><H3>
|
|
LEN</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>LEN</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__len" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="EQ"><!-- --></A><H3>
|
|
EQ</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>EQ</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__eq" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="LT"><!-- --></A><H3>
|
|
LT</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>LT</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__lt" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="LE"><!-- --></A><H3>
|
|
LE</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>LE</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__le" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TOSTRING"><!-- --></A><H3>
|
|
TOSTRING</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>TOSTRING</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__tostring" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="CONCAT"><!-- --></A><H3>
|
|
CONCAT</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>CONCAT</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value "__concat" for use as metatag
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="EMPTYSTRING"><!-- --></A><H3>
|
|
EMPTYSTRING</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>EMPTYSTRING</B></PRE>
|
|
<DL>
|
|
<DD>LuaString constant with value ""
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="NILS"><!-- --></A><H3>
|
|
NILS</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] <B>NILS</B></PRE>
|
|
<DL>
|
|
<DD>Array of <CODE>NIL</CODE> values to optimize filling stacks using System.arraycopy().
|
|
Must not be modified.
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="LuaValue()"><!-- --></A><H3>
|
|
LuaValue</H3>
|
|
<PRE>
|
|
public <B>LuaValue</B>()</PRE>
|
|
<DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="type()"><!-- --></A><H3>
|
|
type</H3>
|
|
<PRE>
|
|
public abstract int <B>type</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the enumeration value for the type of this value.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>value for this type, one of
|
|
<CODE>TNIL</CODE>,
|
|
<CODE>TBOOLEAN</CODE>,
|
|
<CODE>TNUMBER</CODE>,
|
|
<CODE>TSTRING</CODE>,
|
|
<CODE>TTABLE</CODE>,
|
|
<CODE>TFUNCTION</CODE>,
|
|
<CODE>TUSERDATA</CODE>,
|
|
<CODE>TTHREAD</CODE><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#typename()"><CODE>typename()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="typename()"><!-- --></A><H3>
|
|
typename</H3>
|
|
<PRE>
|
|
public abstract java.lang.String <B>typename</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the String name of the type of this value.
|
|
<p>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>name from type name list <A HREF="../../../org/luaj/vm2/LuaValue.html#TYPE_NAMES"><CODE>TYPE_NAMES</CODE></A>
|
|
corresponding to the type of this value:
|
|
"nil", "boolean", "number", "string",
|
|
"table", "function", "userdata", "thread"<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#type()"><CODE>type()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isboolean()"><!-- --></A><H3>
|
|
isboolean</H3>
|
|
<PRE>
|
|
public boolean <B>isboolean</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>boolean</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>boolean</code>, otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isboolean()"><CODE>isboolean()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toboolean()"><CODE>toboolean()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkboolean()"><CODE>checkboolean()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optboolean(boolean)"><CODE>optboolean(boolean)</CODE></A>,
|
|
<CODE>#TOBOLEAN</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isclosure()"><!-- --></A><H3>
|
|
isclosure</H3>
|
|
<PRE>
|
|
public boolean <B>isclosure</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>function</code> that is a closure,
|
|
meaning interprets lua bytecode for its execution
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>closure</code>, otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isfunction()"><CODE>isfunction()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkclosure()"><CODE>checkclosure()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optclosure(org.luaj.vm2.LuaClosure)"><CODE>optclosure(LuaClosure)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TFUNCTION"><CODE>TFUNCTION</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isfunction()"><!-- --></A><H3>
|
|
isfunction</H3>
|
|
<PRE>
|
|
public boolean <B>isfunction</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>function</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>function</code>, otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isclosure()"><CODE>isclosure()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkfunction()"><CODE>checkfunction()</CODE></A>,
|
|
<CODE>#optfunciton(LuaFunction)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TFUNCTION"><CODE>TFUNCTION</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isint()"><!-- --></A><H3>
|
|
isint</H3>
|
|
<PRE>
|
|
public boolean <B>isint</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>number</code> and is representable by java int
|
|
without rounding or truncation
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>number</code>
|
|
meaning derives from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derives from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and is convertible to a number,
|
|
and can be represented by int,
|
|
otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isinttype()"><CODE>isinttype()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#islong()"><CODE>islong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)"><CODE>optint(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isinttype()"><!-- --></A><H3>
|
|
isinttype</H3>
|
|
<PRE>
|
|
public boolean <B>isinttype</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A>
|
|
<p>
|
|
No attempt to convert from string will be made by this call.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>LuaInteger</code>,
|
|
otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isint()"><CODE>isint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="islong()"><!-- --></A><H3>
|
|
islong</H3>
|
|
<PRE>
|
|
public boolean <B>islong</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>number</code> and is representable by java long
|
|
without rounding or truncation
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>number</code>
|
|
meaning derives from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derives from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and is convertible to a number,
|
|
and can be represented by long,
|
|
otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checklong()"><CODE>checklong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optlong(long)"><CODE>optlong(long)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isnil()"><!-- --></A><H3>
|
|
isnil</H3>
|
|
<PRE>
|
|
public boolean <B>isnil</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is <code>nil</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is <code>nil</code>, otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#NONE"><CODE>NONE</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknotnil()"><CODE>checknotnil()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optvalue(org.luaj.vm2.LuaValue)"><CODE>optvalue(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html#isnoneornil(int)"><CODE>Varargs.isnoneornil(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNIL"><CODE>TNIL</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNONE"><CODE>TNONE</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isnumber()"><!-- --></A><H3>
|
|
isnumber</H3>
|
|
<PRE>
|
|
public boolean <B>isnumber</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>number</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>number</code>,
|
|
meaning derives from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derives from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and is convertible to a number,
|
|
otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optnumber(org.luaj.vm2.LuaNumber)"><CODE>optnumber(LuaNumber)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isstring()"><!-- --></A><H3>
|
|
isstring</H3>
|
|
<PRE>
|
|
public boolean <B>isstring</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>string</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>string</code>,
|
|
meaning derives from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>,
|
|
otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tostring()"><CODE>tostring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkstring()"><CODE>checkstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optstring(org.luaj.vm2.LuaString)"><CODE>optstring(LuaString)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TSTRING"><CODE>TSTRING</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isthread()"><!-- --></A><H3>
|
|
isthread</H3>
|
|
<PRE>
|
|
public boolean <B>isthread</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>thread</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>thread</code>, otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkthread()"><CODE>checkthread()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optthread(org.luaj.vm2.LuaThread)"><CODE>optthread(LuaThread)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TTHREAD"><CODE>TTHREAD</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="istable()"><!-- --></A><H3>
|
|
istable</H3>
|
|
<PRE>
|
|
public boolean <B>istable</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>table</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>table</code>, otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checktable()"><CODE>checktable()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#opttable(org.luaj.vm2.LuaTable)"><CODE>opttable(LuaTable)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TTABLE"><CODE>TTABLE</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isuserdata()"><!-- --></A><H3>
|
|
isuserdata</H3>
|
|
<PRE>
|
|
public boolean <B>isuserdata</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>userdata</code>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a <code>userdata</code>, otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata(java.lang.Class)"><CODE>isuserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#touserdata()"><CODE>touserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata()"><CODE>checkuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Object)"><CODE>optuserdata(Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isuserdata(java.lang.Class)"><!-- --></A><H3>
|
|
isuserdata</H3>
|
|
<PRE>
|
|
public boolean <B>isuserdata</B>(java.lang.Class c)</PRE>
|
|
<DL>
|
|
<DD>Check if <code>this</code> is a <code>userdata</code> of type <code>c</code>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>c</CODE> - Class to test instance against
|
|
<DT><B>Returns:</B><DD>true if this is a <code>userdata</code>
|
|
and the instance is assignable to <code>c</code>,
|
|
otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata()"><CODE>isuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#touserdata(java.lang.Class)"><CODE>touserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata(java.lang.Class)"><CODE>checkuserdata(Class)</CODE></A>,
|
|
<CODE>#optuserdata(Object,Class)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toboolean()"><!-- --></A><H3>
|
|
toboolean</H3>
|
|
<PRE>
|
|
public boolean <B>toboolean</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to boolean false if <A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A> or <CODE>FALSE</CODE>, true if anything else
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to byte if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optboolean(boolean)"><CODE>optboolean(boolean)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkboolean()"><CODE>checkboolean()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isboolean()"><CODE>isboolean()</CODE></A>,
|
|
<CODE>TBOOLEAN</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tobyte()"><!-- --></A><H3>
|
|
tobyte</H3>
|
|
<PRE>
|
|
public byte <B>tobyte</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to byte if numeric, or 0 if not.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to byte if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A>,
|
|
<CODE>#optbyte(byte)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<CODE>TNUMBER</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tochar()"><!-- --></A><H3>
|
|
tochar</H3>
|
|
<PRE>
|
|
public char <B>tochar</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to char if numeric, or 0 if not.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to char if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A>,
|
|
<CODE>#optchar(char)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<CODE>TNUMBER</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="todouble()"><!-- --></A><H3>
|
|
todouble</H3>
|
|
<PRE>
|
|
public double <B>todouble</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to double if numeric, or 0 if not.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to double if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tobyte()"><CODE>tobyte()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tochar()"><CODE>tochar()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toshort()"><CODE>toshort()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tolong()"><CODE>tolong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tofloat()"><CODE>tofloat()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optdouble(double)"><CODE>optdouble(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<CODE>TNUMBER</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tofloat()"><!-- --></A><H3>
|
|
tofloat</H3>
|
|
<PRE>
|
|
public float <B>tofloat</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to float if numeric, or 0 if not.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to float if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A>,
|
|
<CODE>#optfloat(float)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<CODE>TNUMBER</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toint()"><!-- --></A><H3>
|
|
toint</H3>
|
|
<PRE>
|
|
public int <B>toint</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to int if numeric, or 0 if not.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to int if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tobyte()"><CODE>tobyte()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tochar()"><CODE>tochar()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toshort()"><CODE>toshort()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tolong()"><CODE>tolong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tofloat()"><CODE>tofloat()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)"><CODE>optint(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<CODE>TNUMBER</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tolong()"><!-- --></A><H3>
|
|
tolong</H3>
|
|
<PRE>
|
|
public long <B>tolong</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to long if numeric, or 0 if not.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to long if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isint()"><CODE>isint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isinttype()"><CODE>isinttype()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optlong(long)"><CODE>optlong(long)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<CODE>TNUMBER</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toshort()"><!-- --></A><H3>
|
|
toshort</H3>
|
|
<PRE>
|
|
public short <B>toshort</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to short if numeric, or 0 if not.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Value cast to short if number or string convertible to number, otherwise 0<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A>,
|
|
<CODE>#optshort(short)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<CODE>TNUMBER</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tojstring()"><!-- --></A><H3>
|
|
tojstring</H3>
|
|
<PRE>
|
|
public java.lang.String <B>tojstring</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to human readable String for any type.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/luaj/vm2/Varargs.html#tojstring()">tojstring</A></CODE> in class <CODE><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>String for use by human readers based on type.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tostring()"><CODE>tostring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optjstring(java.lang.String)"><CODE>optjstring(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkjstring()"><CODE>checkjstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isstring()"><CODE>isstring()</CODE></A>,
|
|
<CODE>TSTRING</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="touserdata()"><!-- --></A><H3>
|
|
touserdata</H3>
|
|
<PRE>
|
|
public java.lang.Object <B>touserdata</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert to userdata instance, or null.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>userdata instance if userdata, or null if not <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Object)"><CODE>optuserdata(Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata()"><CODE>checkuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata()"><CODE>isuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="touserdata(java.lang.Class)"><!-- --></A><H3>
|
|
touserdata</H3>
|
|
<PRE>
|
|
public java.lang.Object <B>touserdata</B>(java.lang.Class c)</PRE>
|
|
<DL>
|
|
<DD>Convert to userdata instance if specific type, or null.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>userdata instance if is a userdata whose instance derives from <code>c</code>,
|
|
or null if not <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Class, java.lang.Object)"><CODE>optuserdata(Class,Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata(java.lang.Class)"><CODE>checkuserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata(java.lang.Class)"><CODE>isuserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toString()"><!-- --></A><H3>
|
|
toString</H3>
|
|
<PRE>
|
|
public java.lang.String <B>toString</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert the value to a human readable string using <A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()"><CODE>tojstring()</CODE></A>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/luaj/vm2/Varargs.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>String value intended to be human readible.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tostring()"><CODE>tostring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()"><CODE>tojstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optstring(org.luaj.vm2.LuaString)"><CODE>optstring(LuaString)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkstring()"><CODE>checkstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toString()"><CODE>toString()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tonumber()"><!-- --></A><H3>
|
|
tonumber</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>tonumber</B>()</PRE>
|
|
<DL>
|
|
<DD>Conditionally convert to lua number without throwing errors.
|
|
<p>
|
|
In lua all numbers are strings, but not all strings are numbers.
|
|
This function will return
|
|
the <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> <code>this</code> if it is a number
|
|
or a string convertible to a number,
|
|
and <CODE>NIL</CODE> for all other cases.
|
|
<p>
|
|
This allows values to be tested for their "numeric-ness" without
|
|
the penalty of throwing exceptions,
|
|
nor the cost of converting the type and creating storage for it.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if it is a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can be converted to a number,
|
|
otherwise <A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tostring()"><CODE>tostring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optnumber(org.luaj.vm2.LuaNumber)"><CODE>optnumber(LuaNumber)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checknumber()"><CODE>checknumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tostring()"><!-- --></A><H3>
|
|
tostring</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>tostring</B>()</PRE>
|
|
<DL>
|
|
<DD>Conditionally convert to lua string without throwing errors.
|
|
<p>
|
|
In lua all numbers are strings, so this function will return
|
|
the <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> <code>this</code> if it is a string or number,
|
|
and <CODE>NIL</CODE> for all other cases.
|
|
<p>
|
|
This allows values to be tested for their "string-ness" without
|
|
the penalty of throwing exceptions.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if it is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>,
|
|
otherwise <CODE>NIL</CODE><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()"><CODE>tojstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optstring(org.luaj.vm2.LuaString)"><CODE>optstring(LuaString)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkstring()"><CODE>checkstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toString()"><CODE>toString()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optboolean(boolean)"><!-- --></A><H3>
|
|
optboolean</H3>
|
|
<PRE>
|
|
public boolean <B>optboolean</B>(boolean defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a boolean and return its boolean value
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - boolean value to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to boolean if a ,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a boolean or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkboolean()"><CODE>checkboolean()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isboolean()"><CODE>isboolean()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TBOOLEAN"><CODE>TBOOLEAN</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optclosure(org.luaj.vm2.LuaClosure)"><!-- --></A><H3>
|
|
optclosure</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2">LuaClosure</A> <B>optclosure</B>(<A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2">LuaClosure</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a closure and return as <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A>
|
|
<p>
|
|
A <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A> is a that executes lua byteccode.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A> if a function,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a closure or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkclosure()"><CODE>checkclosure()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isclosure()"><CODE>isclosure()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TFUNCTION"><CODE>TFUNCTION</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optdouble(double)"><!-- --></A><H3>
|
|
optdouble</H3>
|
|
<PRE>
|
|
public double <B>optdouble</B>(double defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a number or string convertible to number and return as double
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - double to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to double if numeric,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not numeric or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)"><CODE>optint(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optinteger(org.luaj.vm2.LuaInteger)"><CODE>optinteger(LuaInteger)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkdouble()"><CODE>checkdouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#todouble()"><CODE>todouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optfunction(org.luaj.vm2.LuaFunction)"><!-- --></A><H3>
|
|
optfunction</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2">LuaFunction</A> <B>optfunction</B>(<A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2">LuaFunction</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a function and return as <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>
|
|
<p>
|
|
A <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A> may either be a Java function that implements
|
|
functionality directly in Java,
|
|
or a <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A>
|
|
which is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A> that executes lua bytecode.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A> if a function,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a function or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkfunction()"><CODE>checkfunction()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isfunction()"><CODE>isfunction()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TFUNCTION"><CODE>TFUNCTION</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optint(int)"><!-- --></A><H3>
|
|
optint</H3>
|
|
<PRE>
|
|
public int <B>optint</B>(int defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a number or string convertible to number and return as int
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - int to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to int if numeric,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not numeric or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optdouble(double)"><CODE>optdouble(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optlong(long)"><CODE>optlong(long)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optinteger(org.luaj.vm2.LuaInteger)"><CODE>optinteger(LuaInteger)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optinteger(org.luaj.vm2.LuaInteger)"><!-- --></A><H3>
|
|
optinteger</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A> <B>optinteger</B>(<A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a number or string convertible to number and return as <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> converted and wrapped in <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A> if numeric,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not numeric or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optdouble(double)"><CODE>optdouble(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)"><CODE>optint(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optlong(long)"><!-- --></A><H3>
|
|
optlong</H3>
|
|
<PRE>
|
|
public long <B>optlong</B>(long defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a number or string convertible to number and return as long
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - long to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to long if numeric,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not numeric or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optdouble(double)"><CODE>optdouble(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)"><CODE>optint(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optnumber(org.luaj.vm2.LuaNumber)"><!-- --></A><H3>
|
|
optnumber</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> <B>optnumber</B>(<A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a number or string convertible to number and return as <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> if numeric,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not numeric or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optdouble(double)"><CODE>optdouble(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optlong(long)"><CODE>optlong(long)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)"><CODE>optint(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tonumber()"><CODE>tonumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnumber()"><CODE>isnumber()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optjstring(java.lang.String)"><!-- --></A><H3>
|
|
optjstring</H3>
|
|
<PRE>
|
|
public java.lang.String <B>optjstring</B>(java.lang.String defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a string or number and return as Java String
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> converted to String if a string or number,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if some other type
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a string or number or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()"><CODE>tojstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optstring(org.luaj.vm2.LuaString)"><CODE>optstring(LuaString)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkjstring()"><CODE>checkjstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toString()"><CODE>toString()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TSTRING"><CODE>TSTRING</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optstring(org.luaj.vm2.LuaString)"><!-- --></A><H3>
|
|
optstring</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>optstring</B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a string or number and return as <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> converted to <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> if a string or number,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if some other type
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a string or number or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()"><CODE>tojstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optjstring(java.lang.String)"><CODE>optjstring(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkstring()"><CODE>checkstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#toString()"><CODE>toString()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TSTRING"><CODE>TSTRING</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="opttable(org.luaj.vm2.LuaTable)"><!-- --></A><H3>
|
|
opttable</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>opttable</B>(<A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a table and return as <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> if a table,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if some other type
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a table or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checktable()"><CODE>checktable()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#istable()"><CODE>istable()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TTABLE"><CODE>TTABLE</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optthread(org.luaj.vm2.LuaThread)"><!-- --></A><H3>
|
|
optthread</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2">LuaThread</A> <B>optthread</B>(<A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2">LuaThread</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a thread and return as <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2"><CODE>LuaThread</CODE></A>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2"><CODE>LuaThread</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> cast to <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> if a thread,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if some other type
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a thread or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkthread()"><CODE>checkthread()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isthread()"><CODE>isthread()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TTHREAD"><CODE>TTHREAD</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optuserdata(java.lang.Object)"><!-- --></A><H3>
|
|
optuserdata</H3>
|
|
<PRE>
|
|
public java.lang.Object <B>optuserdata</B>(java.lang.Object defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a userdata and return the Object instance
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - Object to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD>Object instance of the userdata if a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A>,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if some other type
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a userdata or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata()"><CODE>checkuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata()"><CODE>isuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Class, java.lang.Object)"><CODE>optuserdata(Class, Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optuserdata(java.lang.Class, java.lang.Object)"><!-- --></A><H3>
|
|
optuserdata</H3>
|
|
<PRE>
|
|
public java.lang.Object <B>optuserdata</B>(java.lang.Class c,
|
|
java.lang.Object defval)</PRE>
|
|
<DL>
|
|
<DD>Check that optional argument is a userdata whose instance is of a type
|
|
and return the Object instance
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>c</CODE> - Class to test userdata instance against<DD><CODE>defval</CODE> - Object to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD>Object instance of the userdata if a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> and instance is assignable to <code>c</code>,
|
|
<code>defval</code> if nil or none,
|
|
throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if some other type
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if was not a userdata whose instance is assignable to <code>c</code> or nil or none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata(java.lang.Class)"><CODE>checkuserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata(java.lang.Class)"><CODE>isuserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Object)"><CODE>optuserdata(Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="optvalue(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
optvalue</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>optvalue</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> defval)</PRE>
|
|
<DL>
|
|
<DD>Perform argument check that this is not nil or none.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>defval</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> to return if <code>this</code> is nil or none
|
|
<DT><B>Returns:</B><DD><code>this</code> if not nil or none, else <code>defval</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#NONE"><CODE>NONE</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnil()"><CODE>isnil()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html#isnoneornil(int)"><CODE>Varargs.isnoneornil(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNIL"><CODE>TNIL</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNONE"><CODE>TNONE</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkboolean()"><!-- --></A><H3>
|
|
checkboolean</H3>
|
|
<PRE>
|
|
public boolean <B>checkboolean</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is a <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2"><CODE>LuaBoolean</CODE></A>,
|
|
or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>boolean value for <code>this</code> if it is a <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2"><CODE>LuaBoolean</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2"><CODE>LuaBoolean</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optboolean(boolean)"><CODE>optboolean(boolean)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TBOOLEAN"><CODE>TBOOLEAN</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkclosure()"><!-- --></A><H3>
|
|
checkclosure</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2">LuaClosure</A> <B>checkclosure</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is a <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A> ,
|
|
or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not
|
|
<p>
|
|
<A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A> is a subclass of that interprets lua bytecode.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> cast as <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkfunction()"><CODE>checkfunction()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optclosure(org.luaj.vm2.LuaClosure)"><CODE>optclosure(LuaClosure)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isclosure()"><CODE>isclosure()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TFUNCTION"><CODE>TFUNCTION</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkdouble()"><!-- --></A><H3>
|
|
checkdouble</H3>
|
|
<PRE>
|
|
public double <B>checkdouble</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is numeric and return the value as a double,
|
|
or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric
|
|
<p>
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> and values that are <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
that can be converted to a number will be converted to double.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>value cast to a double if numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> or is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can't be converted to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkinteger()"><CODE>checkinteger()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checklong()"><CODE>checklong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optdouble(double)"><CODE>optdouble(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkfunction()"><!-- --></A><H3>
|
|
checkfunction</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>checkfunction</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is a function , or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not
|
|
<p>
|
|
A function is considered anything whose <A HREF="../../../org/luaj/vm2/LuaValue.html#type()"><CODE>type()</CODE></A> returns <CODE>TFUNCTION</CODE>.
|
|
In practice it will be either a built-in Java function, typically deriving from
|
|
<A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A> or a <A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A> which represents lua source compiled
|
|
into lua bytecode.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if if a lua function or closure
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkclosure()"><CODE>checkclosure()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkint()"><!-- --></A><H3>
|
|
checkint</H3>
|
|
<PRE>
|
|
public int <B>checkint</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is numeric, and convert and cast value to int, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric
|
|
<p>
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> will be cast to int and may lose precision.
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can be converted to a number will be converted,
|
|
then cast to int, so may also lose precision.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>value cast to a int if numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> or is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can't be converted to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkinteger()"><CODE>checkinteger()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checklong()"><CODE>checklong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkdouble()"><CODE>checkdouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optint(int)"><CODE>optint(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkinteger()"><!-- --></A><H3>
|
|
checkinteger</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A> <B>checkinteger</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is numeric, and convert and cast value to int, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric
|
|
<p>
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> will be cast to int and may lose precision.
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can be converted to a number will be converted,
|
|
then cast to int, so may also lose precision.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>value cast to a int and wrapped in <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A> if numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> or is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can't be converted to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checklong()"><CODE>checklong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkdouble()"><CODE>checkdouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optinteger(org.luaj.vm2.LuaInteger)"><CODE>optinteger(LuaInteger)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checklong()"><!-- --></A><H3>
|
|
checklong</H3>
|
|
<PRE>
|
|
public long <B>checklong</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is numeric, and convert and cast value to long, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not numeric
|
|
<p>
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> will be cast to long and may lose precision.
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can be converted to a number will be converted,
|
|
then cast to long, so may also lose precision.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>value cast to a long if numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> or is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can't be converted to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkinteger()"><CODE>checkinteger()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkdouble()"><CODE>checkdouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optlong(long)"><CODE>optlong(long)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checknumber()"><!-- --></A><H3>
|
|
checknumber</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> <B>checknumber</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that the value is numeric, and return as a LuaNumber if so, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
<p>
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can be converted to a number will be converted and returned.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>value as a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> if numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> or is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can't be converted to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkinteger()"><CODE>checkinteger()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkdouble()"><CODE>checkdouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checklong()"><CODE>checklong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optnumber(org.luaj.vm2.LuaNumber)"><CODE>optnumber(LuaNumber)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checknumber(java.lang.String)"><!-- --></A><H3>
|
|
checknumber</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> <B>checknumber</B>(java.lang.String msg)</PRE>
|
|
<DL>
|
|
<DD>Check that the value is numeric, and return as a LuaNumber if so, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
<p>
|
|
Values that are <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can be converted to a number will be converted and returned.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - String message to supply if conversion fails
|
|
<DT><B>Returns:</B><DD>value as a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> if numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> or is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> that can't be converted to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkint()"><CODE>checkint()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkinteger()"><CODE>checkinteger()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkdouble()"><CODE>checkdouble()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checklong()"><CODE>checklong()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optnumber(org.luaj.vm2.LuaNumber)"><CODE>optnumber(LuaNumber)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TNUMBER"><CODE>TNUMBER</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkjstring()"><!-- --></A><H3>
|
|
checkjstring</H3>
|
|
<PRE>
|
|
public java.lang.String <B>checkjstring</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert this value to a Java String.
|
|
<p>
|
|
The string representations here will roughly match what is produced by the
|
|
C lua distribution, however hash codes have no relationship,
|
|
and there may be differences in number formatting.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>String representation of the value<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkstring()"><CODE>checkstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optjstring(java.lang.String)"><CODE>optjstring(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tojstring()"><CODE>tojstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isstring()"><CODE>isstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TSTRING"><CODE>TSTRING</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkstring()"><!-- --></A><H3>
|
|
checkstring</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>checkstring</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that this is a lua string, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not.
|
|
<p>
|
|
In lua all numbers are strings, so this will succeed for
|
|
anything that derives from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
Numbers will be converted to <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> representation of the value if it is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#checkjstring()"><CODE>checkjstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optstring(org.luaj.vm2.LuaString)"><CODE>optstring(LuaString)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#tostring()"><CODE>tostring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isstring()"><CODE>isstring()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TSTRING"><CODE>TSTRING</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checktable()"><!-- --></A><H3>
|
|
checktable</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>checktable</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that this is a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if it is a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#istable()"><CODE>istable()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#opttable(org.luaj.vm2.LuaTable)"><CODE>opttable(LuaTable)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TTABLE"><CODE>TTABLE</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkthread()"><!-- --></A><H3>
|
|
checkthread</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2">LuaThread</A> <B>checkthread</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that this is a <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2"><CODE>LuaThread</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if it is a <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2"><CODE>LuaThread</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a <A HREF="../../../org/luaj/vm2/LuaThread.html" title="class in org.luaj.vm2"><CODE>LuaThread</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isthread()"><CODE>isthread()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optthread(org.luaj.vm2.LuaThread)"><CODE>optthread(LuaThread)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TTHREAD"><CODE>TTHREAD</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkuserdata()"><!-- --></A><H3>
|
|
checkuserdata</H3>
|
|
<PRE>
|
|
public java.lang.Object <B>checkuserdata</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that this is a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if it is a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata()"><CODE>isuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Object)"><CODE>optuserdata(Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata(java.lang.Class)"><CODE>checkuserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkuserdata(java.lang.Class)"><!-- --></A><H3>
|
|
checkuserdata</H3>
|
|
<PRE>
|
|
public java.lang.Object <B>checkuserdata</B>(java.lang.Class c)</PRE>
|
|
<DL>
|
|
<DD>Check that this is a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if it is a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isuserdata(java.lang.Class)"><CODE>isuserdata(Class)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#optuserdata(java.lang.Class, java.lang.Object)"><CODE>optuserdata(Class, Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#checkuserdata()"><CODE>checkuserdata()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#TUSERDATA"><CODE>TUSERDATA</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checknotnil()"><!-- --></A><H3>
|
|
checknotnil</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>checknotnil</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that this is not the value <CODE>NIL</CODE>, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if it is not <CODE>NIL</CODE>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is <CODE>NIL</CODE><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#optvalue(org.luaj.vm2.LuaValue)"><CODE>optvalue(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkvalidkey()"><!-- --></A><H3>
|
|
checkvalidkey</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>checkvalidkey</B>()</PRE>
|
|
<DL>
|
|
<DD>Check that this is a valid key in a table index operation, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><code>this</code> if valid as a table key
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not valid as a table key<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#isnil()"><CODE>isnil()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isinttype()"><CODE>isinttype()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="error(java.lang.String)"><!-- --></A><H3>
|
|
error</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>error</B>(java.lang.String message)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> with a particular message
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>message</CODE> - String providing message details
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="assert_(boolean, java.lang.String)"><!-- --></A><H3>
|
|
assert_</H3>
|
|
<PRE>
|
|
public static void <B>assert_</B>(boolean b,
|
|
java.lang.String msg)</PRE>
|
|
<DL>
|
|
<DD>Assert a condition is true, or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>b</CODE> - condition to test
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if b is not true</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="argerror(java.lang.String)"><!-- --></A><H3>
|
|
argerror</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>argerror</B>(java.lang.String expected)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an invalid argument was supplied to a function
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>expected</CODE> - String naming the type that was expected
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="argerror(int, java.lang.String)"><!-- --></A><H3>
|
|
argerror</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>argerror</B>(int iarg,
|
|
java.lang.String msg)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an invalid argument was supplied to a function
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>iarg</CODE> - index of the argument that was invalid, first index is 1<DD><CODE>msg</CODE> - String providing information about the invalid argument
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="typerror(java.lang.String)"><!-- --></A><H3>
|
|
typerror</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>typerror</B>(java.lang.String expected)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an invalid type was supplied to a function
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>expected</CODE> - String naming the type that was expected
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="unimplemented(java.lang.String)"><!-- --></A><H3>
|
|
unimplemented</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>unimplemented</B>(java.lang.String fun)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an operation is not implemented
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="illegal(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
illegal</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>illegal</B>(java.lang.String op,
|
|
java.lang.String typename)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> indicating an illegal operation occurred,
|
|
typically involved in managing weak references
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lenerror()"><!-- --></A><H3>
|
|
lenerror</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>lenerror</B>()</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on the len operator,
|
|
typically due to an invalid operand type
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="aritherror()"><!-- --></A><H3>
|
|
aritherror</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>aritherror</B>()</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on an arithmetic error such as add, or pow,
|
|
typically due to an invalid operand type
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="aritherror(java.lang.String)"><!-- --></A><H3>
|
|
aritherror</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>aritherror</B>(java.lang.String fun)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on an arithmetic error such as add, or pow,
|
|
typically due to an invalid operand type
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>fun</CODE> - String description of the function that was attempted
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compareerror(java.lang.String)"><!-- --></A><H3>
|
|
compareerror</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>compareerror</B>(java.lang.String rhs)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on a comparison error such as greater-than or less-than,
|
|
typically due to an invalid operand type
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - String description of what was on the right-hand-side of the comparison that resulted in the error.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="compareerror(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
compareerror</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>compareerror</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> based on a comparison error such as greater-than or less-than,
|
|
typically due to an invalid operand type
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - Right-hand-side of the comparison that resulted in the error.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - in all cases</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="get(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
get</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>get</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key)</PRE>
|
|
<DL>
|
|
<DD>Get a value in a table including metatag processing using <CODE>INDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to look up, must not be <CODE>NIL</CODE> or null
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> for that key, or <CODE>NIL</CODE> if not found and no metatag
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>INDEX</CODE> metatag,
|
|
or key is <CODE>NIL</CODE><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#get(int)"><CODE>get(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#get(java.lang.String)"><CODE>get(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#rawget(org.luaj.vm2.LuaValue)"><CODE>rawget(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="get(int)"><!-- --></A><H3>
|
|
get</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>get</B>(int key)</PRE>
|
|
<DL>
|
|
<DD>Get a value in a table including metatag processing using <CODE>INDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to look up
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> for that key, or <CODE>NIL</CODE> if not found
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>INDEX</CODE> metatag<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#get(org.luaj.vm2.LuaValue)"><CODE>get(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#rawget(int)"><CODE>rawget(int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="get(java.lang.String)"><!-- --></A><H3>
|
|
get</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>get</B>(java.lang.String key)</PRE>
|
|
<DL>
|
|
<DD>Get a value in a table including metatag processing using <CODE>INDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to look up, must not be null
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> for that key, or <CODE>NIL</CODE> if not found
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>INDEX</CODE> metatag<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#get(org.luaj.vm2.LuaValue)"><CODE>get(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#rawget(java.lang.String)"><CODE>rawget(String)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be <CODE>NIL</CODE> or null<DD><CODE>value</CODE> - the value to use, can be <CODE>NIL</CODE>, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or key is <CODE>NIL</CODE>,
|
|
or there is no <CODE>NEWINDEX</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(int, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(int key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use<DD><CODE>value</CODE> - the value to use, can be <CODE>NIL</CODE>, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>NEWINDEX</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(int, java.lang.String)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(int key,
|
|
java.lang.String value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use<DD><CODE>value</CODE> - the value to use, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>NEWINDEX</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(java.lang.String, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(java.lang.String key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be <CODE>NIL</CODE> or null<DD><CODE>value</CODE> - the value to use, can be <CODE>NIL</CODE>, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>NEWINDEX</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(java.lang.String, double)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(java.lang.String key,
|
|
double value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be null<DD><CODE>value</CODE> - the value to use
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>NEWINDEX</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(java.lang.String, int)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(java.lang.String key,
|
|
int value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be null<DD><CODE>value</CODE> - the value to use
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>NEWINDEX</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(java.lang.String key,
|
|
java.lang.String value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing using <CODE>NEWINDEX</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be null<DD><CODE>value</CODE> - the value to use, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table,
|
|
or there is no <CODE>NEWINDEX</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawget(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
rawget</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>rawget</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key)</PRE>
|
|
<DL>
|
|
<DD>Get a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to look up, must not be <CODE>NIL</CODE> or null
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> for that key, or <CODE>NIL</CODE> if not found
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table, or key is <CODE>NIL</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawget(int)"><!-- --></A><H3>
|
|
rawget</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>rawget</B>(int key)</PRE>
|
|
<DL>
|
|
<DD>Get a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to look up
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> for that key, or <CODE>NIL</CODE> if not found
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawget(java.lang.String)"><!-- --></A><H3>
|
|
rawget</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>rawget</B>(java.lang.String key)</PRE>
|
|
<DL>
|
|
<DD>Get a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to look up, must not be null
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> for that key, or <CODE>NIL</CODE> if not found
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawset(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
rawset</H3>
|
|
<PRE>
|
|
public void <B>rawset</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be <CODE>NIL</CODE> or null<DD><CODE>value</CODE> - the value to use, can be <CODE>NIL</CODE>, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table, or key is <CODE>NIL</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawset(int, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
rawset</H3>
|
|
<PRE>
|
|
public void <B>rawset</B>(int key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use<DD><CODE>value</CODE> - the value to use, can be <CODE>NIL</CODE>, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawset(int, java.lang.String)"><!-- --></A><H3>
|
|
rawset</H3>
|
|
<PRE>
|
|
public void <B>rawset</B>(int key,
|
|
java.lang.String value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use<DD><CODE>value</CODE> - the value to use, can be <CODE>NIL</CODE>, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawset(java.lang.String, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
rawset</H3>
|
|
<PRE>
|
|
public void <B>rawset</B>(java.lang.String key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be null<DD><CODE>value</CODE> - the value to use, can be <CODE>NIL</CODE>, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawset(java.lang.String, double)"><!-- --></A><H3>
|
|
rawset</H3>
|
|
<PRE>
|
|
public void <B>rawset</B>(java.lang.String key,
|
|
double value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be null<DD><CODE>value</CODE> - the value to use
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawset(java.lang.String, int)"><!-- --></A><H3>
|
|
rawset</H3>
|
|
<PRE>
|
|
public void <B>rawset</B>(java.lang.String key,
|
|
int value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be null<DD><CODE>value</CODE> - the value to use
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawset(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
rawset</H3>
|
|
<PRE>
|
|
public void <B>rawset</B>(java.lang.String key,
|
|
java.lang.String value)</PRE>
|
|
<DL>
|
|
<DD>Set a value in a table without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use, must not be null<DD><CODE>value</CODE> - the value to use, must not be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rawsetlist(int, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
rawsetlist</H3>
|
|
<PRE>
|
|
public void <B>rawsetlist</B>(int key0,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> values)</PRE>
|
|
<DL>
|
|
<DD>Set list values in a table without invoking metatag processing
|
|
<p>
|
|
Primarily used internally in response to a SETLIST bytecode.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>key0</CODE> - the first key to set in the table<DD><CODE>values</CODE> - the list of values to set
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a table.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="presize(int)"><!-- --></A><H3>
|
|
presize</H3>
|
|
<PRE>
|
|
public void <B>presize</B>(int i)</PRE>
|
|
<DL>
|
|
<DD>Preallocate the array part of a table to be a certain size,
|
|
<p>
|
|
Primarily used internally in response to a SETLIST bytecode.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the number of array slots to preallocate in the table.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a table.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="next(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
next</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>next</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> index)</PRE>
|
|
<DL>
|
|
<DD>Find the next key,value pair if <code>this</code> is a table,
|
|
return <CODE>NIL</CODE> if there are no more, or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not a table.
|
|
<p>
|
|
To iterate over all key-value pairs in a table you can use
|
|
<pre> <code>LuaValue k = LuaValue.NIL;
|
|
while ( true ) {
|
|
Varargs n = table.next(k);
|
|
if ( (k = n.arg1()).isnil() )
|
|
break;
|
|
LuaValue v = n.arg(2)
|
|
process( k, v )
|
|
}</code></pre>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A> value identifying a key to start from,
|
|
or <CODE>NIL</CODE> to start at the beginning
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing {key,value} for the next entry,
|
|
or <CODE>NIL</CODE> if there are no more.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table, or the supplied key is invalid.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>,
|
|
<CODE>#inext()</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(int)"><CODE>valueOf(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html#arg1()"><CODE>Varargs.arg1()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnil()"><CODE>isnil()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="inext(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
inext</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>inext</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> index)</PRE>
|
|
<DL>
|
|
<DD>Find the next integer-key,value pair if <code>this</code> is a table,
|
|
return <CODE>NIL</CODE> if there are no more, or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if not a table.
|
|
<p>
|
|
To iterate over integer keys in a table you can use
|
|
<pre> <code>LuaValue k = LuaValue.NIL;
|
|
while ( true ) {
|
|
Varargs n = table.inext(k);
|
|
if ( (k = n.arg1()).isnil() )
|
|
break;
|
|
LuaValue v = n.arg(2)
|
|
process( k, v )
|
|
}
|
|
</code> </pre>
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A> value identifying a key to start from,
|
|
or <CODE>NIL</CODE> to start at the beginning
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing <code>(key,value)</code> for the next entry,
|
|
or <CODE>NONE</CODE> if there are no more.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table, or the supplied key is invalid.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>,
|
|
<CODE>#next()</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#valueOf(int)"><CODE>valueOf(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html#arg1()"><CODE>Varargs.arg1()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#isnil()"><CODE>isnil()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="load(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
load</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>load</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> library)</PRE>
|
|
<DL>
|
|
<DD>Load a library instance by setting its environment to <code>this</code>
|
|
and calling it, which should iniitalize the library instance and
|
|
install itself into this instance.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>library</CODE> - The callable <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> to load into <code>this</code>
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the result of the initialization call.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="arg(int)"><!-- --></A><H3>
|
|
arg</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>arg</B>(int index)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)">Varargs</A></CODE></B></DD>
|
|
<DD>Get the n-th argument value (1-based).
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)">arg</A></CODE> in class <CODE><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the argument to get, 1 is the first argument
|
|
<DT><B>Returns:</B><DD>Value at position i, or LuaValue.NIL if there is none.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html#arg1()"><CODE>Varargs.arg1()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="narg()"><!-- --></A><H3>
|
|
narg</H3>
|
|
<PRE>
|
|
public int <B>narg</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../org/luaj/vm2/Varargs.html#narg()">Varargs</A></CODE></B></DD>
|
|
<DD>Get the number of arguments, or 0 if there are none.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/luaj/vm2/Varargs.html#narg()">narg</A></CODE> in class <CODE><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>number of arguments.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="arg1()"><!-- --></A><H3>
|
|
arg1</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>arg1</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../org/luaj/vm2/Varargs.html#arg1()">Varargs</A></CODE></B></DD>
|
|
<DD>Get the first argument in the list.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/luaj/vm2/Varargs.html#arg1()">arg1</A></CODE> in class <CODE><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>LuaValue which is first in the list, or LuaValue.NIL if there are no values.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getmetatable()"><!-- --></A><H3>
|
|
getmetatable</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>getmetatable</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the metatable for this <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>
|
|
<p>
|
|
For <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> and <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> instances,
|
|
the metatable returned is this instance metatable.
|
|
For all other types, the class metatable value will be returned.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>metatable, or null if it there is none<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaBoolean.html#s_metatable"><CODE>LuaBoolean.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaNumber.html#s_metatable"><CODE>LuaNumber.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaNil.html#s_metatable"><CODE>LuaNil.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaFunction.html#s_metatable"><CODE>LuaFunction.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaThread.html#s_metatable"><CODE>LuaThread.s_metatable</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setmetatable(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
setmetatable</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>setmetatable</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> metatable)</PRE>
|
|
<DL>
|
|
<DD>Set the metatable for this <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>
|
|
<p>
|
|
For <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> and <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> instances, the metatable is per instance.
|
|
For all other types, there is one metatable per type that can be set directly from java
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>metatable</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> instance to serve as the metatable, or null to reset it.
|
|
<DT><B>Returns:</B><DD><code>this</code> to allow chaining of Java function calls<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaBoolean.html#s_metatable"><CODE>LuaBoolean.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaNumber.html#s_metatable"><CODE>LuaNumber.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaNil.html#s_metatable"><CODE>LuaNil.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaFunction.html#s_metatable"><CODE>LuaFunction.s_metatable</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaThread.html#s_metatable"><CODE>LuaThread.s_metatable</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getfenv()"><!-- --></A><H3>
|
|
getfenv</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>getfenv</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the environemnt for an instance.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> currently set as the instances environent.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setfenv(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
setfenv</H3>
|
|
<PRE>
|
|
public void <B>setfenv</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> env)</PRE>
|
|
<DL>
|
|
<DD>Set the environment on an object.
|
|
<p>
|
|
Typically the environment is created once per application via a platform
|
|
helper method such as <A HREF="../../../org/luaj/vm2/lib/jse/JsePlatform.html#standardGlobals()"><CODE>JsePlatform.standardGlobals()</CODE></A>
|
|
However, any object can serve as an environment if it contains suitable metatag
|
|
values to implement <A HREF="../../../org/luaj/vm2/LuaValue.html#get(org.luaj.vm2.LuaValue)"><CODE>get(LuaValue)</CODE></A> to provide the environment values.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>env</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> (typically a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>) containing the environment.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/lib/jme/JmePlatform.html" title="class in org.luaj.vm2.lib.jme"><CODE>JmePlatform</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/lib/jse/JsePlatform.html" title="class in org.luaj.vm2.lib.jse"><CODE>JsePlatform</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="call()"><!-- --></A><H3>
|
|
call</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>call</B>()</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>First return value <code>(this())</code>, or <CODE>NIL</CODE> if there were none.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue, LuaValue, LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="call(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
call</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>call</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>arg</CODE> - First argument to supply to the called function
|
|
<DT><B>Returns:</B><DD>First return value <code>(this(arg))</code>, or <CODE>NIL</CODE> if there were none.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue, LuaValue, LuaValue)</CODE></A>,
|
|
<CODE>#invoke(LuaValue)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
call</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>call</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with 2 arguments, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>arg1</CODE> - First argument to supply to the called function<DD><CODE>arg2</CODE> - Second argument to supply to the called function
|
|
<DT><B>Returns:</B><DD>First return value <code>(this(arg1,arg2))</code>, or <CODE>NIL</CODE> if there were none.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue, LuaValue, LuaValue)</CODE></A>,
|
|
<CODE>#invoke(LuaValue,LuaValue)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
call</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>call</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg3)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with 3 arguments, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>arg1</CODE> - First argument to supply to the called function<DD><CODE>arg2</CODE> - Second argument to supply to the called function<DD><CODE>arg3</CODE> - Second argument to supply to the called function
|
|
<DT><B>Returns:</B><DD>First return value <code>(this(arg1,arg2,arg3))</code>, or <CODE>NIL</CODE> if there were none.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue, LuaValue)</CODE></A>,
|
|
<CODE>#invoke(LuaValue,LuaValue, LuaValue)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><CODE>invokemethod(String,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="method(java.lang.String)"><!-- --></A><H3>
|
|
method</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>method</B>(java.lang.String name)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument.
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name()</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="method(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
method</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>method</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name()</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="method(java.lang.String, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
method</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>method</B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>arg</CODE> - Argument to supply to the method
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(arg)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A>,
|
|
<CODE>#invoke(LuaValue)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
method</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>method</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>arg</CODE> - Argument to supply to the method
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(arg)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A>,
|
|
<CODE>#invoke(LuaValue)</CODE>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="method(java.lang.String, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
method</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>method</B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 2 arguments, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>arg1</CODE> - First argument to supply to the method<DD><CODE>arg2</CODE> - Second argument to supply to the method
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(arg1,arg2)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invoke(LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
method</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>method</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 2 arguments, including metatag processing,
|
|
and return only the first return value.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return only its first return value, dropping any others.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
If the return value is a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>, only the 1st value will be returned.
|
|
To get multiple values, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>arg1</CODE> - First argument to supply to the method<DD><CODE>arg2</CODE> - Second argument to supply to the method
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(arg1,arg2)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invoke(LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>method(String,LuaValue,LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invoke()"><!-- --></A><H3>
|
|
invoke</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invoke</B>()</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it, and return all values.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue)"><CODE>invokemethod(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>All return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String)"><CODE>invokemethod(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue)"><CODE>invokemethod(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invoke(org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
invoke</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invoke</B>(<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it, and return all values.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue)"><CODE>invokemethod(LuaValue)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>args</CODE> - Varargs containing the arguments to supply to the called function
|
|
<DT><B>Returns:</B><DD>All return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue)"><CODE>call(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invoke(LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><CODE>invokemethod(String,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
invoke</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invoke</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it, and return all values.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>arg</CODE> - The first argument to supply to the called function<DD><CODE>varargs</CODE> - Varargs containing the remaining arguments to supply to the called function
|
|
<DT><B>Returns:</B><DD>All return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invoke(LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><CODE>invokemethod(String,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
invoke</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invoke</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> arg2,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it, and return all values.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>arg1</CODE> - The first argument to supply to the called function<DD><CODE>arg2</CODE> - The second argument to supply to the called function<DD><CODE>varargs</CODE> - Varargs containing the remaining arguments to supply to the called function
|
|
<DT><B>Returns:</B><DD>All return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invoke(LuaValue,LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><CODE>invokemethod(String,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invoke(org.luaj.vm2.LuaValue[])"><!-- --></A><H3>
|
|
invoke</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invoke</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it, and return all values.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>args</CODE> - Array of arguments to supply to the called function
|
|
<DT><B>Returns:</B><DD>All return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invoke(LuaValue,LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(String,LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(LuaValue,LuaValue[])</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invoke(org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
invoke</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invoke</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs)</PRE>
|
|
<DL>
|
|
<DD>Call <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
If <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>, call it, and return all values.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a method call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>args</CODE> - Array of arguments to supply to the called function<DD><CODE>varargs</CODE> - Varargs containing additional arguments to supply to the called function
|
|
<DT><B>Returns:</B><DD>All return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#call(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>call(LuaValue,LuaValue,LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invoke(LuaValue,LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(String,LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(LuaValue,LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><CODE>invokemethod(String,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invokemethod(java.lang.String)"><!-- --></A><H3>
|
|
invokemethod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invokemethod</B>(java.lang.String name)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return all return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name()</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue)"><CODE>invokemethod(LuaValue)</CODE></A>,
|
|
<CODE>#invokemethod(String,LuaValue)</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invokemethod(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
invokemethod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invokemethod</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 0 arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return all return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name()</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String)"><CODE>invokemethod(String)</CODE></A>,
|
|
<CODE>#invokemethod(LuaValue,LuaValue)</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
invokemethod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invokemethod</B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return all return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>args</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing arguments to supply to the called function after <code>this</code>
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(args)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(String,LuaValue[])</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
invokemethod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invokemethod</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return all return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>args</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing arguments to supply to the called function after <code>this</code>
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(args)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><CODE>invokemethod(String,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(LuaValue,LuaValue[])</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invokemethod(java.lang.String, org.luaj.vm2.LuaValue[])"><!-- --></A><H3>
|
|
invokemethod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invokemethod</B>(java.lang.String name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with 1 argument, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return all return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>args</CODE> - Array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing arguments to supply to the called function after <code>this</code>
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(args)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(LuaValue,LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.Varargs)"><CODE>invokemethod(String,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue[])"><!-- --></A><H3>
|
|
invokemethod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>invokemethod</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> name,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] args)</PRE>
|
|
<DL>
|
|
<DD>Call named method on <CODE>this</CODE> with variable arguments, including metatag processing,
|
|
and retain all return values in a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>.
|
|
<p>
|
|
Look up <code>this[name]</code> and if it is a <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
|
call it inserting <CODE>this</CODE> as an additional first argument,
|
|
and return all return values as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance.
|
|
Otherwise, look for the <CODE>CALL</CODE> metatag and call that.
|
|
<p>
|
|
To get a particular return value, us <A HREF="../../../org/luaj/vm2/Varargs.html#arg(int)"><CODE>Varargs.arg(int)</CODE></A>
|
|
<p>
|
|
To call <CODE>this</CODE> as a plain call, use <A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A> instead.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to look up for invocation<DD><CODE>args</CODE> - Array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing arguments to supply to the called function after <code>this</code>
|
|
<DT><B>Returns:</B><DD>All values returned from <code>this:name(args)</code> as a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> instance
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a function and <CODE>CALL</CODE> is not defined,
|
|
or the invoked function throws a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A>
|
|
or the invoked closure throw a lua <code>error</code><DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke(org.luaj.vm2.Varargs)"><CODE>invoke(Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(java.lang.String)"><CODE>method(String)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(java.lang.String, org.luaj.vm2.LuaValue[])"><CODE>invokemethod(String,LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>invokemethod(LuaValue,Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="callmt()"><!-- --></A><H3>
|
|
callmt</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>callmt</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the metatag value for the <CODE>CALL</CODE> metatag, if it exists.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> value if metatag is defined
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <CODE>CALL</CODE> metatag is not defined.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="not()"><!-- --></A><H3>
|
|
not</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>not</B>()</PRE>
|
|
<DL>
|
|
<DD>Unary not: return inverse boolean value <code>(~this)</code> as defined by lua not operator
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <CODE>NIL</CODE> or <CODE>FALSE</CODE>, otherwise <CODE>FALSE</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="neg()"><!-- --></A><H3>
|
|
neg</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>neg</B>()</PRE>
|
|
<DL>
|
|
<DD>Unary minus: return negative value <code>(-this)</code> as defined by lua unary minus operator
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>boolean inverse as <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2"><CODE>LuaBoolean</CODE></A> if boolean or nil,
|
|
numeric inverse as if numeric,
|
|
or metatag processing result if <CODE>UNM</CODE> metatag is defined
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table or string, and has no <CODE>UNM</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="len()"><!-- --></A><H3>
|
|
len</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>len</B>()</PRE>
|
|
<DL>
|
|
<DD>Length operator: return lua length of object <code>(#this)</code> including metatag processing as java int
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>length as defined by the lua # operator
|
|
or metatag processing result
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table or string, and has no <CODE>LEN</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="length()"><!-- --></A><H3>
|
|
length</H3>
|
|
<PRE>
|
|
public int <B>length</B>()</PRE>
|
|
<DL>
|
|
<DD>Length operator: return lua length of object <code>(#this)</code> including metatag processing as java int
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>length as defined by the lua # operator
|
|
or metatag processing result converted to java int using <A HREF="../../../org/luaj/vm2/LuaValue.html#toint()"><CODE>toint()</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a table or string, and has no <CODE>LEN</CODE> metatag</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getn()"><!-- --></A><H3>
|
|
getn</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>getn</B>()</PRE>
|
|
<DL>
|
|
<DD>Implementation of lua 5.0 getn() function.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>value of getn() as defined in lua 5.0 spec if <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
|
|
equals</H3>
|
|
<PRE>
|
|
public boolean <B>equals</B>(java.lang.Object obj)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="eq(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
eq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>eq</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</PRE>
|
|
<DL>
|
|
<DD>Equals: Perform equality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The value to compare with.
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if values are comparable and <code>(this == rhs)</code>,
|
|
<CODE>FALSE</CODE> if comparable but not equal,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#eq_b(org.luaj.vm2.LuaValue)"><CODE>eq_b(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaValue)"><CODE>raweq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#neq(org.luaj.vm2.LuaValue)"><CODE>neq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#eqmtcall(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>eqmtcall(LuaValue, LuaValue, LuaValue, LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#EQ"><CODE>EQ</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="eq_b(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
eq_b</H3>
|
|
<PRE>
|
|
public boolean <B>eq_b</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</PRE>
|
|
<DL>
|
|
<DD>Equals: Perform equality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>,
|
|
and return java boolean
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The value to compare with.
|
|
<DT><B>Returns:</B><DD>true if values are comparable and <code>(this == rhs)</code>,
|
|
false if comparable but not equal,
|
|
result converted to java boolean if metatag processing occurs.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#eq(org.luaj.vm2.LuaValue)"><CODE>eq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaValue)"><CODE>raweq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#neq_b(org.luaj.vm2.LuaValue)"><CODE>neq_b(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#eqmtcall(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>eqmtcall(LuaValue, LuaValue, LuaValue, LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#EQ"><CODE>EQ</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="neq(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
neq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>neq</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</PRE>
|
|
<DL>
|
|
<DD>Notquals: Perform inequality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The value to compare with.
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if values are comparable and <code>(this != rhs)</code>,
|
|
<CODE>FALSE</CODE> if comparable but equal,
|
|
inverse of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> converted to <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2"><CODE>LuaBoolean</CODE></A> if metatag processing occurs.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#eq(org.luaj.vm2.LuaValue)"><CODE>eq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaValue)"><CODE>raweq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#eqmtcall(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>eqmtcall(LuaValue, LuaValue, LuaValue, LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#EQ"><CODE>EQ</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="neq_b(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
neq_b</H3>
|
|
<PRE>
|
|
public boolean <B>neq_b</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</PRE>
|
|
<DL>
|
|
<DD>Notquals: Perform inequality comparison with another value
|
|
including metatag processing using <CODE>EQ</CODE>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The value to compare with.
|
|
<DT><B>Returns:</B><DD>true if values are comparable and <code>(this != rhs)</code>,
|
|
false if comparable but equal,
|
|
inverse of result converted to boolean if metatag processing occurs.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#eq_b(org.luaj.vm2.LuaValue)"><CODE>eq_b(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaValue)"><CODE>raweq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#eqmtcall(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>eqmtcall(LuaValue, LuaValue, LuaValue, LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#EQ"><CODE>EQ</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="raweq(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
raweq</H3>
|
|
<PRE>
|
|
public boolean <B>raweq</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> val)</PRE>
|
|
<DL>
|
|
<DD>Equals: Perform direct equality comparison with another value
|
|
without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The value to compare with.
|
|
<DT><B>Returns:</B><DD>true if <code>(this == rhs)</code>, false otherwise<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#eq(org.luaj.vm2.LuaValue)"><CODE>eq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaUserdata)"><CODE>raweq(LuaUserdata)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaString)"><CODE>raweq(LuaString)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(double)"><CODE>raweq(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(int)"><CODE>raweq(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#EQ"><CODE>EQ</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="raweq(org.luaj.vm2.LuaUserdata)"><!-- --></A><H3>
|
|
raweq</H3>
|
|
<PRE>
|
|
public boolean <B>raweq</B>(<A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2">LuaUserdata</A> val)</PRE>
|
|
<DL>
|
|
<DD>Equals: Perform direct equality comparison with a <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> value
|
|
without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> to compare with.
|
|
<DT><B>Returns:</B><DD>true if <code>this</code> is userdata
|
|
and their metatables are the same using ==
|
|
and their instances are equal using <A HREF="../../../org/luaj/vm2/LuaValue.html#equals(java.lang.Object)"><CODE>equals(Object)</CODE></A>,
|
|
otherwise false<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#eq(org.luaj.vm2.LuaValue)"><CODE>eq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaValue)"><CODE>raweq(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="raweq(org.luaj.vm2.LuaString)"><!-- --></A><H3>
|
|
raweq</H3>
|
|
<PRE>
|
|
public boolean <B>raweq</B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> val)</PRE>
|
|
<DL>
|
|
<DD>Equals: Perform direct equality comparison with a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> value
|
|
without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> to compare with.
|
|
<DT><B>Returns:</B><DD>true if <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
and their byte sequences match,
|
|
otherwise false</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="raweq(double)"><!-- --></A><H3>
|
|
raweq</H3>
|
|
<PRE>
|
|
public boolean <B>raweq</B>(double val)</PRE>
|
|
<DL>
|
|
<DD>Equals: Perform direct equality comparison with a double value
|
|
without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The double value to compare with.
|
|
<DT><B>Returns:</B><DD>true if <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
whose value equals val,
|
|
otherwise false</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="raweq(int)"><!-- --></A><H3>
|
|
raweq</H3>
|
|
<PRE>
|
|
public boolean <B>raweq</B>(int val)</PRE>
|
|
<DL>
|
|
<DD>Equals: Perform direct equality comparison with a int value
|
|
without metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>val</CODE> - The double value to compare with.
|
|
<DT><B>Returns:</B><DD>true if <code>this</code> is a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
whose value equals val,
|
|
otherwise false</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="eqmtcall(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
eqmtcall</H3>
|
|
<PRE>
|
|
public static final boolean <B>eqmtcall</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> lhs,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> lhsmt,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhsmt)</PRE>
|
|
<DL>
|
|
<DD>Perform equality testing metatag processing
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - left-hand-side of equality expression<DD><CODE>lhsmt</CODE> - metatag value for left-hand-side<DD><CODE>rhs</CODE> - right-hand-side of equality expression<DD><CODE>rhsmt</CODE> - metatag value for right-hand-side
|
|
<DT><B>Returns:</B><DD>true if metatag processing result is not <CODE>NIL</CODE> or <CODE>FALSE</CODE>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if metatag was not defined for either operand<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#equals(java.lang.Object)"><CODE>equals(Object)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#eq(org.luaj.vm2.LuaValue)"><CODE>eq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#raweq(org.luaj.vm2.LuaValue)"><CODE>raweq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#EQ"><CODE>EQ</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="add(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
add</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>add</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Add: Perform numeric add operation with another value
|
|
including metatag processing.
|
|
<p>
|
|
Each operand must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the add with
|
|
<DT><B>Returns:</B><DD>value of <code>(this + rhs)</code> if both are numeric,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not a number or string convertible to number,
|
|
and neither has the <CODE>ADD</CODE> metatag defined<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>arithmt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="add(double)"><!-- --></A><H3>
|
|
add</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>add</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Add: Perform numeric add operation with another value
|
|
of double type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the add with
|
|
<DT><B>Returns:</B><DD>value of <code>(this + rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#add(org.luaj.vm2.LuaValue)"><CODE>add(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="add(int)"><!-- --></A><H3>
|
|
add</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>add</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Add: Perform numeric add operation with another value
|
|
of int type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the add with
|
|
<DT><B>Returns:</B><DD>value of <code>(this + rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#add(org.luaj.vm2.LuaValue)"><CODE>add(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="sub(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
sub</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>sub</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Subtract: Perform numeric subtract operation with another value
|
|
of unknown type,
|
|
including metatag processing.
|
|
<p>
|
|
Each operand must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the subtract with
|
|
<DT><B>Returns:</B><DD>value of <code>(this - rhs)</code> if both are numeric,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not a number or string convertible to number,
|
|
and neither has the <CODE>SUB</CODE> metatag defined<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>arithmt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="sub(double)"><!-- --></A><H3>
|
|
sub</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>sub</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Subtract: Perform numeric subtract operation with another value
|
|
of double type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the subtract with
|
|
<DT><B>Returns:</B><DD>value of <code>(this - rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)"><CODE>sub(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="sub(int)"><!-- --></A><H3>
|
|
sub</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>sub</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Subtract: Perform numeric subtract operation with another value
|
|
of int type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the subtract with
|
|
<DT><B>Returns:</B><DD>value of <code>(this - rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)"><CODE>sub(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="subFrom(double)"><!-- --></A><H3>
|
|
subFrom</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>subFrom</B>(double lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-subtract: Perform numeric subtract operation from an int value
|
|
with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value from which to perform the subtraction
|
|
<DT><B>Returns:</B><DD>value of <code>(lhs - this)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)"><CODE>sub(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#sub(double)"><CODE>sub(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#sub(int)"><CODE>sub(int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="subFrom(int)"><!-- --></A><H3>
|
|
subFrom</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>subFrom</B>(int lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-subtract: Perform numeric subtract operation from a double value
|
|
without metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<p>
|
|
For metatag processing <A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)"><CODE>sub(LuaValue)</CODE></A> must be used
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value from which to perform the subtraction
|
|
<DT><B>Returns:</B><DD>value of <code>(lhs - this)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)"><CODE>sub(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#sub(double)"><CODE>sub(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#sub(int)"><CODE>sub(int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="mul(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
mul</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>mul</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Multiply: Perform numeric multiply operation with another value
|
|
of unknown type,
|
|
including metatag processing.
|
|
<p>
|
|
Each operand must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the multiply with
|
|
<DT><B>Returns:</B><DD>value of <code>(this * rhs)</code> if both are numeric,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not a number or string convertible to number,
|
|
and neither has the <CODE>MUL</CODE> metatag defined<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>arithmt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="mul(double)"><!-- --></A><H3>
|
|
mul</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>mul</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Multiply: Perform numeric multiply operation with another value
|
|
of double type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the multiply with
|
|
<DT><B>Returns:</B><DD>value of <code>(this * rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#mul(org.luaj.vm2.LuaValue)"><CODE>mul(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="mul(int)"><!-- --></A><H3>
|
|
mul</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>mul</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Multiply: Perform numeric multiply operation with another value
|
|
of int type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the multiply with
|
|
<DT><B>Returns:</B><DD>value of <code>(this * rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#mul(org.luaj.vm2.LuaValue)"><CODE>mul(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="pow(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
pow</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>pow</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Raise to power: Raise this value to a power
|
|
including metatag processing.
|
|
<p>
|
|
Each operand must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The power to raise this value to
|
|
<DT><B>Returns:</B><DD>value of <code>(this ^ rhs)</code> if both are numeric,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not a number or string convertible to number,
|
|
and neither has the <CODE>POW</CODE> metatag defined<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>arithmt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="pow(double)"><!-- --></A><H3>
|
|
pow</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>pow</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Raise to power: Raise this value to a power
|
|
of double type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The power to raise this value to
|
|
<DT><B>Returns:</B><DD>value of <code>(this ^ rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#pow(org.luaj.vm2.LuaValue)"><CODE>pow(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="pow(int)"><!-- --></A><H3>
|
|
pow</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>pow</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Raise to power: Raise this value to a power
|
|
of int type with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The power to raise this value to
|
|
<DT><B>Returns:</B><DD>value of <code>(this ^ rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#pow(org.luaj.vm2.LuaValue)"><CODE>pow(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="powWith(double)"><!-- --></A><H3>
|
|
powWith</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>powWith</B>(double lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-raise to power: Raise another value of double type to this power
|
|
with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value which will be raised to this power
|
|
<DT><B>Returns:</B><DD>value of <code>(lhs ^ this)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#pow(org.luaj.vm2.LuaValue)"><CODE>pow(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#pow(double)"><CODE>pow(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#pow(int)"><CODE>pow(int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="powWith(int)"><!-- --></A><H3>
|
|
powWith</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>powWith</B>(int lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-raise to power: Raise another value of double type to this power
|
|
with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value which will be raised to this power
|
|
<DT><B>Returns:</B><DD>value of <code>(lhs ^ this)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#pow(org.luaj.vm2.LuaValue)"><CODE>pow(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#pow(double)"><CODE>pow(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#pow(int)"><CODE>pow(int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="div(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
div</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>div</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Divide: Perform numeric divide operation by another value
|
|
of unknown type,
|
|
including metatag processing.
|
|
<p>
|
|
Each operand must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the divulo with
|
|
<DT><B>Returns:</B><DD>value of <code>(this / rhs)</code> if both are numeric,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not a number or string convertible to number,
|
|
and neither has the <CODE>DIV</CODE> metatag defined<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>arithmt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="div(double)"><!-- --></A><H3>
|
|
div</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>div</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Divide: Perform numeric divide operation by another value
|
|
of double type without metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<p>
|
|
For metatag processing <A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)"><CODE>div(LuaValue)</CODE></A> must be used
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the divulo with
|
|
<DT><B>Returns:</B><DD>value of <code>(this / rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)"><CODE>div(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="div(int)"><!-- --></A><H3>
|
|
div</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>div</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Divide: Perform numeric divide operation by another value
|
|
of int type without metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<p>
|
|
For metatag processing <A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)"><CODE>div(LuaValue)</CODE></A> must be used
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the divulo with
|
|
<DT><B>Returns:</B><DD>value of <code>(this / rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)"><CODE>div(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="divInto(double)"><!-- --></A><H3>
|
|
divInto</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>divInto</B>(double lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-divide: Perform numeric divide operation into another value
|
|
with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value which will be divided by this
|
|
<DT><B>Returns:</B><DD>value of <code>(lhs / this)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)"><CODE>div(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#div(double)"><CODE>div(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#div(int)"><CODE>div(int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="mod(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
mod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>mod</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Modulo: Perform numeric modulo operation with another value
|
|
of unknown type,
|
|
including metatag processing.
|
|
<p>
|
|
Each operand must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the modulo with
|
|
<DT><B>Returns:</B><DD>value of <code>(this % rhs)</code> if both are numeric,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not a number or string convertible to number,
|
|
and neither has the <CODE>MOD</CODE> metatag defined<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>arithmt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="mod(double)"><!-- --></A><H3>
|
|
mod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>mod</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Modulo: Perform numeric modulo operation with another value
|
|
of double type without metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<p>
|
|
For metatag processing <A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)"><CODE>mod(LuaValue)</CODE></A> must be used
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the modulo with
|
|
<DT><B>Returns:</B><DD>value of <code>(this % rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)"><CODE>mod(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="mod(int)"><!-- --></A><H3>
|
|
mod</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>mod</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Modulo: Perform numeric modulo operation with another value
|
|
of int type without metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<p>
|
|
For metatag processing <A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)"><CODE>mod(LuaValue)</CODE></A> must be used
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the modulo with
|
|
<DT><B>Returns:</B><DD>value of <code>(this % rhs)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)"><CODE>mod(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="modFrom(double)"><!-- --></A><H3>
|
|
modFrom</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>modFrom</B>(double lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-modulo: Perform numeric modulo operation from another value
|
|
with metatag processing
|
|
<p>
|
|
<code>this</code> must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
or derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> and be convertible to a number
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value which will be modulo'ed by this
|
|
<DT><B>Returns:</B><DD>value of <code>(lhs % this)</code> if this is numeric
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if <code>this</code> is not a number or string convertible to number<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)"><CODE>mod(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#mod(double)"><CODE>mod(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#mod(int)"><CODE>mod(int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="arithmt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
arithmt</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>arithmt</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> op2)</PRE>
|
|
<DL>
|
|
<DD>Perform metatag processing for arithmetic operations.
|
|
<p>
|
|
Finds the supplied metatag value for <code>this</code> or <code>op2</code> and invokes it,
|
|
or throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if neither is defined.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - The metatag to look up<DD><CODE>op2</CODE> - The other operand value to perform the operation with
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> resulting from metatag processing
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if metatag was not defined for either operand<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#add(org.luaj.vm2.LuaValue)"><CODE>add(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)"><CODE>sub(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#mul(org.luaj.vm2.LuaValue)"><CODE>mul(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#pow(org.luaj.vm2.LuaValue)"><CODE>pow(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)"><CODE>div(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)"><CODE>mod(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#ADD"><CODE>ADD</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#SUB"><CODE>SUB</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#MUL"><CODE>MUL</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#POW"><CODE>POW</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#DIV"><CODE>DIV</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#MOD"><CODE>MOD</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="arithmtwith(org.luaj.vm2.LuaValue, double)"><!-- --></A><H3>
|
|
arithmtwith</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>arithmtwith</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
double op1)</PRE>
|
|
<DL>
|
|
<DD>Perform metatag processing for arithmetic operations when the left-hand-side is a number.
|
|
<p>
|
|
Finds the supplied metatag value for <code>this</code> and invokes it,
|
|
or throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if neither is defined.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - The metatag to look up<DD><CODE>op1</CODE> - The value of the left-hand-side to perform the operation with
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> resulting from metatag processing
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if metatag was not defined for either operand<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#add(org.luaj.vm2.LuaValue)"><CODE>add(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#sub(org.luaj.vm2.LuaValue)"><CODE>sub(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#mul(org.luaj.vm2.LuaValue)"><CODE>mul(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#pow(org.luaj.vm2.LuaValue)"><CODE>pow(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#div(org.luaj.vm2.LuaValue)"><CODE>div(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#mod(org.luaj.vm2.LuaValue)"><CODE>mod(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#ADD"><CODE>ADD</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#SUB"><CODE>SUB</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#MUL"><CODE>MUL</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#POW"><CODE>POW</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#DIV"><CODE>DIV</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#MOD"><CODE>MOD</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lt(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
lt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>lt</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this < rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(org.luaj.vm2.LuaValue)"><CODE>gteq_b(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lt(double)"><!-- --></A><H3>
|
|
lt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>lt</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this < rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(double)"><CODE>gteq_b(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lt(int)"><!-- --></A><H3>
|
|
lt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>lt</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this < rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(int)"><CODE>gteq_b(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lt_b(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
lt_b</H3>
|
|
<PRE>
|
|
public boolean <B>lt_b</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this < rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)"><CODE>gteq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lt_b(int)"><!-- --></A><H3>
|
|
lt_b</H3>
|
|
<PRE>
|
|
public boolean <B>lt_b</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this < rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(int)"><CODE>gteq(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lt_b(double)"><!-- --></A><H3>
|
|
lt_b</H3>
|
|
<PRE>
|
|
public boolean <B>lt_b</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this < rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)"><CODE>gteq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lteq(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
lteq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>lteq</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than or equals: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this <= rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(org.luaj.vm2.LuaValue)"><CODE>gteq_b(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lteq(double)"><!-- --></A><H3>
|
|
lteq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>lteq</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this <= rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(double)"><CODE>gteq_b(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lteq(int)"><!-- --></A><H3>
|
|
lteq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>lteq</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this <= rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(int)"><CODE>gteq_b(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lteq_b(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
lteq_b</H3>
|
|
<PRE>
|
|
public boolean <B>lteq_b</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than or equals: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this <= rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)"><CODE>gteq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lteq_b(int)"><!-- --></A><H3>
|
|
lteq_b</H3>
|
|
<PRE>
|
|
public boolean <B>lteq_b</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this <= rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(int)"><CODE>gteq(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lteq_b(double)"><!-- --></A><H3>
|
|
lteq_b</H3>
|
|
<PRE>
|
|
public boolean <B>lteq_b</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Less than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this <= rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(double)"><CODE>gteq(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gt(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
gt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>gt</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this > rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(org.luaj.vm2.LuaValue)"><CODE>gteq_b(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gt(double)"><!-- --></A><H3>
|
|
gt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>gt</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this > rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(double)"><CODE>gteq_b(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gt(int)"><!-- --></A><H3>
|
|
gt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>gt</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this > rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(int)"><CODE>gteq_b(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gt_b(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
gt_b</H3>
|
|
<PRE>
|
|
public boolean <B>gt_b</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this > rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)"><CODE>gteq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gt_b(int)"><!-- --></A><H3>
|
|
gt_b</H3>
|
|
<PRE>
|
|
public boolean <B>gt_b</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this > rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(int)"><CODE>gteq(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gt_b(double)"><!-- --></A><H3>
|
|
gt_b</H3>
|
|
<PRE>
|
|
public boolean <B>gt_b</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this > rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LE</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)"><CODE>gteq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gteq(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
gteq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>gteq</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than or equals: Perform numeric or string comparison with another value
|
|
of unknown type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this >= rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(org.luaj.vm2.LuaValue)"><CODE>gteq_b(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gteq(double)"><!-- --></A><H3>
|
|
gteq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>gteq</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this >= rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(double)"><CODE>gteq_b(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gteq(int)"><!-- --></A><H3>
|
|
gteq</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>gteq</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing, and returning <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if <code>(this >= rhs)</code>, <CODE>FALSE</CODE> if not,
|
|
or <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> if metatag processing occurs
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq_b(int)"><CODE>gteq_b(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gteq_b(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
gteq_b</H3>
|
|
<PRE>
|
|
public boolean <B>gteq_b</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than or equals: Perform numeric or string comparison with another value
|
|
of unknown type, including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, both operands must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
or both must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this >= rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either both operands are not a strings or both are not numbers
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)"><CODE>gteq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gteq_b(int)"><!-- --></A><H3>
|
|
gteq_b</H3>
|
|
<PRE>
|
|
public boolean <B>gteq_b</B>(int rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than or equals: Perform numeric comparison with another value
|
|
of int type,
|
|
including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this >= rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(int)"><CODE>gteq(int)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gteq_b(double)"><!-- --></A><H3>
|
|
gteq_b</H3>
|
|
<PRE>
|
|
public boolean <B>gteq_b</B>(double rhs)</PRE>
|
|
<DL>
|
|
<DD>Greater than or equals: Perform numeric comparison with another value
|
|
of double type,
|
|
including metatag processing,
|
|
and returning java boolean.
|
|
<p>
|
|
To be comparable, this must derive from <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Returns:</B><DD>true if <code>(this >= rhs)</code>, false if not,
|
|
and boolean interpreation of result if metatag processing occurs.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a number
|
|
and no <CODE>LT</CODE> metatag is defined.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(double)"><CODE>gteq(double)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><CODE>comparemt(LuaValue, LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="comparemt(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
comparemt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>comparemt</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> op1)</PRE>
|
|
<DL>
|
|
<DD>Perform metatag processing for comparison operations.
|
|
<p>
|
|
Finds the supplied metatag value and invokes it,
|
|
or throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if none applies.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - The metatag to look up<DD><CODE>rhs</CODE> - The right-hand-side value to perform the operation with
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> resulting from metatag processing
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if metatag was not defined for either operand,
|
|
or if the operands are not the same type,
|
|
or the metatag values for the two operands are different.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#gt(org.luaj.vm2.LuaValue)"><CODE>gt(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#gteq(org.luaj.vm2.LuaValue)"><CODE>gteq(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#lt(org.luaj.vm2.LuaValue)"><CODE>lt(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#lteq(org.luaj.vm2.LuaValue)"><CODE>lteq(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="strcmp(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
strcmp</H3>
|
|
<PRE>
|
|
public int <B>strcmp</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Perform string comparison with another value
|
|
of any type
|
|
using string comparison based on byte values.
|
|
<p>
|
|
Only strings can be compared, meaning
|
|
each operand must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not a string</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="strcmp(org.luaj.vm2.LuaString)"><!-- --></A><H3>
|
|
strcmp</H3>
|
|
<PRE>
|
|
public int <B>strcmp</B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Perform string comparison with another value
|
|
known to be a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
using string comparison based on byte values.
|
|
<p>
|
|
Only strings can be compared, meaning
|
|
each operand must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the comparison with
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if this is not a string</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="concat(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
concat</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>concat</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Concatenate another value onto this value and return the result
|
|
using rules of lua string concatenation including metatag processing.
|
|
<p>
|
|
Only strings and numbers as represented can be concatenated, meaning
|
|
each operand must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the operation with
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not of an appropriate type,
|
|
such as nil or a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="concatTo(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
concatTo</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>concatTo</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-concatenation: concatenate this value onto another value
|
|
whose type is unknwon
|
|
and return the result using rules of lua string concatenation including
|
|
metatag processing.
|
|
<p>
|
|
Only strings and numbers as represented can be concatenated, meaning
|
|
each operand must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value onto which this will be concatenated
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not of an appropriate type,
|
|
such as nil or a table<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#concat(org.luaj.vm2.LuaValue)"><CODE>concat(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="concatTo(org.luaj.vm2.LuaNumber)"><!-- --></A><H3>
|
|
concatTo</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>concatTo</B>(<A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-concatenation: concatenate this value onto another value
|
|
known to be a <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>
|
|
and return the result using rules of lua string concatenation including
|
|
metatag processing.
|
|
<p>
|
|
Only strings and numbers as represented can be concatenated, meaning
|
|
each operand must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value onto which this will be concatenated
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not of an appropriate type,
|
|
such as nil or a table<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#concat(org.luaj.vm2.LuaValue)"><CODE>concat(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="concatTo(org.luaj.vm2.LuaString)"><!-- --></A><H3>
|
|
concatTo</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>concatTo</B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> lhs)</PRE>
|
|
<DL>
|
|
<DD>Reverse-concatenation: concatenate this value onto another value
|
|
known to be a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
and return the result using rules of lua string concatenation including
|
|
metatag processing.
|
|
<p>
|
|
Only strings and numbers as represented can be concatenated, meaning
|
|
each operand must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>lhs</CODE> - The left-hand-side value onto which this will be concatenated
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not of an appropriate type,
|
|
such as nil or a table<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#concat(org.luaj.vm2.LuaValue)"><CODE>concat(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="buffer()"><!-- --></A><H3>
|
|
buffer</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2">Buffer</A> <B>buffer</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert the value to a <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2"><CODE>Buffer</CODE></A> for more efficient concatenation of
|
|
multiple strings.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Buffer instance containing the string or number</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="concat(org.luaj.vm2.Buffer)"><!-- --></A><H3>
|
|
concat</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2">Buffer</A> <B>concat</B>(<A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2">Buffer</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Concatenate a <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2"><CODE>Buffer</CODE></A> onto this value and return the result
|
|
using rules of lua string concatenation including metatag processing.
|
|
<p>
|
|
Only strings and numbers as represented can be concatenated, meaning
|
|
each operand must derive from <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side <A HREF="../../../org/luaj/vm2/Buffer.html" title="class in org.luaj.vm2"><CODE>Buffer</CODE></A> to perform the operation with
|
|
<DT><B>Returns:</B><DD>LuaString resulting from concatenation of <code>(this .. rhs)</code>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if either operand is not of an appropriate type,
|
|
such as nil or a table</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="concatmt(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
concatmt</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>concatmt</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Perform metatag processing for concatenation operations.
|
|
<p>
|
|
Finds the <CODE>CONCAT</CODE> metatag value and invokes it,
|
|
or throws <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it doesn't exist.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the operation with
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> resulting from metatag processing for <CODE>CONCAT</CODE> metatag.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if metatag was not defined for either operand</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="and(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
and</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>and</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Perform boolean <code>and</code> with another operand, based on lua rules for boolean evaluation.
|
|
This returns either <code>this</code> or <code>rhs</code> depending on the boolean value for <code>this</code>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the operation with
|
|
<DT><B>Returns:</B><DD><code>this</code> if <code>this.toboolean()</code> is false, <code>rhs</code> otherwise.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="or(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
or</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>or</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> rhs)</PRE>
|
|
<DL>
|
|
<DD>Perform boolean <code>or</code> with another operand, based on lua rules for boolean evaluation.
|
|
This returns either <code>this</code> or <code>rhs</code> depending on the boolean value for <code>this</code>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>rhs</CODE> - The right-hand-side value to perform the operation with
|
|
<DT><B>Returns:</B><DD><code>this</code> if <code>this.toboolean()</code> is true, <code>rhs</code> otherwise.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="testfor_b(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
testfor_b</H3>
|
|
<PRE>
|
|
public boolean <B>testfor_b</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> limit,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> step)</PRE>
|
|
<DL>
|
|
<DD>Perform end-condition test in for-loop processing.
|
|
<p>
|
|
Used in lua-bytecode to Java-bytecode conversion.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>limit</CODE> - the numerical limit to complete the for loop<DD><CODE>step</CODE> - the numberical step size to use.
|
|
<DT><B>Returns:</B><DD>true if limit has not been reached, false otherwise.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="strvalue()"><!-- --></A><H3>
|
|
strvalue</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>strvalue</B>()</PRE>
|
|
<DL>
|
|
<DD>Convert this value to a string if it is a <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A>,
|
|
or throw a <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it is not
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> corresponding to the value if a string or number
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if not a string or number</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="strongkey()"><!-- --></A><H3>
|
|
strongkey</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>strongkey</B>()</PRE>
|
|
<DL>
|
|
<DD>Return the key part of this value if it is a weak table entry, or <CODE>NIL</CODE> if it was weak and is no longer referenced.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> key, or <CODE>NIL</CODE> if it was weak and is no longer referenced.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/WeakTable.html" title="class in org.luaj.vm2"><CODE>WeakTable</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="strongvalue()"><!-- --></A><H3>
|
|
strongvalue</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>strongvalue</B>()</PRE>
|
|
<DL>
|
|
<DD>Return this value as a strong reference, or <CODE>NIL</CODE> if it was weak and is no longer referenced.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> referred to, or <CODE>NIL</CODE> if it was weak and is no longer referenced.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/WeakTable.html" title="class in org.luaj.vm2"><CODE>WeakTable</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isweaknil()"><!-- --></A><H3>
|
|
isweaknil</H3>
|
|
<PRE>
|
|
public boolean <B>isweaknil</B>()</PRE>
|
|
<DL>
|
|
<DD>Test if this is a weak reference and its value no longer is referenced.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if this is a weak reference whose value no longer is referenced<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/WeakTable.html" title="class in org.luaj.vm2"><CODE>WeakTable</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="valueOf(boolean)"><!-- --></A><H3>
|
|
valueOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaBoolean.html" title="class in org.luaj.vm2">LuaBoolean</A> <B>valueOf</B>(boolean b)</PRE>
|
|
<DL>
|
|
<DD>Convert java boolean to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>b</CODE> - boolean value to convert
|
|
<DT><B>Returns:</B><DD><CODE>TRUE</CODE> if not or <CODE>FALSE</CODE> if false</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="valueOf(int)"><!-- --></A><H3>
|
|
valueOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2">LuaInteger</A> <B>valueOf</B>(int i)</PRE>
|
|
<DL>
|
|
<DD>Convert java int to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - int value to convert
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A> instance, possibly pooled, whose value is i</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="valueOf(double)"><!-- --></A><H3>
|
|
valueOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2">LuaNumber</A> <B>valueOf</B>(double d)</PRE>
|
|
<DL>
|
|
<DD>Convert java double to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
This may return a <A HREF="../../../org/luaj/vm2/LuaInteger.html" title="class in org.luaj.vm2"><CODE>LuaInteger</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaDouble.html" title="class in org.luaj.vm2"><CODE>LuaDouble</CODE></A> depending
|
|
on the value supplied.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>d</CODE> - double value to convert
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaNumber.html" title="class in org.luaj.vm2"><CODE>LuaNumber</CODE></A> instance, possibly pooled, whose value is d</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="valueOf(java.lang.String)"><!-- --></A><H3>
|
|
valueOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>valueOf</B>(java.lang.String s)</PRE>
|
|
<DL>
|
|
<DD>Convert java string to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>s</CODE> - String value to convert
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> instance, possibly pooled, whose value is s</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="valueOf(byte[])"><!-- --></A><H3>
|
|
valueOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>valueOf</B>(byte[] bytes)</PRE>
|
|
<DL>
|
|
<DD>Convert bytes in an array to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array to convert
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> instance, possibly pooled, whose bytes are those in the supplied array</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="valueOf(byte[], int, int)"><!-- --></A><H3>
|
|
valueOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> <B>valueOf</B>(byte[] bytes,
|
|
int off,
|
|
int len)</PRE>
|
|
<DL>
|
|
<DD>Convert bytes in an array to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array to convert<DD><CODE>off</CODE> - offset into the byte array, starting at 0<DD><CODE>len</CODE> - number of bytes to include in the <A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A>
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2"><CODE>LuaString</CODE></A> instance, possibly pooled, whose bytes are those in the supplied array</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tableOf()"><!-- --></A><H3>
|
|
tableOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>tableOf</B>()</PRE>
|
|
<DL>
|
|
<DD>Construct an empty <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with no values and no metatable.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tableOf(org.luaj.vm2.Varargs, int)"><!-- --></A><H3>
|
|
tableOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>tableOf</B>(<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> varargs,
|
|
int firstarg)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied array values.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>varargs</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing the values to use in initialization<DD><CODE>firstarg</CODE> - the index of the first argument to use from the varargs, 1 being the first.
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with sequential elements coming from the varargs.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tableOf(int, int)"><!-- --></A><H3>
|
|
tableOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>tableOf</B>(int narray,
|
|
int nhash)</PRE>
|
|
<DL>
|
|
<DD>Construct an empty <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> preallocated to hold array and hashed elements
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>narray</CODE> - Number of array elements to preallocate<DD><CODE>nhash</CODE> - Number of hash elements to preallocate
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with no values and no metatable, but preallocated for array and hashed elements.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="listOf(org.luaj.vm2.LuaValue[])"><!-- --></A><H3>
|
|
listOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>listOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied array values.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>unnamedValues</CODE> - array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the values to use in initialization
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with sequential elements coming from the array.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="listOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
listOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>listOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> lastarg)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied array values.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>unnamedValues</CODE> - array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the first values to use in initialization<DD><CODE>lastarg</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing additional values to use in initialization
|
|
to be put after the last unnamedValues element
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with sequential elements coming from the array and varargs.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tableOf(org.luaj.vm2.LuaValue[])"><!-- --></A><H3>
|
|
tableOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>tableOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] namedValues)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied named values.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>namedValues</CODE> - array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the keys and values to use in initialization
|
|
in order <code>{key-a, value-a, key-b, value-b, ...} </code>
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with non-sequential keys coming from the supplied array.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tableOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.LuaValue[])"><!-- --></A><H3>
|
|
tableOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>tableOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] namedValues,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied named values and sequential elements.
|
|
The named values will be assigned first, and the sequential elements will be assigned later,
|
|
possibly overwriting named values at the same slot if there are conflicts.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>namedValues</CODE> - array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the keys and values to use in initialization
|
|
in order <code>{key-a, value-a, key-b, value-b, ...} </code><DD><CODE>unnamedValues</CODE> - array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the sequenctial elements to use in initialization
|
|
in order <code>{value-1, value-2, ...} </code>, or null if there are none
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with named and sequential values supplied.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tableOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
tableOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2">LuaTable</A> <B>tableOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] namedValues,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] unnamedValues,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> lastarg)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> initialized with supplied named values and sequential elements in an array part and as varargs.
|
|
The named values will be assigned first, and the sequential elements will be assigned later,
|
|
possibly overwriting named values at the same slot if there are conflicts.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>namedValues</CODE> - array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the keys and values to use in initialization
|
|
in order <code>{key-a, value-a, key-b, value-b, ...} </code><DD><CODE>unnamedValues</CODE> - array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> containing the first sequenctial elements to use in initialization
|
|
in order <code>{value-1, value-2, ...} </code>, or null if there are none<DD><CODE>lastarg</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing additional values to use in the sequential part of the initialization,
|
|
to be put after the last unnamedValues element
|
|
<DT><B>Returns:</B><DD>new <A HREF="../../../org/luaj/vm2/LuaTable.html" title="class in org.luaj.vm2"><CODE>LuaTable</CODE></A> instance with named and sequential values supplied.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="userdataOf(java.lang.Object)"><!-- --></A><H3>
|
|
userdataOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2">LuaUserdata</A> <B>userdataOf</B>(java.lang.Object o)</PRE>
|
|
<DL>
|
|
<DD>Construct a LuaUserdata for an object.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>o</CODE> - The java instance to be wrapped as userdata
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> value wrapping the java instance.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="userdataOf(java.lang.Object, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
userdataOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2">LuaUserdata</A> <B>userdataOf</B>(java.lang.Object o,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> metatable)</PRE>
|
|
<DL>
|
|
<DD>Construct a LuaUserdata for an object with a user supplied metatable.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>o</CODE> - The java instance to be wrapped as userdata<DD><CODE>metatable</CODE> - The metatble to associate with the userdata instance.
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><CODE>LuaUserdata</CODE></A> value wrapping the java instance.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="gettable(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
gettable</H3>
|
|
<PRE>
|
|
protected static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>gettable</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> t,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key)</PRE>
|
|
<DL>
|
|
<DD>get value from metatable operations, or NIL if not defined by metatables
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="settable(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
settable</H3>
|
|
<PRE>
|
|
protected static boolean <B>settable</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> t,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> key,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> value)</PRE>
|
|
<DL>
|
|
<DD>Perform field assignment including metatag processing.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>t</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> on which value is being set, typically a table or something with the metatag <A HREF="../../../org/luaj/vm2/LuaValue.html#NEWINDEX"><CODE>NEWINDEX</CODE></A> defined<DD><CODE>key</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> naming the field to assign<DD><CODE>value</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> the new value to assign to <code>key</code>
|
|
<DT><B>Returns:</B><DD>true if assignment or metatag processing succeeded, false otherwise
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - if there is a loop in metatag processing</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="metatag(org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
|
metatag</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>metatag</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag)</PRE>
|
|
<DL>
|
|
<DD>Get particular metatag, or return <A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A> if it doesn't exist
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - Metatag name to look up, typically a string such as
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#INDEX"><CODE>INDEX</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaValue.html#NEWINDEX"><CODE>NEWINDEX</CODE></A><DD><CODE>reason</CODE> - Description of error when tag lookup fails.
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> for tag <code>reason</code>, or <A HREF="../../../org/luaj/vm2/LuaValue.html#NIL"><CODE>NIL</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="checkmetatag(org.luaj.vm2.LuaValue, java.lang.String)"><!-- --></A><H3>
|
|
checkmetatag</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>checkmetatag</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> tag,
|
|
java.lang.String reason)</PRE>
|
|
<DL>
|
|
<DD>Get particular metatag, or throw <A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2"><CODE>LuaError</CODE></A> if it doesn't exist
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - Metatag name to look up, typically a string such as
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#INDEX"><CODE>INDEX</CODE></A> or <A HREF="../../../org/luaj/vm2/LuaValue.html#NEWINDEX"><CODE>NEWINDEX</CODE></A><DD><CODE>reason</CODE> - Description of error when tag lookup fails.
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> that can be called
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/luaj/vm2/LuaError.html" title="class in org.luaj.vm2">LuaError</A></CODE> - when the lookup fails.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="varargsOf(org.luaj.vm2.LuaValue[])"><!-- --></A><H3>
|
|
varargsOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>varargsOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>v</CODE> - The array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s<DD><CODE>more</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> contain values to include at the end
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> wrapping the supplied values.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><CODE>varargsOf(LuaValue, Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], int, int)"><CODE>varargsOf(LuaValue[], int, int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="varargsOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
varargsOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>varargsOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> r)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>v</CODE> - The array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s<DD><CODE>more</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> contain values to include at the end
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> wrapping the supplied values.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], int, int, org.luaj.vm2.Varargs)"><CODE>varargsOf(LuaValue[], int, int, Varargs)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="varargsOf(org.luaj.vm2.LuaValue[], int, int)"><!-- --></A><H3>
|
|
varargsOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>varargsOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v,
|
|
int offset,
|
|
int length)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>v</CODE> - The array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s<DD><CODE>offset</CODE> - number of initial values to skip in the array<DD><CODE>length</CODE> - number of values to include from the array
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> wrapping the supplied values.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[])"><CODE>varargsOf(LuaValue[])</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], int, int, org.luaj.vm2.Varargs)"><CODE>varargsOf(LuaValue[], int, int, Varargs)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="varargsOf(org.luaj.vm2.LuaValue[], int, int, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
varargsOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>varargsOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A>[] v,
|
|
int offset,
|
|
int length,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> more)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around an array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>v</CODE> - The array of <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s<DD><CODE>offset</CODE> - number of initial values to skip in the array<DD><CODE>length</CODE> - number of values to include from the array<DD><CODE>more</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> contain values to include at the end
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> wrapping the supplied values.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], org.luaj.vm2.Varargs)"><CODE>varargsOf(LuaValue[], Varargs)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#varargsOf(org.luaj.vm2.LuaValue[], int, int)"><CODE>varargsOf(LuaValue[], int, int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="varargsOf(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
varargsOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>varargsOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> v,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> r)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around a set of 2 or more <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.
|
|
<p>
|
|
This can be used to wrap exactly 2 values, or a list consisting of 1 initial value
|
|
followed by another variable list of remaining values.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>v1</CODE> - First <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> in the <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A><DD><CODE>v2</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> supplying the 2rd value,
|
|
or <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>s supplying all values beyond the first
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> wrapping the supplied values.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="varargsOf(org.luaj.vm2.LuaValue, org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
varargsOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>varargsOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> v1,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> v2,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> v3)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> around a set of 3 or more <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>s.
|
|
<p>
|
|
This can be used to wrap exactly 3 values, or a list consisting of 2 initial values
|
|
followed by another variable list of remaining values.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>v1</CODE> - First <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> in the <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A><DD><CODE>v2</CODE> - Second <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> in the <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A><DD><CODE>v3</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> supplying the 3rd value,
|
|
or <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A>s supplying all values beyond the second
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> wrapping the supplied values.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tailcallOf(org.luaj.vm2.LuaValue, org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
tailcallOf</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>tailcallOf</B>(<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> func,
|
|
<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</PRE>
|
|
<DL>
|
|
<DD>Construct a <A HREF="../../../org/luaj/vm2/TailcallVarargs.html" title="class in org.luaj.vm2"><CODE>TailcallVarargs</CODE></A> around a function and arguments.
|
|
<p>
|
|
The tail call is not yet called or processing until the client invokes
|
|
<A HREF="../../../org/luaj/vm2/TailcallVarargs.html#eval()"><CODE>TailcallVarargs.eval()</CODE></A> which performs the tail call processing.
|
|
<p>
|
|
This method is typically not used directly by client code.
|
|
Instead use one of the function invocation methods.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>func</CODE> - <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A> to be called as a tail call<DD><CODE>args</CODE> - <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2"><CODE>Varargs</CODE></A> containing the arguments to the call
|
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/TailcallVarargs.html" title="class in org.luaj.vm2"><CODE>TailcallVarargs</CODE></A> to be used in tailcall oprocessing.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue)"><CODE>invokemethod(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="onInvoke(org.luaj.vm2.Varargs)"><!-- --></A><H3>
|
|
onInvoke</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> <B>onInvoke</B>(<A HREF="../../../org/luaj/vm2/Varargs.html" title="class in org.luaj.vm2">Varargs</A> args)</PRE>
|
|
<DL>
|
|
<DD>Callback used during tail call processing to invoke the function once.
|
|
<p>
|
|
This may return a <A HREF="../../../org/luaj/vm2/TailcallVarargs.html" title="class in org.luaj.vm2"><CODE>TailcallVarargs</CODE></A> to be evaluated by the client.
|
|
<p>
|
|
This should not be called directly, instead use on of the call invocation functions.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>args</CODE> - the arguments to the call invocation.
|
|
<DT><B>Returns:</B><DD>Varargs the return values, possible a TailcallVarargs.<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LuaValue.html#call()"><CODE>call()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invoke()"><CODE>invoke()</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#method(org.luaj.vm2.LuaValue)"><CODE>method(LuaValue)</CODE></A>,
|
|
<A HREF="../../../org/luaj/vm2/LuaValue.html#invokemethod(org.luaj.vm2.LuaValue)"><CODE>invokemethod(LuaValue)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LuaValue.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../org/luaj/vm2/LuaUserdata.html" title="class in org.luaj.vm2"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../org/luaj/vm2/OrphanedThread.html" title="class in org.luaj.vm2"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?org/luaj/vm2/LuaValue.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="LuaValue.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
<i>Copyright © 2007-2008 Luaj.org. All Rights Reserved.</i>
|
|
</BODY>
|
|
</HTML>
|