C# Class Scorpio.Script

Afficher le fichier Open project: qingfeng346/Scorpio-CSharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Call ( String strName ) : object
strName String
Résultat object

Call() public méthode

public Call ( String strName, ScriptObject args ) : object
strName String
args ScriptObject
Résultat object

ClearStackInfo() public méthode

public ClearStackInfo ( ) : void
Résultat void

ContainDefine() public méthode

public ContainDefine ( string define ) : bool
define string
Résultat bool

ContainsFastReflectClass() public méthode

public ContainsFastReflectClass ( Type type ) : bool
type System.Type
Résultat bool

CreateArray() public méthode

public CreateArray ( ) : ScriptArray
Résultat ScriptArray

CreateBool() public méthode

public CreateBool ( bool value ) : ScriptBoolean
value bool
Résultat ScriptBoolean

CreateDouble() public méthode

public CreateDouble ( double value ) : ScriptNumber
value double
Résultat ScriptNumber

CreateFunction() public méthode

public CreateFunction ( ScorpioHandle value ) : ScriptFunction
value ScorpioHandle
Résultat ScriptFunction

CreateObject() public méthode

public CreateObject ( object value ) : ScriptObject
value object
Résultat ScriptObject

CreateString() public méthode

public CreateString ( string value ) : ScriptString
value string
Résultat ScriptString

CreateTable() public méthode

public CreateTable ( ) : ScriptTable
Résultat ScriptTable

CreateUserdata() public méthode

public CreateUserdata ( object obj ) : ScriptUserdata
obj object
Résultat ScriptUserdata

GetCurrentStackInfo() public méthode

public GetCurrentStackInfo ( ) : StackInfo
Résultat StackInfo

GetDelegate() public méthode

public GetDelegate ( Type type ) : ScriptUserdata
type Type
Résultat ScriptUserdata

GetEnum() public méthode

public GetEnum ( Type type ) : ScriptUserdata
type Type
Résultat ScriptUserdata

GetFastReflectClass() public méthode

public GetFastReflectClass ( Type type ) : IScorpioFastReflectClass
type Type
Résultat IScorpioFastReflectClass

GetGlobalTable() public méthode

public GetGlobalTable ( ) : ScriptTable
Résultat ScriptTable

GetScorpioType() public méthode

public GetScorpioType ( Type type ) : UserdataType
type Type
Résultat UserdataType

GetStackInfo() public méthode

public GetStackInfo ( ) : string
Résultat string

GetType() public méthode

public GetType ( string str ) : Type
str string
Résultat Type

GetValue() public méthode

public GetValue ( string key ) : ScriptObject
key string
Résultat ScriptObject

HasValue() public méthode

public HasValue ( String key ) : bool
key String
Résultat bool

LoadBuffer() public méthode

public LoadBuffer ( String strBreviary, byte buffer ) : ScriptObject
strBreviary String
buffer byte
Résultat ScriptObject

LoadBuffer() public méthode

public LoadBuffer ( String strBreviary, byte buffer, Encoding encoding ) : ScriptObject
strBreviary String
buffer byte
encoding Encoding
Résultat ScriptObject

LoadBuffer() public méthode

public LoadBuffer ( byte buffer ) : ScriptObject
buffer byte
Résultat ScriptObject

LoadExtension() public méthode

public LoadExtension ( Type type ) : void
type Type
Résultat void

LoadExtension() public méthode

public LoadExtension ( string type ) : void
type string
Résultat void

LoadFile() public méthode

public LoadFile ( String strFileName ) : ScriptObject
strFileName String
Résultat ScriptObject

LoadFile() public méthode

public LoadFile ( String fileName, Encoding encoding ) : ScriptObject
fileName String
encoding Encoding
Résultat ScriptObject

LoadLibrary() public méthode

public LoadLibrary ( ) : void
Résultat void

LoadSearchPathFile() public méthode

public LoadSearchPathFile ( String fileName ) : ScriptObject
fileName String
Résultat ScriptObject

LoadString() public méthode

public LoadString ( String strBuffer ) : ScriptObject
strBuffer String
Résultat ScriptObject

LoadString() public méthode

public LoadString ( String strBreviary, String strBuffer ) : ScriptObject
strBreviary String
strBuffer String
Résultat ScriptObject

LoadTokens() public méthode

public LoadTokens ( List tokens ) : ScriptObject
tokens List
Résultat ScriptObject

LoadTokens() public méthode

public LoadTokens ( String strBreviary, List tokens ) : ScriptObject
strBreviary String
tokens List
Résultat ScriptObject

LoadType() public méthode

public LoadType ( string str ) : ScriptObject
str string
Résultat ScriptObject

PushAssembly() public méthode

public PushAssembly ( Assembly assembly ) : void
assembly Assembly
Résultat void

PushDefine() public méthode

public PushDefine ( string define ) : void
define string
Résultat void

PushFastReflectClass() public méthode

public PushFastReflectClass ( Type type, IScorpioFastReflectClass value ) : void
type Type
value IScorpioFastReflectClass
Résultat void

PushSearchPath() public méthode

public PushSearchPath ( string path ) : void
path string
Résultat void

Script() public méthode

public Script ( ) : System
Résultat System

SetObject() public méthode

public SetObject ( string key, object value ) : void
key string
value object
Résultat void