C# Класс 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.
Показать файл Открыть проект

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

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

Приватные методы

Метод Описание
Walk ( int index, IActionExaminer examiner, ArrayList visitedLabels ) : void

Описание методов

CodeWalker() публичный Метод

Constructor.
public CodeWalker ( ArrayList actions ) : System
actions System.Collections.ArrayList ArrayList of BaseAction objects.
Результат System

Walk() публичный Метод

Start traversing code flow at index 0.
public Walk ( IActionExaminer examiner ) : void
examiner IActionExaminer IActionExaminer object
Результат void

Walk() публичный Метод

Start traversing at given index.
public Walk ( IActionExaminer examiner, int index ) : void
examiner IActionExaminer IActionExaminer object
index int start index for code traversation.
Результат void