C# Class IronRuby.Runtime.Calls.RubyMethodInfo

Inheritance: IronRuby.Runtime.Calls.RubyMemberInfo
Exibir arquivo Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
GetArity ( ) : int
GetMembers ( ) : System.Reflection.MemberInfo[]
GetRubyParameterArray ( ) : RubyArray
GetSyntaxTree ( ) : MethodDefinition
RuleControlFlowBuilder ( MetaObjectBuilder metaBuilder, CallArguments args ) : void

Takes current result and wraps it into try-filter(MethodUnwinder)-finally block that ensures correct "break" behavior for Ruby method calls with a block given in arguments. Sets up a RFC frame similarly to MethodDeclaration.

TrySelectOverload ( Type parameterTypes ) : IronRuby.Runtime.Calls.RubyMemberInfo

Protected Methods

Method Description
Copy ( RubyMemberFlags flags, RubyModule module ) : IronRuby.Runtime.Calls.RubyMemberInfo

Private Methods

Method Description
BuildCallNoFlow ( MetaObjectBuilder metaBuilder, CallArguments args, string name ) : void
GetDelegate ( ) : Delegate
GetDispatcher ( Type delegateType, RubyCallSignature signature, object target, int version ) : MemberDispatcher
RubyMethodInfo ( RubyMethodBody body, RubyScope declaringScope, RubyModule declaringModule, RubyMemberFlags flags ) : System

Method Details

Copy() protected method

protected Copy ( RubyMemberFlags flags, RubyModule module ) : IronRuby.Runtime.Calls.RubyMemberInfo
flags RubyMemberFlags
module IronRuby.Builtins.RubyModule
return IronRuby.Runtime.Calls.RubyMemberInfo

GetArity() public method

public GetArity ( ) : int
return int

GetMembers() public method

public GetMembers ( ) : System.Reflection.MemberInfo[]
return System.Reflection.MemberInfo[]

GetRubyParameterArray() public method

public GetRubyParameterArray ( ) : RubyArray
return RubyArray

GetSyntaxTree() public method

public GetSyntaxTree ( ) : MethodDefinition
return IronRuby.Compiler.Ast.MethodDefinition

RuleControlFlowBuilder() public static method

Takes current result and wraps it into try-filter(MethodUnwinder)-finally block that ensures correct "break" behavior for Ruby method calls with a block given in arguments. Sets up a RFC frame similarly to MethodDeclaration.
public static RuleControlFlowBuilder ( MetaObjectBuilder metaBuilder, CallArguments args ) : void
metaBuilder MetaObjectBuilder
args CallArguments
return void

TrySelectOverload() public method

public TrySelectOverload ( Type parameterTypes ) : IronRuby.Runtime.Calls.RubyMemberInfo
parameterTypes System.Type
return IronRuby.Runtime.Calls.RubyMemberInfo