C# Класс Rhino.Ast.ForInLoop

For-in or for-each-in statement.
For-in or for-each-in statement. Node type is Rhino.Token.FOR .

for [each] ( LeftHandSideExpression in Expression ) Statement
for [each] ( var VariableDeclarationNoIn in Expression ) Statement
Наследование: Loop
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
eachPosition int
inPosition int
isForEach bool
iteratedObject AstNode
iterator AstNode

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

Метод Описание
ForInLoop ( ) : System.Text
ForInLoop ( int pos ) : System.Text
ForInLoop ( int pos, int len ) : System.Text
GetEachPosition ( ) : int

Returns position of "each" keyword

GetInPosition ( ) : int

Returns position of "in" keyword

GetIteratedObject ( ) : AstNode

Returns object being iterated over

GetIterator ( ) : AstNode

Returns loop iterator expression

IsForEach ( ) : bool

Returns whether the loop is a for-each loop

SetEachPosition ( int eachPosition ) : void

Sets position of "each" keyword

SetInPosition ( int inPosition ) : void

Sets position of "in" keyword

SetIsForEach ( bool isForEach ) : void

Sets whether the loop is a for-each loop

SetIteratedObject ( AstNode @object ) : void

Sets object being iterated over, and sets its parent to this node.

Sets object being iterated over, and sets its parent to this node.

SetIterator ( AstNode iterator ) : void

Sets loop iterator expression: the part before the "in" keyword.

Sets loop iterator expression: the part before the "in" keyword. Also sets its parent to this node.

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

Visits this node, the iterator, the iterated object, and the body.

Visits this node, the iterator, the iterated object, and the body.

Описание методов

ForInLoop() публичный Метод

public ForInLoop ( ) : System.Text
Результат System.Text

ForInLoop() публичный Метод

public ForInLoop ( int pos ) : System.Text
pos int
Результат System.Text

ForInLoop() публичный Метод

public ForInLoop ( int pos, int len ) : System.Text
pos int
len int
Результат System.Text

GetEachPosition() публичный Метод

Returns position of "each" keyword
public GetEachPosition ( ) : int
Результат int

GetInPosition() публичный Метод

Returns position of "in" keyword
public GetInPosition ( ) : int
Результат int

GetIteratedObject() публичный Метод

Returns object being iterated over
public GetIteratedObject ( ) : AstNode
Результат AstNode

GetIterator() публичный Метод

Returns loop iterator expression
public GetIterator ( ) : AstNode
Результат AstNode

IsForEach() публичный Метод

Returns whether the loop is a for-each loop
public IsForEach ( ) : bool
Результат bool

SetEachPosition() публичный Метод

Sets position of "each" keyword
public SetEachPosition ( int eachPosition ) : void
eachPosition int /// position of "each" keyword, /// or -1 if not present. ///
Результат void

SetInPosition() публичный Метод

Sets position of "in" keyword
public SetInPosition ( int inPosition ) : void
inPosition int /// position of "in" keyword, /// or -1 if not present (e.g. in presence of a syntax error) ///
Результат void

SetIsForEach() публичный Метод

Sets whether the loop is a for-each loop
public SetIsForEach ( bool isForEach ) : void
isForEach bool
Результат void

SetIteratedObject() публичный Метод

Sets object being iterated over, and sets its parent to this node.
Sets object being iterated over, and sets its parent to this node.
/// if /// object /// is /// null ///
public SetIteratedObject ( AstNode @object ) : void
@object AstNode
Результат void

SetIterator() публичный Метод

Sets loop iterator expression: the part before the "in" keyword.
Sets loop iterator expression: the part before the "in" keyword. Also sets its parent to this node.
/// if /// iterator /// is /// null ///
public SetIterator ( AstNode iterator ) : void
iterator AstNode
Результат void

ToSource() публичный Метод

public ToSource ( int depth ) : string
depth int
Результат string

Visit() публичный Метод

Visits this node, the iterator, the iterated object, and the body.
Visits this node, the iterator, the iterated object, and the body.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Результат void

Описание свойств

eachPosition защищенное свойство

protected int eachPosition
Результат int

inPosition защищенное свойство

protected int inPosition
Результат int

isForEach защищенное свойство

protected bool isForEach
Результат bool

iteratedObject защищенное свойство

protected AstNode iteratedObject
Результат AstNode

iterator защищенное свойство

protected AstNode iterator
Результат AstNode