C# 클래스 PclUnit.Constraints.Pieces.ConstraintExpressionBase

ConstraintExpressionBase is the abstract base class for the ConstraintExpression class, which represents a compound constraint in the process of being constructed from a series of syntactic elements. NOTE: ConstraintExpressionBase is separate because the ConstraintExpression class was generated in earlier versions of NUnit. The two classes may be combined in a future version.
파일 보기 프로젝트 열기: jbtule/PclUnit

보호된 프로퍼티들

프로퍼티 타입 설명
builder ConstraintBuilder

공개 메소드들

메소드 설명
Append ( Constraint constraint ) : Constraint

Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built.

Append ( ConstraintOperator op ) : ConstraintExpression

Appends an operator to the expression and returns the resulting expression itself.

Append ( SelfResolvingOperator op ) : ResolvableConstraintExpression

Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression.

ConstraintExpressionBase ( )

Initializes a new instance of the T:ConstraintExpressionBase class.

ConstraintExpressionBase ( ConstraintBuilder builder )

Initializes a new instance of the T:ConstraintExpressionBase class passing in a ConstraintBuilder, which may be pre-populated.

ToString ( ) : string

Returns a string representation of the expression as it currently stands. This should only be used for testing, since it has the side-effect of resolving the expression.

메소드 상세

Append() 공개 메소드

Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built.
public Append ( Constraint constraint ) : Constraint
constraint Constraint
리턴 Constraint

Append() 공개 메소드

Appends an operator to the expression and returns the resulting expression itself.
public Append ( ConstraintOperator op ) : ConstraintExpression
op ConstraintOperator
리턴 ConstraintExpression

Append() 공개 메소드

Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression.
public Append ( SelfResolvingOperator op ) : ResolvableConstraintExpression
op SelfResolvingOperator
리턴 ResolvableConstraintExpression

ConstraintExpressionBase() 공개 메소드

Initializes a new instance of the T:ConstraintExpressionBase class.

ConstraintExpressionBase() 공개 메소드

Initializes a new instance of the T:ConstraintExpressionBase class passing in a ConstraintBuilder, which may be pre-populated.
public ConstraintExpressionBase ( ConstraintBuilder builder )
builder ConstraintBuilder The builder.

ToString() 공개 메소드

Returns a string representation of the expression as it currently stands. This should only be used for testing, since it has the side-effect of resolving the expression.
public ToString ( ) : string
리턴 string

프로퍼티 상세

builder 보호되어 있는 프로퍼티

The ConstraintBuilder holding the elements recognized so far
protected ConstraintBuilder,PclUnit.Constraints.Pieces builder
리턴 ConstraintBuilder