C# 클래스 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
상속: AstNode
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

AddCatchClause() 공개 메소드

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
리턴 void

GetCatchClauses() 공개 메소드

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

GetFinallyBlock() 공개 메소드

Returns finally block, or null if not present
public GetFinallyBlock ( ) : AstNode
리턴 AstNode

GetFinallyPosition() 공개 메소드

Returns position of finally keyword, if present, or -1
public GetFinallyPosition ( ) : int
리턴 int

GetTryBlock() 공개 메소드

public GetTryBlock ( ) : AstNode
리턴 AstNode

SetCatchClauses() 공개 메소드

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
리턴 void

SetFinallyBlock() 공개 메소드

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
리턴 void

SetFinallyPosition() 공개 메소드

Sets position of finally keyword, if present, or -1
public SetFinallyPosition ( int finallyPosition ) : void
finallyPosition int
리턴 void

SetTryBlock() 공개 메소드

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

ToSource() 공개 메소드

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

TryStatement() 공개 메소드

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

TryStatement() 공개 메소드

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

TryStatement() 공개 메소드

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

Visit() 공개 메소드

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
리턴 void