C# 클래스 Rhino.Ast.LabeledStatement

A labeled statement.
A labeled statement. A statement can have more than one label. In this AST representation, all labels for a statement are collapsed into the "labels" list of a single LabeledStatement node.

Node type is Rhino.Token.EXPR_VOID .

상속: AstNode
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
AddLabel ( Label label ) : void

Adds a label and sets its parent to this node.

Adds a label and sets its parent to this node.

GetFirstLabel ( ) : Label
GetLabelByName ( string name ) : Label

Returns label with specified name from the label list for this labeled statement.

Returns label with specified name from the label list for this labeled statement. Returns null if there is no label with that name in the list.

GetLabels ( ) : IList

Returns label list

GetStatement ( ) : AstNode

Returns the labeled statement

HasSideEffects ( ) : bool
LabeledStatement ( ) : System.Collections.Generic
LabeledStatement ( int pos ) : System.Collections.Generic
LabeledStatement ( int pos, int len ) : System.Collections.Generic
SetLabels ( IList labels ) : void

Sets label list, setting the parent of each label in the list.

Sets label list, setting the parent of each label in the list. Replaces any existing labels.

SetStatement ( AstNode statement ) : void

Sets the labeled statement, and sets its parent to this node.

Sets the labeled statement, and sets its parent to this node.

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

Visits this node, then each label in the label-list, and finally the statement.

Visits this node, then each label in the label-list, and finally the statement.

메소드 상세

AddLabel() 공개 메소드

Adds a label and sets its parent to this node.
Adds a label and sets its parent to this node.
/// } if label is /// null ///
public AddLabel ( Label label ) : void
label Label
리턴 void

GetFirstLabel() 공개 메소드

public GetFirstLabel ( ) : Label
리턴 Label

GetLabelByName() 공개 메소드

Returns label with specified name from the label list for this labeled statement.
Returns label with specified name from the label list for this labeled statement. Returns null if there is no label with that name in the list.
public GetLabelByName ( string name ) : Label
name string
리턴 Label

GetLabels() 공개 메소드

Returns label list
public GetLabels ( ) : IList
리턴 IList

GetStatement() 공개 메소드

Returns the labeled statement
public GetStatement ( ) : AstNode
리턴 AstNode

HasSideEffects() 공개 메소드

public HasSideEffects ( ) : bool
리턴 bool

LabeledStatement() 공개 메소드

public LabeledStatement ( ) : System.Collections.Generic
리턴 System.Collections.Generic

LabeledStatement() 공개 메소드

public LabeledStatement ( int pos ) : System.Collections.Generic
pos int
리턴 System.Collections.Generic

LabeledStatement() 공개 메소드

public LabeledStatement ( int pos, int len ) : System.Collections.Generic
pos int
len int
리턴 System.Collections.Generic

SetLabels() 공개 메소드

Sets label list, setting the parent of each label in the list.
Sets label list, setting the parent of each label in the list. Replaces any existing labels.
/// } if labels is /// null ///
public SetLabels ( IList labels ) : void
labels IList
리턴 void

SetStatement() 공개 메소드

Sets the labeled statement, and sets its parent to this node.
Sets the labeled statement, and sets its parent to this node.
/// if /// statement /// is /// null ///
public SetStatement ( AstNode statement ) : void
statement AstNode
리턴 void

ToSource() 공개 메소드

public ToSource ( int depth ) : string
depth int
리턴 string

Visit() 공개 메소드

Visits this node, then each label in the label-list, and finally the statement.
Visits this node, then each label in the label-list, and finally the statement.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void