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

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

Packages that use Globals
org.luaj.vm2
org.luaj.vm2.compiler
org.luaj.vm2.lib
org.luaj.vm2.lib.jme
org.luaj.vm2.lib.jse
org.luaj.vm2.luajc
org.luaj.vm2.server

Uses of Globals in org.luaj.vm2

Fields in org.luaj.vm2 declared as Globals
`Globals` `LuaThread.globals`

Methods in org.luaj.vm2 that return Globals
`Globals` `Globals.checkglobals()` Check that this object is a Globals object, and return it, otherwise throw an error.
`Globals` `LuaValue.checkglobals()` Check that the value is a Globals instance, or throw `LuaError` if not

Methods in org.luaj.vm2 with parameters of type Globals
`static void` `LoadState.install(Globals globals)` Install this class as the standard Globals.Undumper for the supplied Globals

Constructors in org.luaj.vm2 with parameters of type Globals
`LuaThread(Globals globals)` Private constructor for main thread only
`LuaThread(Globals globals, LuaValue func)` Create a LuaThread around a function and environment

Uses of Globals in org.luaj.vm2.compiler

Methods in org.luaj.vm2.compiler with parameters of type Globals
`static void` `LuaC.install(Globals globals)` Install the compiler so that LoadState will first try to use it when handed bytes that are not already a compiled lua chunk.
`LuaValue` `LuaC.load(java.io.InputStream stream, java.lang.String chunkname, Globals globals)` Deprecated. Use Globals.load(InputString, String, String) instead, or LuaC.compile(InputStream, String) and construct LuaClosure directly.

Uses of Globals in org.luaj.vm2.lib

Fields in org.luaj.vm2.lib declared as Globals
`protected Globals` `IoLib.globals`
`protected Globals` `OsLib.globals`

Uses of Globals in org.luaj.vm2.lib.jme

Methods in org.luaj.vm2.lib.jme that return Globals
`static Globals` `JmePlatform.debugGlobals()` Create standard globals including the `DebugLib` library.
`static Globals` `JmePlatform.standardGlobals()` Create a standard set of globals for JME including all the libraries.

Uses of Globals in org.luaj.vm2.lib.jse

Methods in org.luaj.vm2.lib.jse that return Globals
`static Globals` `JsePlatform.debugGlobals()` Create standard globals including the `DebugLib` library.
`static Globals` `JsePlatform.standardGlobals()` Create a standard set of globals for JSE including all the libraries.

Uses of Globals in org.luaj.vm2.luajc

Methods in org.luaj.vm2.luajc with parameters of type Globals
`java.util.Hashtable` `LuaJC.compileAll(java.io.InputStream script, java.lang.String chunkname, java.lang.String filename, Globals globals, boolean genmain)`
`java.util.Hashtable` `LuaJC.compileAll(java.io.Reader script, java.lang.String chunkname, java.lang.String filename, Globals globals, boolean genmain)`
`static void` `LuaJC.install(Globals G)` Install the compiler as the main Globals.Loader to use in a set of globals.

Uses of Globals in org.luaj.vm2.server

Fields in org.luaj.vm2.server declared as Globals
`protected Globals` `DefaultLauncher.g`

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