C# 클래스 Rhino.Ast.IfStatement

If-else statement.
If-else statement. Node type is Rhino.Token.IF .

IfStatement : if ( Expression ) Statement else Statement if ( Expression ) Statement
상속: AstNode
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
GetCondition ( ) : AstNode

Returns if condition

GetElsePart ( ) : AstNode

Returns statement to execute if condition is false

GetElsePosition ( ) : int

Returns position of "else" keyword, or -1

GetLp ( ) : int

Returns left paren offset

GetRp ( ) : int

Returns right paren position, -1 if missing

GetThenPart ( ) : AstNode

Returns statement to execute if condition is true

IfStatement ( ) : System.Text
IfStatement ( int pos ) : System.Text
IfStatement ( int pos, int len ) : System.Text
SetCondition ( AstNode condition ) : void

Sets if condition.

Sets if condition.

SetElsePart ( AstNode elsePart ) : void

Sets statement to execute if condition is false

SetElsePosition ( int elsePosition ) : void

Sets position of "else" keyword, -1 if not present

SetLp ( int lp ) : void

Sets left paren offset

SetParens ( int lp, int rp ) : void

Sets both paren positions

SetRp ( int rp ) : void

Sets right paren position, -1 if missing

SetThenPart ( AstNode thenPart ) : void

Sets statement to execute if condition is true

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

Visits this node, the condition, the then-part, and if supplied, the else-part.

Visits this node, the condition, the then-part, and if supplied, the else-part.

메소드 상세

GetCondition() 공개 메소드

Returns if condition
public GetCondition ( ) : AstNode
리턴 AstNode

GetElsePart() 공개 메소드

Returns statement to execute if condition is false
public GetElsePart ( ) : AstNode
리턴 AstNode

GetElsePosition() 공개 메소드

Returns position of "else" keyword, or -1
public GetElsePosition ( ) : int
리턴 int

GetLp() 공개 메소드

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

GetRp() 공개 메소드

Returns right paren position, -1 if missing
public GetRp ( ) : int
리턴 int

GetThenPart() 공개 메소드

Returns statement to execute if condition is true
public GetThenPart ( ) : AstNode
리턴 AstNode

IfStatement() 공개 메소드

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

IfStatement() 공개 메소드

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

IfStatement() 공개 메소드

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

SetCondition() 공개 메소드

Sets if condition.
Sets if condition.
/// if /// condition /// is /// null /// . ///
public SetCondition ( AstNode condition ) : void
condition AstNode
리턴 void

SetElsePart() 공개 메소드

Sets statement to execute if condition is false
public SetElsePart ( AstNode elsePart ) : void
elsePart AstNode /// statement to execute if condition is false. /// Can be /// null /// . ///
리턴 void

SetElsePosition() 공개 메소드

Sets position of "else" keyword, -1 if not present
public SetElsePosition ( int elsePosition ) : void
elsePosition int
리턴 void

SetLp() 공개 메소드

Sets left paren offset
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, -1 if missing
public SetRp ( int rp ) : void
rp int
리턴 void

SetThenPart() 공개 메소드

Sets statement to execute if condition is true
/// if thenPart is /// null ///
public SetThenPart ( AstNode thenPart ) : void
thenPart AstNode
리턴 void

ToSource() 공개 메소드

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

Visit() 공개 메소드

Visits this node, the condition, the then-part, and if supplied, the else-part.
Visits this node, the condition, the then-part, and if supplied, the else-part.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void