C# 클래스 IronPython.Runtime.Binding.ConditionalBuilder

Builds up a series of conditionals when the False clause isn't yet known. We can keep appending conditions and if true's. Each subsequent true branch becomes the false branch of the previous condition and body. Finally a non-conditional terminating branch must be added.
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
AddCondition ( Expression condition ) : void

Adds a new condition to the last added body / condition.

AddCondition ( Expression condition, Expression body ) : void

Adds a new conditional and body. The first call this becomes the top-level conditional, subsequent calls will have it added as false statement of the previous conditional.

AddVariable ( System.Linq.Expressions.ParameterExpression var ) : void

Adds a variable which will be scoped at the level of the final expression.

ConditionalBuilder ( ) : System.Linq.Expressions
ConditionalBuilder ( DynamicMetaObjectBinder action ) : System.Linq.Expressions
FinishCondition ( Expression body ) : void

Adds the non-conditional terminating node.

FinishCondition ( Expression body, Type retType ) : void
GetMetaObject ( ) : DynamicMetaObject

Gets the resulting meta object for the full body. FinishCondition must have been called.

메소드 상세

AddCondition() 공개 메소드

Adds a new condition to the last added body / condition.
public AddCondition ( Expression condition ) : void
condition System.Linq.Expressions.Expression
리턴 void

AddCondition() 공개 메소드

Adds a new conditional and body. The first call this becomes the top-level conditional, subsequent calls will have it added as false statement of the previous conditional.
public AddCondition ( Expression condition, Expression body ) : void
condition System.Linq.Expressions.Expression
body System.Linq.Expressions.Expression
리턴 void

AddVariable() 공개 메소드

Adds a variable which will be scoped at the level of the final expression.
public AddVariable ( System.Linq.Expressions.ParameterExpression var ) : void
var System.Linq.Expressions.ParameterExpression
리턴 void

ConditionalBuilder() 공개 메소드

public ConditionalBuilder ( ) : System.Linq.Expressions
리턴 System.Linq.Expressions

ConditionalBuilder() 공개 메소드

public ConditionalBuilder ( DynamicMetaObjectBinder action ) : System.Linq.Expressions
action System.Dynamic.DynamicMetaObjectBinder
리턴 System.Linq.Expressions

FinishCondition() 공개 메소드

Adds the non-conditional terminating node.
public FinishCondition ( Expression body ) : void
body System.Linq.Expressions.Expression
리턴 void

FinishCondition() 공개 메소드

public FinishCondition ( Expression body, Type retType ) : void
body System.Linq.Expressions.Expression
retType System.Type
리턴 void

GetMetaObject() 공개 메소드

Gets the resulting meta object for the full body. FinishCondition must have been called.
public GetMetaObject ( ) : DynamicMetaObject
리턴 System.Dynamic.DynamicMetaObject