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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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