C# Class Rhino.Ast.TryStatement

Try/catch/finally statement.
Try/catch/finally statement. Node type is Rhino.Token.TRY .

TryStatement : try Block Catch try Block Finally try Block Catch Finally Catch : catch ( Identifier ) Block Finally : finally Block
Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode Description
AddCatchClause ( CatchClause clause ) : void

Add a catch-clause to the end of the list, and sets its parent to this node.

Add a catch-clause to the end of the list, and sets its parent to this node.

GetCatchClauses ( ) : IList

Returns list of CatchClause nodes. If there are no catch clauses, returns an immutable empty list.

GetFinallyBlock ( ) : AstNode

Returns finally block, or null if not present

GetFinallyPosition ( ) : int

Returns position of finally keyword, if present, or -1

GetTryBlock ( ) : AstNode
SetCatchClauses ( IList catchClauses ) : void

Sets list of CatchClause nodes. Also sets their parents to this node. May be null . Replaces any existing catch clauses for this node.

SetFinallyBlock ( AstNode finallyBlock ) : void

Sets finally block, and sets its parent to this node.

Sets finally block, and sets its parent to this node. May be null .

SetFinallyPosition ( int finallyPosition ) : void

Sets position of finally keyword, if present, or -1

SetTryBlock ( AstNode tryBlock ) : void

Sets try block.

Sets try block. Also sets its parent to this node.

ToSource ( int depth ) : string
TryStatement ( ) : System.Collections.Generic
TryStatement ( int pos ) : System.Collections.Generic
TryStatement ( int pos, int len ) : System.Collections.Generic
Visit ( NodeVisitor v ) : void

Visits this node, then the try-block, then any catch clauses, and then any finally block.

Visits this node, then the try-block, then any catch clauses, and then any finally block.

Method Details

AddCatchClause() public méthode

Add a catch-clause to the end of the list, and sets its parent to this node.
Add a catch-clause to the end of the list, and sets its parent to this node.
/// } if /// clause /// is /// null ///
public AddCatchClause ( CatchClause clause ) : void
clause CatchClause
Résultat void

GetCatchClauses() public méthode

Returns list of CatchClause nodes. If there are no catch clauses, returns an immutable empty list.
public GetCatchClauses ( ) : IList
Résultat IList

GetFinallyBlock() public méthode

Returns finally block, or null if not present
public GetFinallyBlock ( ) : AstNode
Résultat AstNode

GetFinallyPosition() public méthode

Returns position of finally keyword, if present, or -1
public GetFinallyPosition ( ) : int
Résultat int

GetTryBlock() public méthode

public GetTryBlock ( ) : AstNode
Résultat AstNode

SetCatchClauses() public méthode

Sets list of CatchClause nodes. Also sets their parents to this node. May be null . Replaces any existing catch clauses for this node.
public SetCatchClauses ( IList catchClauses ) : void
catchClauses IList
Résultat void

SetFinallyBlock() public méthode

Sets finally block, and sets its parent to this node.
Sets finally block, and sets its parent to this node. May be null .
public SetFinallyBlock ( AstNode finallyBlock ) : void
finallyBlock AstNode
Résultat void

SetFinallyPosition() public méthode

Sets position of finally keyword, if present, or -1
public SetFinallyPosition ( int finallyPosition ) : void
finallyPosition int
Résultat void

SetTryBlock() public méthode

Sets try block.
Sets try block. Also sets its parent to this node.
/// } if /// tryBlock /// is /// null ///
public SetTryBlock ( AstNode tryBlock ) : void
tryBlock AstNode
Résultat void

ToSource() public méthode

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

TryStatement() public méthode

public TryStatement ( ) : System.Collections.Generic
Résultat System.Collections.Generic

TryStatement() public méthode

public TryStatement ( int pos ) : System.Collections.Generic
pos int
Résultat System.Collections.Generic

TryStatement() public méthode

public TryStatement ( int pos, int len ) : System.Collections.Generic
pos int
len int
Résultat System.Collections.Generic

Visit() public méthode

Visits this node, then the try-block, then any catch clauses, and then any finally block.
Visits this node, then the try-block, then any catch clauses, and then any finally block.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Résultat void