C# Class IronRuby.Builtins.RubyStruct

Inheritance: RubyObject
ファイルを表示 Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
AddClassMembers void
CreateGetter RuleGenerator
CreateSetter RuleGenerator
GetValue object
RubyStruct System
RubyStruct System
SetValue object

Public Methods

Method Description
Create ( RubyClass rubyClass ) : RubyStruct
DefineStruct ( RubyClass owner, string className, string attributeNames ) : RubyClass
Equals ( BinaryOpStorage eqlStorage, object obj ) : bool
GetHashCode ( UnaryOpStorage hashStorage, ConversionStorage fixnumCast ) : int
GetIndex ( string name ) : int
GetItems ( ) : object>>.IEnumerable
GetMembers ( RubyClass self ) : RubyArray
GetMembers ( RubyStruct self ) : RubyArray
GetNames ( ) : ReadOnlyCollection
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
RubyStruct ( SerializationInfo info, StreamingContext context ) : System
SetValues ( object items ) : void
StructReferenceEquals ( RubyStruct other ) : bool
TryGetIndex ( string name, int &index ) : bool
this ( int index ) : object
this ( string name ) : object

Protected Methods

Method Description
CreateInstance ( ) : RubyObject

Private Methods

Method Description
AddClassMembers ( RubyClass cls, string structMembers ) : void
CreateGetter ( int index ) : RuleGenerator
CreateSetter ( int index ) : RuleGenerator
GetValue ( RubyStruct self, int index ) : object
RubyStruct ( RubyClass rubyClass, bool dummy ) : System
RubyStruct ( RubyClass rubyClass, object data ) : System
SetValue ( RubyStruct self, int index, object value ) : object

Method Details

Create() public static method

public static Create ( RubyClass rubyClass ) : RubyStruct
rubyClass RubyClass
return RubyStruct

CreateInstance() protected method

protected CreateInstance ( ) : RubyObject
return RubyObject

DefineStruct() public static method

public static DefineStruct ( RubyClass owner, string className, string attributeNames ) : RubyClass
owner RubyClass
className string
attributeNames string
return RubyClass

Equals() public method

public Equals ( BinaryOpStorage eqlStorage, object obj ) : bool
eqlStorage BinaryOpStorage
obj object
return bool

GetHashCode() public method

public GetHashCode ( UnaryOpStorage hashStorage, ConversionStorage fixnumCast ) : int
hashStorage UnaryOpStorage
fixnumCast ConversionStorage
return int

GetIndex() public method

public GetIndex ( string name ) : int
name string
return int

GetItems() public method

public GetItems ( ) : object>>.IEnumerable
return object>>.IEnumerable

GetMembers() public static method

public static GetMembers ( RubyClass self ) : RubyArray
self RubyClass
return RubyArray

GetMembers() public static method

public static GetMembers ( RubyStruct self ) : RubyArray
self RubyStruct
return RubyArray

GetNames() public method

public GetNames ( ) : ReadOnlyCollection
return ReadOnlyCollection

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo
context StreamingContext
return void

RubyStruct() public method

public RubyStruct ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
return System

SetValues() public method

public SetValues ( object items ) : void
items object
return void

StructReferenceEquals() public method

public StructReferenceEquals ( RubyStruct other ) : bool
other RubyStruct
return bool

TryGetIndex() public method

public TryGetIndex ( string name, int &index ) : bool
name string
index int
return bool

this() public method

public this ( int index ) : object
index int
return object

this() public method

public this ( string name ) : object
name string
return object