C# Class Scorpio.Script

Show file Open project: qingfeng346/Scorpio-CSharp Class Usage Examples

Public Methods

Method Description
Call ( String strName ) : object
Call ( String strName, ScriptObject args ) : object
ClearStackInfo ( ) : void
ContainDefine ( string define ) : bool
ContainsFastReflectClass ( Type type ) : bool
CreateArray ( ) : ScriptArray
CreateBool ( bool value ) : ScriptBoolean
CreateDouble ( double value ) : ScriptNumber
CreateFunction ( ScorpioHandle value ) : ScriptFunction
CreateObject ( object value ) : ScriptObject
CreateString ( string value ) : ScriptString
CreateTable ( ) : ScriptTable
CreateUserdata ( object obj ) : ScriptUserdata
GetCurrentStackInfo ( ) : StackInfo
GetDelegate ( Type type ) : ScriptUserdata
GetEnum ( Type type ) : ScriptUserdata
GetFastReflectClass ( Type type ) : IScorpioFastReflectClass
GetGlobalTable ( ) : ScriptTable
GetScorpioType ( Type type ) : UserdataType
GetStackInfo ( ) : string
GetType ( string str ) : Type
GetValue ( string key ) : ScriptObject
HasValue ( String key ) : bool
LoadBuffer ( String strBreviary, byte buffer ) : ScriptObject
LoadBuffer ( String strBreviary, byte buffer, Encoding encoding ) : ScriptObject
LoadBuffer ( byte buffer ) : ScriptObject
LoadExtension ( Type type ) : void
LoadExtension ( string type ) : void
LoadFile ( String strFileName ) : ScriptObject
LoadFile ( String fileName, Encoding encoding ) : ScriptObject
LoadLibrary ( ) : void
LoadSearchPathFile ( String fileName ) : ScriptObject
LoadString ( String strBuffer ) : ScriptObject
LoadString ( String strBreviary, String strBuffer ) : ScriptObject
LoadTokens ( List tokens ) : ScriptObject
LoadTokens ( String strBreviary, List tokens ) : ScriptObject
LoadType ( string str ) : ScriptObject
PushAssembly ( Assembly assembly ) : void
PushDefine ( string define ) : void
PushFastReflectClass ( Type type, IScorpioFastReflectClass value ) : void
PushSearchPath ( string path ) : void
Script ( ) : System
SetObject ( string key, object value ) : void

Private Methods

Method Description
Load ( String strBreviary, List tokens, ScriptContext context ) : ScriptObject
LoadString ( String strBreviary, String strBuffer, ScriptContext context, bool clearStack ) : ScriptObject
PopStackInfo ( ) : void
PushStackInfo ( ) : void
SetObjectInternal ( string key, ScriptObject value ) : void
SetStackInfo ( StackInfo info ) : void

Method Details

Call() public method

public Call ( String strName ) : object
strName String
return object

Call() public method

public Call ( String strName, ScriptObject args ) : object
strName String
args ScriptObject
return object

ClearStackInfo() public method

public ClearStackInfo ( ) : void
return void

ContainDefine() public method

public ContainDefine ( string define ) : bool
define string
return bool

ContainsFastReflectClass() public method

public ContainsFastReflectClass ( Type type ) : bool
type System.Type
return bool

CreateArray() public method

public CreateArray ( ) : ScriptArray
return ScriptArray

CreateBool() public method

public CreateBool ( bool value ) : ScriptBoolean
value bool
return ScriptBoolean

CreateDouble() public method

public CreateDouble ( double value ) : ScriptNumber
value double
return ScriptNumber

CreateFunction() public method

public CreateFunction ( ScorpioHandle value ) : ScriptFunction
value ScorpioHandle
return ScriptFunction

CreateObject() public method

public CreateObject ( object value ) : ScriptObject
value object
return ScriptObject

CreateString() public method

public CreateString ( string value ) : ScriptString
value string
return ScriptString

CreateTable() public method

public CreateTable ( ) : ScriptTable
return ScriptTable

CreateUserdata() public method

public CreateUserdata ( object obj ) : ScriptUserdata
obj object
return ScriptUserdata

GetCurrentStackInfo() public method

public GetCurrentStackInfo ( ) : StackInfo
return StackInfo

GetDelegate() public method

public GetDelegate ( Type type ) : ScriptUserdata
type Type
return ScriptUserdata

GetEnum() public method

public GetEnum ( Type type ) : ScriptUserdata
type Type
return ScriptUserdata

GetFastReflectClass() public method

public GetFastReflectClass ( Type type ) : IScorpioFastReflectClass
type Type
return IScorpioFastReflectClass

GetGlobalTable() public method

public GetGlobalTable ( ) : ScriptTable
return ScriptTable

GetScorpioType() public method

public GetScorpioType ( Type type ) : UserdataType
type Type
return UserdataType

GetStackInfo() public method

public GetStackInfo ( ) : string
return string

GetType() public method

public GetType ( string str ) : Type
str string
return Type

GetValue() public method

public GetValue ( string key ) : ScriptObject
key string
return ScriptObject

HasValue() public method

public HasValue ( String key ) : bool
key String
return bool

LoadBuffer() public method

public LoadBuffer ( String strBreviary, byte buffer ) : ScriptObject
strBreviary String
buffer byte
return ScriptObject

LoadBuffer() public method

public LoadBuffer ( String strBreviary, byte buffer, Encoding encoding ) : ScriptObject
strBreviary String
buffer byte
encoding Encoding
return ScriptObject

LoadBuffer() public method

public LoadBuffer ( byte buffer ) : ScriptObject
buffer byte
return ScriptObject

LoadExtension() public method

public LoadExtension ( Type type ) : void
type Type
return void

LoadExtension() public method

public LoadExtension ( string type ) : void
type string
return void

LoadFile() public method

public LoadFile ( String strFileName ) : ScriptObject
strFileName String
return ScriptObject

LoadFile() public method

public LoadFile ( String fileName, Encoding encoding ) : ScriptObject
fileName String
encoding Encoding
return ScriptObject

LoadLibrary() public method

public LoadLibrary ( ) : void
return void

LoadSearchPathFile() public method

public LoadSearchPathFile ( String fileName ) : ScriptObject
fileName String
return ScriptObject

LoadString() public method

public LoadString ( String strBuffer ) : ScriptObject
strBuffer String
return ScriptObject

LoadString() public method

public LoadString ( String strBreviary, String strBuffer ) : ScriptObject
strBreviary String
strBuffer String
return ScriptObject

LoadTokens() public method

public LoadTokens ( List tokens ) : ScriptObject
tokens List
return ScriptObject

LoadTokens() public method

public LoadTokens ( String strBreviary, List tokens ) : ScriptObject
strBreviary String
tokens List
return ScriptObject

LoadType() public method

public LoadType ( string str ) : ScriptObject
str string
return ScriptObject

PushAssembly() public method

public PushAssembly ( Assembly assembly ) : void
assembly Assembly
return void

PushDefine() public method

public PushDefine ( string define ) : void
define string
return void

PushFastReflectClass() public method

public PushFastReflectClass ( Type type, IScorpioFastReflectClass value ) : void
type Type
value IScorpioFastReflectClass
return void

PushSearchPath() public method

public PushSearchPath ( string path ) : void
path string
return void

Script() public method

public Script ( ) : System
return System

SetObject() public method

public SetObject ( string key, object value ) : void
key string
value object
return void