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

The ConstraintOperator class is used internally by a ConstraintBuilder to represent an operator that modifies or combines constraints. Constraint operators use left and right precedence values to determine whether the top operator on the stack should be reduced before pushing a new operator.
파일 보기 프로젝트 열기: jbtule/PclUnit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
left_precedence int
right_precedence int

공개 메소드들

메소드 설명
Reduce ( ConstraintBuilder stack ) : void

Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it.

메소드 상세

Reduce() 공개 추상적인 메소드

Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it.
public abstract Reduce ( ConstraintBuilder stack ) : void
stack ConstraintBuilder
리턴 void

프로퍼티 상세

left_precedence 보호되어 있는 프로퍼티

The precedence value used when the operator is about to be pushed to the stack.
protected int left_precedence
리턴 int

right_precedence 보호되어 있는 프로퍼티

The precedence value used when the operator is on the top of the stack.
protected int right_precedence
리턴 int