C# Class IronLua.Library.BaseLibrary

Inheritance: Library
Mostra file Open project: ericmj/IronLua Class Usage Examples

Public Methods

Method Description
Assert ( bool v, object message = null ) : Varargs
BaseLibrary ( IronLua.Runtime.Context context ) : System
CollectGarbage ( string opt, string arg = null ) : void
DoFile ( string filename = null ) : object
Error ( string message, object level ) : void
GetFEnv ( object f = null ) : object
GetMetatable ( object obj ) : object
IPairs ( LuaTable t ) : Varargs
Load ( Delegate func, string chunkname ) : Varargs
LoadFile ( string filename = null ) : Varargs
LoadString ( string str, string chunkname ) : Varargs
Next ( LuaTable table, object index = null ) : Varargs
PCall ( Delegate f ) : Varargs
Pairs ( LuaTable t ) : Varargs
Print ( ) : void
RawEqual ( object v1, object v2 ) : bool
RawGet ( LuaTable table, object index ) : object
RawSet ( LuaTable table, object index, object value ) : LuaTable
Select ( object index ) : Varargs
SetFEnv ( object f, LuaTable table ) : object
SetMetatable ( LuaTable table, LuaTable metatable ) : LuaTable
Setup ( LuaTable table ) : void
ToNumber ( object obj, object @base = null ) : object
ToString ( object e ) : object
Type ( object v ) : string
Unpack ( LuaTable list, object i = null, object j = null ) : Varargs
XPCall ( Delegate f, Delegate err ) : Varargs

Private Methods

Method Description
AlphaNumericToBase ( char c ) : int
CompileString ( string source ) : Func
ConvertToNumber ( object obj, int argumentIndex, double @default = Double.NaN ) : double
InternalToNumber ( string str, double @base ) : double

Method Details

Assert() public static method

public static Assert ( bool v, object message = null ) : Varargs
v bool
message object
return Varargs

BaseLibrary() public method

public BaseLibrary ( IronLua.Runtime.Context context ) : System
context IronLua.Runtime.Context
return System

CollectGarbage() public method

public CollectGarbage ( string opt, string arg = null ) : void
opt string
arg string
return void

DoFile() public method

public DoFile ( string filename = null ) : object
filename string
return object

Error() public static method

public static Error ( string message, object level ) : void
message string
level object
return void

GetFEnv() public method

public GetFEnv ( object f = null ) : object
f object
return object

GetMetatable() public method

public GetMetatable ( object obj ) : object
obj object
return object

IPairs() public static method

public static IPairs ( LuaTable t ) : Varargs
t IronLua.Runtime.LuaTable
return Varargs

Load() public method

public Load ( Delegate func, string chunkname ) : Varargs
func System.Delegate
chunkname string
return Varargs

LoadFile() public method

public LoadFile ( string filename = null ) : Varargs
filename string
return Varargs

LoadString() public method

public LoadString ( string str, string chunkname ) : Varargs
str string
chunkname string
return Varargs

Next() public static method

public static Next ( LuaTable table, object index = null ) : Varargs
table IronLua.Runtime.LuaTable
index object
return Varargs

PCall() public method

public PCall ( Delegate f ) : Varargs
f System.Delegate
return Varargs

Pairs() public static method

public static Pairs ( LuaTable t ) : Varargs
t IronLua.Runtime.LuaTable
return Varargs

Print() public static method

public static Print ( ) : void
return void

RawEqual() public static method

public static RawEqual ( object v1, object v2 ) : bool
v1 object
v2 object
return bool

RawGet() public static method

public static RawGet ( LuaTable table, object index ) : object
table IronLua.Runtime.LuaTable
index object
return object

RawSet() public static method

public static RawSet ( LuaTable table, object index, object value ) : LuaTable
table IronLua.Runtime.LuaTable
index object
value object
return IronLua.Runtime.LuaTable

Select() public static method

public static Select ( object index ) : Varargs
index object
return Varargs

SetFEnv() public method

public SetFEnv ( object f, LuaTable table ) : object
f object
table IronLua.Runtime.LuaTable
return object

SetMetatable() public static method

public static SetMetatable ( LuaTable table, LuaTable metatable ) : LuaTable
table IronLua.Runtime.LuaTable
metatable IronLua.Runtime.LuaTable
return IronLua.Runtime.LuaTable

Setup() public method

public Setup ( LuaTable table ) : void
table IronLua.Runtime.LuaTable
return void

ToNumber() public static method

public static ToNumber ( object obj, object @base = null ) : object
obj object
@base object
return object

ToString() public method

public ToString ( object e ) : object
e object
return object

Type() public static method

public static Type ( object v ) : string
v object
return string

Unpack() public static method

public static Unpack ( LuaTable list, object i = null, object j = null ) : Varargs
list IronLua.Runtime.LuaTable
i object
j object
return Varargs

XPCall() public method

public XPCall ( Delegate f, Delegate err ) : Varargs
f System.Delegate
err System.Delegate
return Varargs