C# 클래스 Rakudo.Runtime.CaptureHelper

Provides helper methods for getting stuff into and out of captures, both native ones and user-level ones.
파일 보기 프로젝트 열기: jnthn/6model

공개 메소드들

메소드 설명
FormWith ( ) : RakudoObject

Empty capture former.

FormWith ( RakudoObject PosArgs ) : RakudoObject

Forms a capture from the provided positional arguments.

FormWith ( RakudoObject PosArgs, RakudoObject>.Dictionary NamedArgs ) : RakudoObject

Forms a capture from the provided positional and named arguments.

FormWith ( RakudoObject PosArgs, RakudoObject>.Dictionary NamedArgs, int FlattenSpec ) : RakudoObject

Forms a capture from the provided positional and named arguments and the given flattening spec.

GetNamed ( RakudoObject Capture, string Name ) : RakudoObject

Get a named argument from a capture.

GetPositional ( RakudoObject Capture, int Pos ) : RakudoObject

Get a positional argument from a capture.

GetPositionalAsString ( RakudoObject Capture, int Pos ) : string

Gets a positional and tries to unbox it to the given type. XXX In the future, we can make it call a coercion too, if needed.

Nil ( ) : RakudoObject

XXX This is very wrong...

NumPositionals ( RakudoObject Capture ) : int

Number of positionals.

메소드 상세

FormWith() 공개 정적인 메소드

Empty capture former.
public static FormWith ( ) : RakudoObject
리턴 Rakudo.Metamodel.RakudoObject

FormWith() 공개 정적인 메소드

Forms a capture from the provided positional arguments.
public static FormWith ( RakudoObject PosArgs ) : RakudoObject
PosArgs Rakudo.Metamodel.RakudoObject
리턴 Rakudo.Metamodel.RakudoObject

FormWith() 공개 정적인 메소드

Forms a capture from the provided positional and named arguments.
public static FormWith ( RakudoObject PosArgs, RakudoObject>.Dictionary NamedArgs ) : RakudoObject
PosArgs Rakudo.Metamodel.RakudoObject
NamedArgs RakudoObject>.Dictionary
리턴 Rakudo.Metamodel.RakudoObject

FormWith() 공개 정적인 메소드

Forms a capture from the provided positional and named arguments and the given flattening spec.
public static FormWith ( RakudoObject PosArgs, RakudoObject>.Dictionary NamedArgs, int FlattenSpec ) : RakudoObject
PosArgs Rakudo.Metamodel.RakudoObject
NamedArgs RakudoObject>.Dictionary
FlattenSpec int
리턴 Rakudo.Metamodel.RakudoObject

GetNamed() 공개 정적인 메소드

Get a named argument from a capture.
public static GetNamed ( RakudoObject Capture, string Name ) : RakudoObject
Capture Rakudo.Metamodel.RakudoObject
Name string
리턴 Rakudo.Metamodel.RakudoObject

GetPositional() 공개 정적인 메소드

Get a positional argument from a capture.
public static GetPositional ( RakudoObject Capture, int Pos ) : RakudoObject
Capture Rakudo.Metamodel.RakudoObject
Pos int
리턴 Rakudo.Metamodel.RakudoObject

GetPositionalAsString() 공개 정적인 메소드

Gets a positional and tries to unbox it to the given type. XXX In the future, we can make it call a coercion too, if needed.
public static GetPositionalAsString ( RakudoObject Capture, int Pos ) : string
Capture Rakudo.Metamodel.RakudoObject
Pos int
리턴 string

Nil() 공개 정적인 메소드

XXX This is very wrong...
public static Nil ( ) : RakudoObject
리턴 Rakudo.Metamodel.RakudoObject

NumPositionals() 공개 정적인 메소드

Number of positionals.
public static NumPositionals ( RakudoObject Capture ) : int
Capture Rakudo.Metamodel.RakudoObject
리턴 int