C# Class SwfDotNet.IO.ByteCode.CodeWalker

The CodeWalker provides a simple functionality for traversing Action lists by stepping through code and following branches. In opposite to SwfDotNet.IO.ByteCode.CodeTraverser it doesn´t stop until a label is reached that has been visited before or a return statement is found. Action objects are handled by the IActionExaminerer that is passed to the Traverse method. CodeWalker provide a base functionality for code analysis and simulation.
Show file Open project: bladecoding/SwfExport

Public Methods

Method Description
CodeWalker ( ArrayList actions ) : System

Constructor.

Walk ( IActionExaminer examiner ) : void

Start traversing code flow at index 0.

Walk ( IActionExaminer examiner, int index ) : void

Start traversing at given index.

Private Methods

Method Description
Walk ( int index, IActionExaminer examiner, ArrayList visitedLabels ) : void

Method Details

CodeWalker() public method

Constructor.
public CodeWalker ( ArrayList actions ) : System
actions System.Collections.ArrayList ArrayList of BaseAction objects.
return System

Walk() public method

Start traversing code flow at index 0.
public Walk ( IActionExaminer examiner ) : void
examiner IActionExaminer IActionExaminer object
return void

Walk() public method

Start traversing at given index.
public Walk ( IActionExaminer examiner, int index ) : void
examiner IActionExaminer IActionExaminer object
index int start index for code traversation.
return void