# Uses of Class org.luaj.vm2.Prototype (Luaj API)
Date: 2015-04-29

## Uses of Class
org.luaj.vm2.Prototype

Packages that use Prototype
org.luaj.vm2
org.luaj.vm2.compiler
org.luaj.vm2.lib
org.luaj.vm2.luajc

Uses of Prototype in org.luaj.vm2

Fields in org.luaj.vm2 declared as Prototype
`Prototype` `LuaClosure.p`
`Prototype[]` `Prototype.p`

Methods in org.luaj.vm2 that return Prototype
`Prototype` `Globals.Compiler.compile(java.io.InputStream stream, java.lang.String chunkname)` Compile lua source into a Prototype.
`Prototype` `Globals.compilePrototype(java.io.InputStream stream, java.lang.String chunkname)` Compile lua source from an InputStream into a Prototype.
`Prototype` `Globals.compilePrototype(java.io.Reader reader, java.lang.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(java.io.InputStream is, java.lang.String chunkname, java.lang.String mode)` Load lua source or lua binary from an input stream into a Prototype.
`Prototype` `Globals.Undumper.undump(java.io.InputStream stream, java.lang.String chunkname)` Load the supplied input stream into a prototype.
`static Prototype` `LoadState.undump(java.io.InputStream stream, java.lang.String chunkname)` Load input stream as a lua binary chunk if the first 4 bytes are the lua binary signature.

Methods in org.luaj.vm2 with parameters of type Prototype
`LuaFunction` `Globals.Loader.load(Prototype prototype, java.lang.String chunkname, 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(java.io.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

Constructors in org.luaj.vm2 with parameters of type Prototype
`LuaClosure(Prototype p, LuaValue env)` Create a closure around a Prototype with a specific environment.

Uses of Prototype in org.luaj.vm2.compiler

Methods in org.luaj.vm2.compiler that return Prototype
`Prototype` `LuaC.compile(java.io.InputStream stream, java.lang.String chunkname)` Compile lua source into a Prototype.

Methods in org.luaj.vm2.compiler with parameters of type Prototype
`LuaFunction` `LuaC.load(Prototype prototype, java.lang.String chunkname, LuaValue env)`

Uses of Prototype in org.luaj.vm2.lib

Methods in org.luaj.vm2.lib with parameters of type Prototype
`static org.luaj.vm2.lib.DebugLib.NameWhat` `DebugLib.getobjname(Prototype p, int lastpc, int reg)`

Uses of Prototype in org.luaj.vm2.luajc

Methods in org.luaj.vm2.luajc with parameters of type Prototype
`LuaFunction` `LuaJC.load(Prototype p, java.lang.String name, LuaValue globals)`

Copyright © 2007-2015 Luaj.org. All Rights Reserved.