C# Класс Recurity.Swf.AVM1.ActionTry

Blitzableiter ActionTry represents the Adobe AVM1 ActionTry
Наследование: AbstractAction
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_CatchBlockFlag bool
_CatchInRegisterFlag bool
_FinallyBlockFlag bool
_catchName string
_catchRegister byte
_catchSize System.UInt16
_finallySize System.UInt16
_trySize System.UInt16

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

Метод Описание
ActionTry ( ) : System

Try defines handlers for exceptional conditions, implementing the ActionScript try, catch, and finally keywords.

ActionTry ( bool storeObejct, bool finallyBlock, bool catchBlock, UInt16 trySize, UInt16 catchSize, UInt16 finallySize, string catchVarName, byte catchRegister ) : System

Try defines handlers for exceptional conditions, implementing the ActionScript try, catch, and finally keywords.

ToString ( ) : string

Converts the action to a string

Защищенные методы

Метод Описание
Parse ( System sourceStream, byte sourceVersion ) : void

Parses try statement from a source stream. Quote from Swf spec: "The try, catch, and finally blocks do not use end tags to mark the end of their respective blocks. Instead, the length of a block is set by the TrySize, CatchSize, and FinallySize values." Additionally, see comment in ActionDefineFunction on why the code isn't read here.

ParseFrom ( ) : bool

Parses the action from a string array

Render ( System outputStream ) : ulong

Renders a try statement back to an output stream

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

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

Try defines handlers for exceptional conditions, implementing the ActionScript try, catch, and finally keywords.
public ActionTry ( ) : System
Результат System

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

Try defines handlers for exceptional conditions, implementing the ActionScript try, catch, and finally keywords.
public ActionTry ( bool storeObejct, bool finallyBlock, bool catchBlock, UInt16 trySize, UInt16 catchSize, UInt16 finallySize, string catchVarName, byte catchRegister ) : System
storeObejct bool False - Do not put caught object into register (instead, store in named variable) True - Put caught object into register (do not store in named variable)
finallyBlock bool True - The statement has a finally block. False The statement has no finally block
catchBlock bool True - The statement has a catch block. False The statement has no catch block
trySize System.UInt16 Length of the try block
catchSize System.UInt16 Length of the catch block
finallySize System.UInt16 Length of the finally block
catchVarName string Name of the catch variable
catchRegister byte Register to catch into
Результат System

Parse() защищенный Метод

Parses try statement from a source stream. Quote from Swf spec: "The try, catch, and finally blocks do not use end tags to mark the end of their respective blocks. Instead, the length of a block is set by the TrySize, CatchSize, and FinallySize values." Additionally, see comment in ActionDefineFunction on why the code isn't read here.
protected Parse ( System sourceStream, byte sourceVersion ) : void
sourceStream System The source stream
sourceVersion byte The version
Результат void

ParseFrom() защищенный Метод

Parses the action from a string array
protected ParseFrom ( ) : bool
Результат bool

Render() защищенный Метод

Renders a try statement back to an output stream
protected Render ( System outputStream ) : ulong
outputStream System The output stream
Результат ulong

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

Converts the action to a string
public ToString ( ) : string
Результат string

Описание свойств

_CatchBlockFlag защищенное свойство

protected bool _CatchBlockFlag
Результат bool

_CatchInRegisterFlag защищенное свойство

protected bool _CatchInRegisterFlag
Результат bool

_FinallyBlockFlag защищенное свойство

protected bool _FinallyBlockFlag
Результат bool

_catchName защищенное свойство

protected string _catchName
Результат string

_catchRegister защищенное свойство

protected byte _catchRegister
Результат byte

_catchSize защищенное свойство

protected UInt16,System _catchSize
Результат System.UInt16

_finallySize защищенное свойство

protected UInt16,System _finallySize
Результат System.UInt16

_trySize защищенное свойство

protected UInt16,System _trySize
Результат System.UInt16