C# 클래스 Rhino.Ast.CatchClause

Node representing a catch-clause of a try-statement.
Node representing a catch-clause of a try-statement. Node type is Rhino.Token.CATCH .
CatchClause : catch ( Identifier [if Expression] ) Block
상속: AstNode
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
CatchClause ( ) : System.Text
CatchClause ( int pos ) : System.Text
CatchClause ( int pos, int len ) : System.Text
GetBody ( ) : Block

Returns catch body

GetCatchCondition ( ) : AstNode

Returns catch condition node, if present

GetIfPosition ( ) : int

Returns position of "if" keyword

GetLp ( ) : int

Returns left paren position

GetRp ( ) : int

Returns right paren position

GetVarName ( ) : Name

Returns catch variable node

SetBody ( Block body ) : void

Sets catch body, and sets its parent to this node.

Sets catch body, and sets its parent to this node.

SetCatchCondition ( AstNode catchCondition ) : void

Sets catch condition node, and sets its parent to this node.

Sets catch condition node, and sets its parent to this node.

SetIfPosition ( int ifPosition ) : void

Sets position of "if" keyword

SetLp ( int lp ) : void

Sets left paren position

SetParens ( int lp, int rp ) : void

Sets both paren positions

SetRp ( int rp ) : void

Sets right paren position

SetVarName ( Name varName ) : void

Sets catch variable node, and sets its parent to this node.

Sets catch variable node, and sets its parent to this node.

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

Visits this node, the catch var name node, the condition if non- null , and the catch body.

메소드 상세

CatchClause() 공개 메소드

public CatchClause ( ) : System.Text
리턴 System.Text

CatchClause() 공개 메소드

public CatchClause ( int pos ) : System.Text
pos int
리턴 System.Text

CatchClause() 공개 메소드

public CatchClause ( int pos, int len ) : System.Text
pos int
len int
리턴 System.Text

GetBody() 공개 메소드

Returns catch body
public GetBody ( ) : Block
리턴 Block

GetCatchCondition() 공개 메소드

Returns catch condition node, if present
public GetCatchCondition ( ) : AstNode
리턴 AstNode

GetIfPosition() 공개 메소드

Returns position of "if" keyword
public GetIfPosition ( ) : int
리턴 int

GetLp() 공개 메소드

Returns left paren position
public GetLp ( ) : int
리턴 int

GetRp() 공개 메소드

Returns right paren position
public GetRp ( ) : int
리턴 int

GetVarName() 공개 메소드

Returns catch variable node
public GetVarName ( ) : Name
리턴 Name

SetBody() 공개 메소드

Sets catch body, and sets its parent to this node.
Sets catch body, and sets its parent to this node.
/// if body is /// null ///
public SetBody ( Block body ) : void
body Block
리턴 void

SetCatchCondition() 공개 메소드

Sets catch condition node, and sets its parent to this node.
Sets catch condition node, and sets its parent to this node.
public SetCatchCondition ( AstNode catchCondition ) : void
catchCondition AstNode /// catch condition node. Can be /// null /// . ///
리턴 void

SetIfPosition() 공개 메소드

Sets position of "if" keyword
public SetIfPosition ( int ifPosition ) : void
ifPosition int position of "if" keyword, if present, or -1
리턴 void

SetLp() 공개 메소드

Sets left paren position
public SetLp ( int lp ) : void
lp int
리턴 void

SetParens() 공개 메소드

Sets both paren positions
public SetParens ( int lp, int rp ) : void
lp int
rp int
리턴 void

SetRp() 공개 메소드

Sets right paren position
public SetRp ( int rp ) : void
rp int
리턴 void

SetVarName() 공개 메소드

Sets catch variable node, and sets its parent to this node.
Sets catch variable node, and sets its parent to this node.
/// if varName is /// null ///
public SetVarName ( Name varName ) : void
varName Name catch variable
리턴 void

ToSource() 공개 메소드

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

Visit() 공개 메소드

Visits this node, the catch var name node, the condition if non- null , and the catch body.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void