C# Class 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
Inheritance: Loop
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

ForLoop() public méthode

public ForLoop ( ) : System.Text
Résultat System.Text

ForLoop() public méthode

public ForLoop ( int pos ) : System.Text
pos int
Résultat System.Text

ForLoop() public méthode

public ForLoop ( int pos, int len ) : System.Text
pos int
len int
Résultat System.Text

GetCondition() public méthode

Returns loop condition
public GetCondition ( ) : AstNode
Résultat AstNode

GetIncrement() public méthode

Returns loop increment expression
public GetIncrement ( ) : AstNode
Résultat AstNode

GetInitializer() public méthode

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
Résultat AstNode

SetCondition() public méthode

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. ///
Résultat void

SetIncrement() public méthode

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 /// . ///
Résultat void

SetInitializer() public méthode

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. ///
Résultat void

ToSource() public méthode

public ToSource ( int depth ) : string
depth int
Résultat string

Visit() public méthode

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
Résultat void