C# Class Recurity.Swf.AVM1.ActionTry

Blitzableiter ActionTry represents the Adobe AVM1 ActionTry
Inheritance: AbstractAction
Exibir arquivo Open project: rtezli/Blitzableiter

Protected Properties

Property Type Description
_CatchBlockFlag bool
_CatchInRegisterFlag bool
_FinallyBlockFlag bool
_catchName string
_catchRegister byte
_catchSize System.UInt16
_finallySize System.UInt16
_trySize System.UInt16

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

ActionTry() public method

Try defines handlers for exceptional conditions, implementing the ActionScript try, catch, and finally keywords.
public ActionTry ( ) : System
return System

ActionTry() public method

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
return System

Parse() protected method

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
return void

ParseFrom() protected method

Parses the action from a string array
protected ParseFrom ( ) : bool
return bool

Render() protected method

Renders a try statement back to an output stream
protected Render ( System outputStream ) : ulong
outputStream System The output stream
return ulong

ToString() public method

Converts the action to a string
public ToString ( ) : string
return string

Property Details

_CatchBlockFlag protected_oe property

protected bool _CatchBlockFlag
return bool

_CatchInRegisterFlag protected_oe property

protected bool _CatchInRegisterFlag
return bool

_FinallyBlockFlag protected_oe property

protected bool _FinallyBlockFlag
return bool

_catchName protected_oe property

protected string _catchName
return string

_catchRegister protected_oe property

protected byte _catchRegister
return byte

_catchSize protected_oe property

protected UInt16,System _catchSize
return System.UInt16

_finallySize protected_oe property

protected UInt16,System _finallySize
return System.UInt16

_trySize protected_oe property

protected UInt16,System _trySize
return System.UInt16