C# Class Recurity.Swf.AVM1.ActionTry

Blitzableiter ActionTry represents the Adobe AVM1 ActionTry
Inheritance: AbstractAction
Afficher le fichier Open project: rtezli/Blitzableiter

Protected Properties

Свойство Type Description
_CatchBlockFlag bool
_CatchInRegisterFlag bool
_FinallyBlockFlag bool
_catchName string
_catchRegister byte
_catchSize System.UInt16
_finallySize System.UInt16
_trySize System.UInt16

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

ActionTry() public méthode

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
Résultat System

Parse() protected méthode

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
Résultat void

ParseFrom() protected méthode

Parses the action from a string array
protected ParseFrom ( ) : bool
Résultat bool

Render() protected méthode

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

ToString() public méthode

Converts the action to a string
public ToString ( ) : string
Résultat string

Property Details

_CatchBlockFlag protected_oe property

protected bool _CatchBlockFlag
Résultat bool

_CatchInRegisterFlag protected_oe property

protected bool _CatchInRegisterFlag
Résultat bool

_FinallyBlockFlag protected_oe property

protected bool _FinallyBlockFlag
Résultat bool

_catchName protected_oe property

protected string _catchName
Résultat string

_catchRegister protected_oe property

protected byte _catchRegister
Résultat byte

_catchSize protected_oe property

protected UInt16,System _catchSize
Résultat System.UInt16

_finallySize protected_oe property

protected UInt16,System _finallySize
Résultat System.UInt16

_trySize protected_oe property

protected UInt16,System _trySize
Résultat System.UInt16