mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-26 07:03:22 +00:00
822 lines
32 KiB
HTML
822 lines
32 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:24 PST 2013 -->
|
||
|
<TITLE>
|
||
|
LoadState (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="LoadState (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/LoadState.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/Buffer.html" title="class in org.luaj.vm2"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../../../org/luaj/vm2/LoadState.LuaCompiler.html" title="interface 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/LoadState.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="LoadState.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 LoadState</H2>
|
||
|
<PRE>
|
||
|
java.lang.Object
|
||
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.luaj.vm2.LoadState</B>
|
||
|
</PRE>
|
||
|
<HR>
|
||
|
<DL>
|
||
|
<DT><PRE>public class <B>LoadState</B><DT>extends java.lang.Object</DL>
|
||
|
</PRE>
|
||
|
|
||
|
<P>
|
||
|
Class to manage loading of <A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2"><CODE>Prototype</CODE></A> instances.
|
||
|
<p>
|
||
|
The <A HREF="../../../org/luaj/vm2/LoadState.html" title="class in org.luaj.vm2"><CODE>LoadState</CODE></A> class exposes one main function,
|
||
|
namely <A HREF="../../../org/luaj/vm2/LoadState.html#load(java.io.InputStream, java.lang.String, org.luaj.vm2.LuaValue)"><CODE>load(InputStream, String, LuaValue)</CODE></A>,
|
||
|
to be used to load code from a particular input stream.
|
||
|
<p>
|
||
|
A simple pattern for loading and executing code is
|
||
|
<pre> <code>LuaValue _G = JsePlatform.standardGlobals();
|
||
|
LoadState.load( new FileInputStream("main.lua"), "main.lua", _G ).call();
|
||
|
</code> </pre>
|
||
|
This should work regardless of which <A HREF="../../../org/luaj/vm2/LoadState.LuaCompiler.html" title="interface in org.luaj.vm2"><CODE>LoadState.LuaCompiler</CODE></A>
|
||
|
has been installed.
|
||
|
<p>
|
||
|
|
||
|
Prior to loading code, a compiler should be installed.
|
||
|
<p>
|
||
|
By default, when using <CODE>JsePlatform</CODE> or
|
||
|
to construct globals, the <CODE>LuaC</CODE> compiler is installed.
|
||
|
<p>
|
||
|
To override the default compiler with, say, the <CODE>LuaJC</CODE>
|
||
|
lua-to-java bytecode compiler, install it before loading,
|
||
|
for example:
|
||
|
<pre> <code>LuaValue _G = JsePlatform.standardGlobals();
|
||
|
LuaJC.install();
|
||
|
LoadState.load( new FileInputStream("main.lua"), "main.lua", _G ).call();
|
||
|
</code> </pre>
|
||
|
<P>
|
||
|
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../org/luaj/vm2/LoadState.LuaCompiler.html" title="interface in org.luaj.vm2"><CODE>LoadState.LuaCompiler</CODE></A>,
|
||
|
<A HREF="../../../org/luaj/vm2/LuaClosure.html" title="class in org.luaj.vm2"><CODE>LuaClosure</CODE></A>,
|
||
|
<A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2"><CODE>LuaFunction</CODE></A>,
|
||
|
<A HREF="../../../org/luaj/vm2/LoadState.html#compiler"><CODE>compiler</CODE></A>,
|
||
|
<A HREF="../../../org/luaj/vm2/LoadState.html#load(java.io.InputStream, java.lang.String, org.luaj.vm2.LuaValue)"><CODE>load(InputStream, String, LuaValue)</CODE></A>,
|
||
|
<CODE>LuaC</CODE>,
|
||
|
<CODE>LuaJC</CODE></DL>
|
||
|
<HR>
|
||
|
|
||
|
<P>
|
||
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||
|
|
||
|
<A NAME="nested_class_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>Nested Class Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static interface</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LoadState.LuaCompiler.html" title="interface in org.luaj.vm2">LoadState.LuaCompiler</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Interface for the compiler, if it is installed.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<!-- =========== 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/LoadState.LuaCompiler.html" title="interface in org.luaj.vm2">LoadState.LuaCompiler</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LoadState.html#compiler">compiler</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Compiler instance, if installed</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> java.io.DataInputStream</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LoadState.html#is">is</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
input stream from which we are loading</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/LoadState.html#LUA_TBOOLEAN">LUA_TBOOLEAN</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TFUNCTION">LUA_TFUNCTION</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TINT">LUA_TINT</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TLIGHTUSERDATA">LUA_TLIGHTUSERDATA</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TNIL">LUA_TNIL</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TNONE">LUA_TNONE</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TNUMBER">LUA_TNUMBER</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TSTRING">LUA_TSTRING</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TTABLE">LUA_TTABLE</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TTHREAD">LUA_TTHREAD</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TUSERDATA">LUA_TUSERDATA</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUA_TVALUE">LUA_TVALUE</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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/LoadState.html#LUAC_FORMAT">LUAC_FORMAT</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
for header of binary files -- this is the official format</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/LoadState.html#LUAC_HEADERSIZE">LUAC_HEADERSIZE</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
size of header of binary files</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/LoadState.html#LUAC_VERSION">LUAC_VERSION</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
for header of binary files -- this is Lua 5.1</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/LoadState.html#NUMBER_FORMAT_FLOATS_OR_DOUBLES">NUMBER_FORMAT_FLOATS_OR_DOUBLES</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
format corresponding to non-number-patched lua, all numbers are floats or doubles</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/LoadState.html#NUMBER_FORMAT_INTS_ONLY">NUMBER_FORMAT_INTS_ONLY</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
format corresponding to non-number-patched lua, all numbers are ints</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/LoadState.html#NUMBER_FORMAT_NUM_PATCH_INT32">NUMBER_FORMAT_NUM_PATCH_INT32</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
format corresponding to number-patched lua, all numbers are 32-bit (4 byte) ints</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/LoadState.html#SOURCE_BINARY_STRING">SOURCE_BINARY_STRING</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Name for compiled chunks</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>static java.lang.String</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LoadState.html#getSourceName(java.lang.String)">getSourceName</A></B>(java.lang.String name)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Construct a source name from a supplied chunk name</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <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/LoadState.html#load(java.io.InputStream, java.lang.String, org.luaj.vm2.LuaValue)">load</A></B>(java.io.InputStream stream,
|
||
|
java.lang.String name,
|
||
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> env)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Load lua in either binary or text form from an input stream.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2">Prototype</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LoadState.html#loadBinaryChunk(int, java.io.InputStream, java.lang.String)">loadBinaryChunk</A></B>(int firstByte,
|
||
|
java.io.InputStream stream,
|
||
|
java.lang.String name)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Load lua thought to be a binary chunk from its first byte from an input stream.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2">Prototype</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../org/luaj/vm2/LoadState.html#loadFunction(org.luaj.vm2.LuaString)">loadFunction</A></B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> p)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Load a function prototype from the input stream</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/LoadState.html#loadHeader()">loadHeader</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Load the lua chunk header 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/LoadState.html#longBitsToLuaNumber(long)">longBitsToLuaNumber</A></B>(long bits)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Convert bits in a long value to a <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2"><CODE>LuaValue</CODE></A>.</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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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="NUMBER_FORMAT_FLOATS_OR_DOUBLES"><!-- --></A><H3>
|
||
|
NUMBER_FORMAT_FLOATS_OR_DOUBLES</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>NUMBER_FORMAT_FLOATS_OR_DOUBLES</B></PRE>
|
||
|
<DL>
|
||
|
<DD>format corresponding to non-number-patched lua, all numbers are floats or doubles
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.NUMBER_FORMAT_FLOATS_OR_DOUBLES">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="NUMBER_FORMAT_INTS_ONLY"><!-- --></A><H3>
|
||
|
NUMBER_FORMAT_INTS_ONLY</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>NUMBER_FORMAT_INTS_ONLY</B></PRE>
|
||
|
<DL>
|
||
|
<DD>format corresponding to non-number-patched lua, all numbers are ints
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.NUMBER_FORMAT_INTS_ONLY">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="NUMBER_FORMAT_NUM_PATCH_INT32"><!-- --></A><H3>
|
||
|
NUMBER_FORMAT_NUM_PATCH_INT32</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>NUMBER_FORMAT_NUM_PATCH_INT32</B></PRE>
|
||
|
<DL>
|
||
|
<DD>format corresponding to number-patched lua, all numbers are 32-bit (4 byte) ints
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.NUMBER_FORMAT_NUM_PATCH_INT32">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TINT"><!-- --></A><H3>
|
||
|
LUA_TINT</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TINT</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TINT">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TNONE"><!-- --></A><H3>
|
||
|
LUA_TNONE</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TNONE</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TNONE">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TNIL"><!-- --></A><H3>
|
||
|
LUA_TNIL</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TNIL</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TNIL">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TBOOLEAN"><!-- --></A><H3>
|
||
|
LUA_TBOOLEAN</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TBOOLEAN</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TBOOLEAN">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TLIGHTUSERDATA"><!-- --></A><H3>
|
||
|
LUA_TLIGHTUSERDATA</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TLIGHTUSERDATA</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TLIGHTUSERDATA">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TNUMBER"><!-- --></A><H3>
|
||
|
LUA_TNUMBER</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TNUMBER</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TNUMBER">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TSTRING"><!-- --></A><H3>
|
||
|
LUA_TSTRING</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TSTRING</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TSTRING">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TTABLE"><!-- --></A><H3>
|
||
|
LUA_TTABLE</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TTABLE</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TTABLE">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TFUNCTION"><!-- --></A><H3>
|
||
|
LUA_TFUNCTION</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TFUNCTION</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TFUNCTION">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TUSERDATA"><!-- --></A><H3>
|
||
|
LUA_TUSERDATA</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TUSERDATA</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TUSERDATA">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TTHREAD"><!-- --></A><H3>
|
||
|
LUA_TTHREAD</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TTHREAD</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TTHREAD">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUA_TVALUE"><!-- --></A><H3>
|
||
|
LUA_TVALUE</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUA_TVALUE</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUA_TVALUE">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="compiler"><!-- --></A><H3>
|
||
|
compiler</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../org/luaj/vm2/LoadState.LuaCompiler.html" title="interface in org.luaj.vm2">LoadState.LuaCompiler</A> <B>compiler</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Compiler instance, if installed
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="SOURCE_BINARY_STRING"><!-- --></A><H3>
|
||
|
SOURCE_BINARY_STRING</H3>
|
||
|
<PRE>
|
||
|
public static final java.lang.String <B>SOURCE_BINARY_STRING</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Name for compiled chunks
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.SOURCE_BINARY_STRING">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUAC_VERSION"><!-- --></A><H3>
|
||
|
LUAC_VERSION</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUAC_VERSION</B></PRE>
|
||
|
<DL>
|
||
|
<DD>for header of binary files -- this is Lua 5.1
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUAC_VERSION">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUAC_FORMAT"><!-- --></A><H3>
|
||
|
LUAC_FORMAT</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUAC_FORMAT</B></PRE>
|
||
|
<DL>
|
||
|
<DD>for header of binary files -- this is the official format
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUAC_FORMAT">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="LUAC_HEADERSIZE"><!-- --></A><H3>
|
||
|
LUAC_HEADERSIZE</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>LUAC_HEADERSIZE</B></PRE>
|
||
|
<DL>
|
||
|
<DD>size of header of binary files
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.luaj.vm2.LoadState.LUAC_HEADERSIZE">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="is"><!-- --></A><H3>
|
||
|
is</H3>
|
||
|
<PRE>
|
||
|
public final java.io.DataInputStream <B>is</B></PRE>
|
||
|
<DL>
|
||
|
<DD>input stream from which we are loading
|
||
|
<P>
|
||
|
<DL>
|
||
|
</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="longBitsToLuaNumber(long)"><!-- --></A><H3>
|
||
|
longBitsToLuaNumber</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> <B>longBitsToLuaNumber</B>(long bits)</PRE>
|
||
|
<DL>
|
||
|
<DD>Convert bits in a long value 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>bits</CODE> - long value containing the bits
|
||
|
<DT><B>Returns:</B><DD><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> whose value corresponds to the bits provided.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="loadFunction(org.luaj.vm2.LuaString)"><!-- --></A><H3>
|
||
|
loadFunction</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2">Prototype</A> <B>loadFunction</B>(<A HREF="../../../org/luaj/vm2/LuaString.html" title="class in org.luaj.vm2">LuaString</A> p)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD>Load a function prototype from the input stream
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>p</CODE> - name of the source
|
||
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2"><CODE>Prototype</CODE></A> instance that was loaded
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.io.IOException</CODE></DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="loadHeader()"><!-- --></A><H3>
|
||
|
loadHeader</H3>
|
||
|
<PRE>
|
||
|
public void <B>loadHeader</B>()
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD>Load the lua chunk header values.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.io.IOException</CODE> - if an i/o exception occurs.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="load(java.io.InputStream, java.lang.String, org.luaj.vm2.LuaValue)"><!-- --></A><H3>
|
||
|
load</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../org/luaj/vm2/LuaFunction.html" title="class in org.luaj.vm2">LuaFunction</A> <B>load</B>(java.io.InputStream stream,
|
||
|
java.lang.String name,
|
||
|
<A HREF="../../../org/luaj/vm2/LuaValue.html" title="class in org.luaj.vm2">LuaValue</A> env)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD>Load lua in either binary or text form from an input stream.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>firstByte</CODE> - the first byte of the input stream<DD><CODE>stream</CODE> - InputStream to read, after having read the first byte already<DD><CODE>name</CODE> - Name to apply to the loaded chunk
|
||
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2"><CODE>Prototype</CODE></A> that was loaded
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the signature is bac
|
||
|
<DD><CODE>java.io.IOException</CODE> - if an IOException occurs</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="loadBinaryChunk(int, java.io.InputStream, java.lang.String)"><!-- --></A><H3>
|
||
|
loadBinaryChunk</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2">Prototype</A> <B>loadBinaryChunk</B>(int firstByte,
|
||
|
java.io.InputStream stream,
|
||
|
java.lang.String name)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD>Load lua thought to be a binary chunk from its first byte from an input stream.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>firstByte</CODE> - the first byte of the input stream<DD><CODE>stream</CODE> - InputStream to read, after having read the first byte already<DD><CODE>name</CODE> - Name to apply to the loaded chunk
|
||
|
<DT><B>Returns:</B><DD><A HREF="../../../org/luaj/vm2/Prototype.html" title="class in org.luaj.vm2"><CODE>Prototype</CODE></A> that was loaded
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the signature is bac
|
||
|
<DD><CODE>java.io.IOException</CODE> - if an IOException occurs</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getSourceName(java.lang.String)"><!-- --></A><H3>
|
||
|
getSourceName</H3>
|
||
|
<PRE>
|
||
|
public static java.lang.String <B>getSourceName</B>(java.lang.String name)</PRE>
|
||
|
<DL>
|
||
|
<DD>Construct a source name from a supplied chunk name
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - String name that appears in the chunk
|
||
|
<DT><B>Returns:</B><DD>source file name</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/LoadState.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/Buffer.html" title="class in org.luaj.vm2"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../../../org/luaj/vm2/LoadState.LuaCompiler.html" title="interface 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/LoadState.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="LoadState.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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>
|