C# 클래스 Rhino.Ast.ForLoop

C-style for-loop statement.
C-style for-loop statement. Node type is Rhino.Token.FOR .

for ( ExpressionNoInopt; Expressionopt ; Expressionopt ) Statement
for ( var VariableDeclarationListNoIn; Expressionopt ; Expressionopt ) Statement
상속: Loop
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
ForLoop ( ) : System.Text
ForLoop ( int pos ) : System.Text
ForLoop ( int pos, int len ) : System.Text
GetCondition ( ) : AstNode

Returns loop condition

GetIncrement ( ) : AstNode

Returns loop increment expression

GetInitializer ( ) : AstNode

Returns loop initializer variable declaration list.

Returns loop initializer variable declaration list. This is either a VariableDeclaration , an Assignment , or an InfixExpression of type COMMA that chains multiple variable assignments.

SetCondition ( AstNode condition ) : void

Sets loop condition, and sets its parent to this node.

Sets loop condition, and sets its parent to this node.

SetIncrement ( AstNode increment ) : void

Sets loop increment expression, and sets its parent to this node.

Sets loop increment expression, and sets its parent to this node.

SetInitializer ( AstNode initializer ) : void

Sets loop initializer expression, and sets its parent to this node.

Sets loop initializer expression, and sets its parent to this node. Virtually any expression can be in the initializer, so no error-checking is done other than a null -check.

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node, the initializer expression, the loop condition expression, the increment expression, and then the loop body.

Visits this node, the initializer expression, the loop condition expression, the increment expression, and then the loop body.

메소드 상세

ForLoop() 공개 메소드

public ForLoop ( ) : System.Text
리턴 System.Text

ForLoop() 공개 메소드

public ForLoop ( int pos ) : System.Text
pos int
리턴 System.Text

ForLoop() 공개 메소드

public ForLoop ( int pos, int len ) : System.Text
pos int
len int
리턴 System.Text

GetCondition() 공개 메소드

Returns loop condition
public GetCondition ( ) : AstNode
리턴 AstNode

GetIncrement() 공개 메소드

Returns loop increment expression
public GetIncrement ( ) : AstNode
리턴 AstNode

GetInitializer() 공개 메소드

Returns loop initializer variable declaration list.
Returns loop initializer variable declaration list. This is either a VariableDeclaration , an Assignment , or an InfixExpression of type COMMA that chains multiple variable assignments.
public GetInitializer ( ) : AstNode
리턴 AstNode

SetCondition() 공개 메소드

Sets loop condition, and sets its parent to this node.
Sets loop condition, and sets its parent to this node.
/// } if condition is /// null ///
public SetCondition ( AstNode condition ) : void
condition AstNode /// loop condition. Pass an /// EmptyExpression /// if the condition is missing. ///
리턴 void

SetIncrement() 공개 메소드

Sets loop increment expression, and sets its parent to this node.
Sets loop increment expression, and sets its parent to this node.
/// } if increment is /// null ///
public SetIncrement ( AstNode increment ) : void
increment AstNode /// loop increment expression. Pass an /// EmptyExpression /// if increment is /// null /// . ///
리턴 void

SetInitializer() 공개 메소드

Sets loop initializer expression, and sets its parent to this node.
Sets loop initializer expression, and sets its parent to this node. Virtually any expression can be in the initializer, so no error-checking is done other than a null -check.
/// if condition is /// null ///
public SetInitializer ( AstNode initializer ) : void
initializer AstNode /// loop initializer. Pass an /// EmptyExpression /// if the initializer is not specified. ///
리턴 void

ToSource() 공개 메소드

public ToSource ( int depth ) : string
depth int
리턴 string

Visit() 공개 메소드

Visits this node, the initializer expression, the loop condition expression, the increment expression, and then the loop body.
Visits this node, the initializer expression, the loop condition expression, the increment expression, and then the loop body.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void