C# Class Rhino.Ast.BreakStatement

A break statement.
A break statement. Node type is Rhino.Token.BREAK .

BreakStatement : break [no LineTerminator here] [Identifier] ;
Inheritance: Jump
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode Description
BreakStatement ( ) : System.Text
BreakStatement ( int pos ) : System.Text
BreakStatement ( int pos, int len ) : System.Text
GetBreakLabel ( ) : Name

Returns the intended label of this break statement

GetBreakTarget ( ) : AstNode

Returns the statement to break to

SetBreakLabel ( Name label ) : void

Sets the intended label of this break statement, e.g.

Sets the intended label of this break statement, e.g. 'foo' in "break foo". Also sets the parent of the label to this node.

SetBreakTarget ( Jump target ) : void

Sets the statement to break to.

Sets the statement to break to.

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

Visits this node, then visits the break label if non- null .

Method Details

BreakStatement() public méthode

public BreakStatement ( ) : System.Text
Résultat System.Text

BreakStatement() public méthode

public BreakStatement ( int pos ) : System.Text
pos int
Résultat System.Text

BreakStatement() public méthode

public BreakStatement ( int pos, int len ) : System.Text
pos int
len int
Résultat System.Text

GetBreakLabel() public méthode

Returns the intended label of this break statement
public GetBreakLabel ( ) : Name
Résultat Name

GetBreakTarget() public méthode

Returns the statement to break to
public GetBreakTarget ( ) : AstNode
Résultat AstNode

SetBreakLabel() public méthode

Sets the intended label of this break statement, e.g.
Sets the intended label of this break statement, e.g. 'foo' in "break foo". Also sets the parent of the label to this node.
public SetBreakLabel ( Name label ) : void
label Name /// the break label, or /// null /// if the statement is /// just the "break" keyword by itself. ///
Résultat void

SetBreakTarget() public méthode

Sets the statement to break to.
Sets the statement to break to.
/// if target is /// null ///
public SetBreakTarget ( Jump target ) : void
target Jump the statement to break to
Résultat void

ToSource() public méthode

public ToSource ( int depth ) : string
depth int
Résultat string

Visit() public méthode

Visits this node, then visits the break label if non- null .
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Résultat void