Lua SPOT
v1.0

se.krka.kahlua.vm
Class LuaPrototype

java.lang.Object
  extended by se.krka.kahlua.vm.LuaPrototype

public final class LuaPrototype
extends java.lang.Object


Field Summary
 java.lang.Object[] constants
           
 boolean isVararg
           
 int[] lines
           
 int maxStacksize
           
 java.lang.String name
           
 int numParams
           
 int numUpvalues
           
 int[] opcodes
           
 LuaPrototype[] prototypes
           
 
Constructor Summary
LuaPrototype(java.io.DataInputStream in, boolean littleEndian, java.lang.String parentName, int size_t)
           
 
Method Summary
static LuaClosure loadByteCode(java.io.DataInputStream in, LuaTable env)
           
static LuaClosure loadByteCode(java.io.InputStream in, LuaTable env)
           
static int rev(int v)
           
static long rev(long v)
           
static int toInt(int bits, boolean littleEndian)
           
static long toLong(long bits, boolean littleEndian)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

opcodes

public int[] opcodes

constants

public java.lang.Object[] constants

prototypes

public LuaPrototype[] prototypes

numParams

public int numParams

isVararg

public boolean isVararg

name

public java.lang.String name

lines

public int[] lines

numUpvalues

public int numUpvalues

maxStacksize

public int maxStacksize
Constructor Detail

LuaPrototype

public LuaPrototype(java.io.DataInputStream in,
                    boolean littleEndian,
                    java.lang.String parentName,
                    int size_t)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

rev

public static int rev(int v)

rev

public static long rev(long v)

toInt

public static int toInt(int bits,
                        boolean littleEndian)

toLong

public static long toLong(long bits,
                          boolean littleEndian)

loadByteCode

public static LuaClosure loadByteCode(java.io.DataInputStream in,
                                      LuaTable env)
                               throws java.io.IOException
Throws:
java.io.IOException

loadByteCode

public static LuaClosure loadByteCode(java.io.InputStream in,
                                      LuaTable env)
                               throws java.io.IOException
Throws:
java.io.IOException

Lua SPOT
v1.0