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
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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