Package se.krka.kahlua.vm
Class Prototype
java.lang.Object
se.krka.kahlua.vm.Prototype
public final class Prototype
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description int[]
code
java.lang.Object[]
constants
java.lang.String
file
java.lang.String
filename
boolean
isVararg
int[]
lines
int[]
locvarlines
java.lang.String[]
locvars
int
maxStacksize
java.lang.String
name
int
numParams
int
numUpvalues
Prototype[]
prototypes
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
dump(java.io.OutputStream outputStream)
static LuaClosure
loadByteCode(java.io.DataInputStream dataInputStream, KahluaTable kahluaTable)
static LuaClosure
loadByteCode(java.io.InputStream inputStream, KahluaTable kahluaTable)
static int
rev(int int1)
static long
rev(long long1)
static int
toInt(int int1, boolean boolean1)
static long
toLong(long long1, boolean boolean1)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
code
public int[] code -
constants
public java.lang.Object[] constants -
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 -
file
public java.lang.String file -
filename
public java.lang.String filename -
locvars
public java.lang.String[] locvars -
locvarlines
public int[] locvarlines
-
-
Constructor Details
-
Prototype
public Prototype() -
Prototype
public Prototype(java.io.DataInputStream dataInputStream, boolean boolean1, java.lang.String string, int int1) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
rev
public static int rev(int int1) -
rev
public static long rev(long long1) -
toInt
public static int toInt(int int1, boolean boolean1) -
toLong
public static long toLong(long long1, boolean boolean1) -
loadByteCode
public static LuaClosure loadByteCode(java.io.DataInputStream dataInputStream, KahluaTable kahluaTable) throws java.io.IOException- Throws:
java.io.IOException
-
loadByteCode
public static LuaClosure loadByteCode(java.io.InputStream inputStream, KahluaTable kahluaTable) throws java.io.IOException- Throws:
java.io.IOException
-
dump
public void dump(java.io.OutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-