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

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

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