| 程序包 | 说明 |
|---|---|
| org.luaj.vm2 | |
| org.luaj.vm2.compiler | |
| org.luaj.vm2.lib | |
| org.luaj.vm2.luajc |
| 限定符和类型 | 字段和说明 |
|---|---|
Prototype[] |
Prototype.p |
Prototype |
LuaClosure.p |
| 限定符和类型 | 方法和说明 |
|---|---|
Prototype |
Globals.Compiler.compile(InputStream stream,
String chunkname)
Compile lua source into a Prototype.
|
Prototype |
Globals.compilePrototype(InputStream stream,
String chunkname)
Compile lua source from an InputStream into a Prototype.
|
Prototype |
Globals.compilePrototype(Reader reader,
String chunkname)
Compile lua source from a Reader into a Prototype.
|
Prototype |
LoadState.loadFunction(LuaString p)
Load a function prototype from the input stream
|
Prototype |
Globals.loadPrototype(InputStream is,
String chunkname,
String mode)
Load lua source or lua binary from an input stream into a Prototype.
|
Prototype |
Globals.Undumper.undump(InputStream stream,
String chunkname)
Load the supplied input stream into a prototype.
|
static Prototype |
LoadState.undump(InputStream stream,
String chunkname)
Load input stream as a lua binary chunk if the first 4 bytes are the lua binary signature.
|
| 限定符和类型 | 方法和说明 |
|---|---|
LuaFunction |
Globals.Loader.load(Prototype prototype,
String chunkname,
Globals globals,
LuaValue env)
Convert the prototype into a LuaFunction with the supplied environment.
|
static void |
Print.print(Prototype prototype)
Pretty-prints contents of a Prototype.
|
static void |
Print.printCode(Prototype f)
Print the code in a prototype
|
static void |
Print.printFunction(Prototype prototype,
boolean full)
Pretty-prints contents of a Prototype in short or long form.
|
static void |
Print.printOpCode(PrintStream ps,
Prototype f,
int pc)
Print an opcode in a prototype
|
static void |
Print.printOpCode(Prototype f,
int pc)
Print an opcode in a prototype
|
| 构造器和说明 |
|---|
LuaClosure(Prototype p,
Globals globals,
LuaValue env)
Create a closure around a Prototype with a specific environment.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Prototype |
LuaC.compile(InputStream stream,
String chunkname)
Compile lua source into a Prototype.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
DumpState.dump(Prototype f,
OutputStream w,
boolean strip) |
static int |
DumpState.dump(Prototype f,
OutputStream w,
boolean stripDebug,
int numberFormat,
boolean littleendian) |
LuaFunction |
LuaC.load(Prototype prototype,
String chunkname,
Globals globals,
LuaValue env) |
| 限定符和类型 | 方法和说明 |
|---|---|
static DebugLib.NameWhat |
DebugLib.getobjname(Prototype p,
int lastpc,
int reg) |
| 限定符和类型 | 字段和说明 |
|---|---|
Prototype |
ProtoInfo.prototype |
| 限定符和类型 | 方法和说明 |
|---|---|
static BasicBlock[] |
BasicBlock.findBasicBlocks(Prototype p) |
LuaFunction |
LuaJC.load(Prototype p,
String name,
Globals globals,
LuaValue env) |
LuaFunction |
LuaJC.load(Prototype p,
String name,
LuaValue globals) |
LuaFunction |
JavaLoader.load(Prototype p,
String classname,
String filename,
LuaValue env) |
static void |
BasicBlock.visitBranches(Prototype p,
BasicBlock.BranchVisitor visitor) |
| 构造器和说明 |
|---|
BasicBlock(Prototype p,
int pc0) |
JavaGen(Prototype p,
String classname,
String filename,
boolean genmain) |
ProtoInfo(Prototype p,
String name) |
Copyright © 2020. All rights reserved.