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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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