C# Class AjTalk.Machine

显示文件 Open project: ajlopez/AjTalk

Public Methods

Method Description
CreateClass ( string clsname ) : IClass
CreateClass ( string clsname, IClass superclass ) : IClass
CreateClass ( string clsname, IClass superclass, string instancevarnames, string classvarnames ) : IClass
CreateClass ( string clsname, bool isIndexed ) : IClass
CreateNativeBehavior ( IBehavior superclass, Type type ) : IBehavior
GetAssociatedBehavior ( IBehavior behavior ) : IBehavior
GetAssociatedClass ( IClass klass ) : IClass
GetAssociatedMetaClass ( IMetaClass metaklass ) : IMetaClass
GetClass ( string clsname ) : IClass
GetClasses ( ) : ICollection
GetGlobalNames ( ) : ICollection
GetGlobalObject ( string objname ) : object
GetHost ( System.Guid id ) : IHost
GetLocalHosts ( ) : ICollection
GetMetaClass ( string clsname ) : IMetaClass
GetNativeBehavior ( Type type ) : NativeBehavior
GetRemoteHosts ( ) : ICollection
ImportModule ( string modulename ) : void
LoadFile ( string filename ) : void
LoadModule ( string modulename ) : void
Machine ( ) : System
Machine ( bool iscurrent ) : System
RegisterHost ( IHost host ) : void
RegisterNativeBehavior ( Type type, NativeBehavior behavior ) : void
SendMessage ( object obj, string msgname, object args, Interpreter interpreter ) : object
SetCurrent ( ) : void
SetCurrent ( Machine machine ) : void
SetCurrentEnvironmentObject ( string objname, object value ) : void
SetEnvironmentObject ( Context environment, string objname, object value ) : void
SetGlobalObject ( string objname, object value ) : void

Private Methods

Method Description
DefineMetaclass ( IClass metaclass ) : void
GetFilename ( string filename ) : string
GetOrCreateChildEnvironment ( Context environment, string envname ) : Context
IfNil ( Machine machine, object self, object arguments ) : object
IfNotNil ( Machine machine, object self, object arguments ) : object
IsNil ( Machine machine, object self, object arguments ) : object
IsNotNil ( Machine machine, object self, object arguments ) : object

Method Details

CreateClass() public method

public CreateClass ( string clsname ) : IClass
clsname string
return IClass

CreateClass() public method

public CreateClass ( string clsname, IClass superclass ) : IClass
clsname string
superclass IClass
return IClass

CreateClass() public method

public CreateClass ( string clsname, IClass superclass, string instancevarnames, string classvarnames ) : IClass
clsname string
superclass IClass
instancevarnames string
classvarnames string
return IClass

CreateClass() public method

public CreateClass ( string clsname, bool isIndexed ) : IClass
clsname string
isIndexed bool
return IClass

CreateNativeBehavior() public method

public CreateNativeBehavior ( IBehavior superclass, Type type ) : IBehavior
superclass IBehavior
type System.Type
return IBehavior

GetAssociatedBehavior() public method

public GetAssociatedBehavior ( IBehavior behavior ) : IBehavior
behavior IBehavior
return IBehavior

GetAssociatedClass() public method

public GetAssociatedClass ( IClass klass ) : IClass
klass IClass
return IClass

GetAssociatedMetaClass() public method

public GetAssociatedMetaClass ( IMetaClass metaklass ) : IMetaClass
metaklass IMetaClass
return IMetaClass

GetClass() public method

public GetClass ( string clsname ) : IClass
clsname string
return IClass

GetClasses() public method

public GetClasses ( ) : ICollection
return ICollection

GetGlobalNames() public method

public GetGlobalNames ( ) : ICollection
return ICollection

GetGlobalObject() public method

public GetGlobalObject ( string objname ) : object
objname string
return object

GetHost() public method

public GetHost ( System.Guid id ) : IHost
id System.Guid
return IHost

GetLocalHosts() public method

public GetLocalHosts ( ) : ICollection
return ICollection

GetMetaClass() public method

public GetMetaClass ( string clsname ) : IMetaClass
clsname string
return IMetaClass

GetNativeBehavior() public method

public GetNativeBehavior ( Type type ) : NativeBehavior
type System.Type
return NativeBehavior

GetRemoteHosts() public method

public GetRemoteHosts ( ) : ICollection
return ICollection

ImportModule() public method

public ImportModule ( string modulename ) : void
modulename string
return void

LoadFile() public method

public LoadFile ( string filename ) : void
filename string
return void

LoadModule() public method

public LoadModule ( string modulename ) : void
modulename string
return void

Machine() public method

public Machine ( ) : System
return System

Machine() public method

public Machine ( bool iscurrent ) : System
iscurrent bool
return System

RegisterHost() public method

public RegisterHost ( IHost host ) : void
host IHost
return void

RegisterNativeBehavior() public method

public RegisterNativeBehavior ( Type type, NativeBehavior behavior ) : void
type System.Type
behavior NativeBehavior
return void

SendMessage() public method

public SendMessage ( object obj, string msgname, object args, Interpreter interpreter ) : object
obj object
msgname string
args object
interpreter AjTalk.Language.Interpreter
return object

SetCurrent() public method

public SetCurrent ( ) : void
return void

SetCurrent() public static method

public static SetCurrent ( Machine machine ) : void
machine Machine
return void

SetCurrentEnvironmentObject() public method

public SetCurrentEnvironmentObject ( string objname, object value ) : void
objname string
value object
return void

SetEnvironmentObject() public method

public SetEnvironmentObject ( Context environment, string objname, object value ) : void
environment Context
objname string
value object
return void

SetGlobalObject() public method

public SetGlobalObject ( string objname, object value ) : void
objname string
value object
return void