C# Class 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
Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

CatchClause() public méthode

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

CatchClause() public méthode

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

CatchClause() public méthode

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

GetBody() public méthode

Returns catch body
public GetBody ( ) : Block
Résultat Block

GetCatchCondition() public méthode

Returns catch condition node, if present
public GetCatchCondition ( ) : AstNode
Résultat AstNode

GetIfPosition() public méthode

Returns position of "if" keyword
public GetIfPosition ( ) : int
Résultat int

GetLp() public méthode

Returns left paren position
public GetLp ( ) : int
Résultat int

GetRp() public méthode

Returns right paren position
public GetRp ( ) : int
Résultat int

GetVarName() public méthode

Returns catch variable node
public GetVarName ( ) : Name
Résultat Name

SetBody() public méthode

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
Résultat void

SetCatchCondition() public méthode

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 /// . ///
Résultat void

SetIfPosition() public méthode

Sets position of "if" keyword
public SetIfPosition ( int ifPosition ) : void
ifPosition int position of "if" keyword, if present, or -1
Résultat void

SetLp() public méthode

Sets left paren position
public SetLp ( int lp ) : void
lp int
Résultat void

SetParens() public méthode

Sets both paren positions
public SetParens ( int lp, int rp ) : void
lp int
rp int
Résultat void

SetRp() public méthode

Sets right paren position
public SetRp ( int rp ) : void
rp int
Résultat void

SetVarName() public méthode

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
Résultat void

ToSource() public méthode

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

Visit() public méthode

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