C# Class Rhino.Ast.Jump

Used for code generation.
Used for code generation. During codegen, the AST is transformed into an Intermediate Representation (IR) in which loops, ifs, switches and other control-flow statements are rewritten as labeled jumps. If the parser is set to IDE-mode, the resulting AST will not contain any instances of this class.
Inheritance: AstNode
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Properties

Property Type Description
target Node

Public Methods

Method Description
GetContinue ( ) : Node
GetDefault ( ) : Node
GetFinally ( ) : Node
GetJumpStatement ( ) : Jump
GetLoop ( ) : Jump
Jump ( ) : System
Jump ( int nodeType ) : System
Jump ( int type, Node child ) : System
Jump ( int type, Node child, int lineno ) : System
Jump ( int type, int lineno ) : System
SetContinue ( Node continueTarget ) : void
SetDefault ( Node defaultTarget ) : void
SetFinally ( Node finallyTarget ) : void
SetJumpStatement ( Rhino jumpStatement ) : void
SetLoop ( Rhino loop ) : void
ToSource ( int depth ) : string
Visit ( NodeVisitor visitor ) : void

Jumps are only used directly during code generation, and do not support this interface.

Jumps are only used directly during code generation, and do not support this interface.

Method Details

GetContinue() public method

public GetContinue ( ) : Node
return Node

GetDefault() public method

public GetDefault ( ) : Node
return Node

GetFinally() public method

public GetFinally ( ) : Node
return Node

GetJumpStatement() public method

public GetJumpStatement ( ) : Jump
return Jump

GetLoop() public method

public GetLoop ( ) : Jump
return Jump

Jump() public method

public Jump ( ) : System
return System

Jump() public method

public Jump ( int nodeType ) : System
nodeType int
return System

Jump() public method

public Jump ( int type, Node child ) : System
type int
child Node
return System

Jump() public method

public Jump ( int type, Node child, int lineno ) : System
type int
child Node
lineno int
return System

Jump() public method

public Jump ( int type, int lineno ) : System
type int
lineno int
return System

SetContinue() public method

public SetContinue ( Node continueTarget ) : void
continueTarget Node
return void

SetDefault() public method

public SetDefault ( Node defaultTarget ) : void
defaultTarget Node
return void

SetFinally() public method

public SetFinally ( Node finallyTarget ) : void
finallyTarget Node
return void

SetJumpStatement() public method

public SetJumpStatement ( Rhino jumpStatement ) : void
jumpStatement Rhino
return void

SetLoop() public method

public SetLoop ( Rhino loop ) : void
loop Rhino
return void

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

Jumps are only used directly during code generation, and do not support this interface.
Jumps are only used directly during code generation, and do not support this interface.
System.NotSupportedException
public Visit ( NodeVisitor visitor ) : void
visitor NodeVisitor
return void

Property Details

target public property

public Node target
return Node