C# Class Rhino.Ast.GeneratorExpression

Inheritance: Scope
显示文件 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
AddLoop ( GeneratorExpressionLoop acl ) : void

Adds a child loop node, and sets its parent to this node.

Adds a child loop node, and sets its parent to this node.

GeneratorExpression ( ) : System.Collections.Generic
GeneratorExpression ( int pos ) : System.Collections.Generic
GeneratorExpression ( int pos, int len ) : System.Collections.Generic
GetFilter ( ) : AstNode

Returns filter expression, or null if not present

GetFilterLp ( ) : int

Returns filter left paren position, or -1 if no filter

GetFilterRp ( ) : int

Returns filter right paren position, or -1 if no filter

GetIfPosition ( ) : int

Returns position of 'if' keyword, -1 if not present

GetLoops ( ) : IList

Returns loop list

GetResult ( ) : AstNode

Returns result expression node (just after opening bracket)

SetFilter ( AstNode filter ) : void

Sets filter expression, and sets its parent to this node.

Sets filter expression, and sets its parent to this node. Can be null .

SetFilterLp ( int lp ) : void

Sets filter left paren position, or -1 if no filter

SetFilterRp ( int rp ) : void

Sets filter right paren position, or -1 if no filter

SetIfPosition ( int ifPosition ) : void

Sets position of 'if' keyword

SetLoops ( IList loops ) : void

Sets loop list

SetResult ( AstNode result ) : void

Sets result expression, and sets its parent to this node.

Sets result expression, and sets its parent to this node.

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

Visits this node, the result expression, the loops, and the optional filter.

Visits this node, the result expression, the loops, and the optional filter.

Method Details

AddLoop() public method

Adds a child loop node, and sets its parent to this node.
Adds a child loop node, and sets its parent to this node.
/// if acl is /// null ///
public AddLoop ( GeneratorExpressionLoop acl ) : void
acl GeneratorExpressionLoop
return void

GeneratorExpression() public method

public GeneratorExpression ( ) : System.Collections.Generic
return System.Collections.Generic

GeneratorExpression() public method

public GeneratorExpression ( int pos ) : System.Collections.Generic
pos int
return System.Collections.Generic

GeneratorExpression() public method

public GeneratorExpression ( int pos, int len ) : System.Collections.Generic
pos int
len int
return System.Collections.Generic

GetFilter() public method

Returns filter expression, or null if not present
public GetFilter ( ) : AstNode
return AstNode

GetFilterLp() public method

Returns filter left paren position, or -1 if no filter
public GetFilterLp ( ) : int
return int

GetFilterRp() public method

Returns filter right paren position, or -1 if no filter
public GetFilterRp ( ) : int
return int

GetIfPosition() public method

Returns position of 'if' keyword, -1 if not present
public GetIfPosition ( ) : int
return int

GetLoops() public method

Returns loop list
public GetLoops ( ) : IList
return IList

GetResult() public method

Returns result expression node (just after opening bracket)
public GetResult ( ) : AstNode
return AstNode

SetFilter() public method

Sets filter expression, and sets its parent to this node.
Sets filter expression, and sets its parent to this node. Can be null .
public SetFilter ( AstNode filter ) : void
filter AstNode
return void

SetFilterLp() public method

Sets filter left paren position, or -1 if no filter
public SetFilterLp ( int lp ) : void
lp int
return void

SetFilterRp() public method

Sets filter right paren position, or -1 if no filter
public SetFilterRp ( int rp ) : void
rp int
return void

SetIfPosition() public method

Sets position of 'if' keyword
public SetIfPosition ( int ifPosition ) : void
ifPosition int
return void

SetLoops() public method

Sets loop list
/// if loops is /// null ///
public SetLoops ( IList loops ) : void
loops IList
return void

SetResult() public method

Sets result expression, and sets its parent to this node.
Sets result expression, and sets its parent to this node.
/// if result is /// null ///
public SetResult ( AstNode result ) : void
result AstNode
return void

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

Visits this node, the result expression, the loops, and the optional filter.
Visits this node, the result expression, the loops, and the optional filter.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void