Method | Description | |
---|---|---|
AbcCode ( ) : System |
Initializes a new instance of the AbcCode class.
|
|
AddClass ( AS3ClassDef c ) : void |
Adds a class to the code.
|
|
AddMetadata ( string group, string key, string value ) : void |
Add some metadata to this bytecode block.
|
|
AddMultiname ( |
Adds a multiname to the code.
|
|
AddNamespaceSet ( NamespaceSet set ) : void |
Adds a set to the code.
|
|
GenerateClipClassBindingScript ( |
Generates a script that binds a class to a clip.
|
|
GetClass ( int idx ) : AS3ClassDef |
Gets a class from a class index.
|
|
GetNamespaceSet ( int idx ) : NamespaceSet |
Gets a set from a set index.
|
|
MethodProc ( MethodProcessor mp ) : void |
Run code on all methods in this code
|
Method | Description | |
---|---|---|
AddNamespace ( |
||
AddScript ( Script s ) : void |
Adds a script to the code.
|
|
CreateClass ( ) : AS3ClassDef | ||
CreateMethod ( string sourceFile, uint maxStack, uint localCount, uint initScopeDepth, uint maxScopeDepth ) : Method | ||
CreateMultiname ( |
||
CreateNamespace ( |
||
CreateNamespaceSet ( |
||
Disassemble ( ) : void |
When reading code, references to things like functions and methods are all done with indices into arrays. This is a bit restrictive, so after the code is loaded, a call to this will transform all the code to use object references. E.g a reference to constant string number 7, will become a string obejct. This is a first step towards merging abc files together.
|
|
GetClassByQName ( string className ) : AS3ClassDef | ||
GetMetadata ( string key ) : string>.Dictionary |
Gets the metadata associated with a key
|
|
GetMethod ( int idx ) : Method |
Gets a method at a given index
|
|
GetMultiname ( int idx ) : |
||
GetNamespace ( int idx ) : |
||
MarkCodeAsTampered ( ) : void |
At first glance, this does the same as Disassemble(). The difference is that merely disassembling the code doesn't clear out the bytecode that was disassembled. Marking code as tampered disassembles it and then discards the source bytecode, forcing it to require reassembly.
|
|
Op ( |
Technically, from an OO perspective, this isn't the most logical place for this method. It's a factory method for opcodes used when building up new methods, bytecode by bytecode. It's here because this is the place that makes calling it require the least typing, which is good when you're creating lists of loads of these things.
|
|
SetClasses ( AS3ClassDef as3Classes ) : void |
Replaces the classes with a new set of classes
|
|
SetDoubleCount ( uint count ) : void |
Creates a new, sized double constant array
|
|
SetIntCount ( uint count ) : void |
Creates a new, sized integer constant array
|
|
SetMethods ( Method methods ) : void |
Replaces the methods with a new set of methods
|
|
SetMultinames ( |
||
SetNamespaceSets ( NamespaceSet sets ) : void | ||
SetNamespaces ( |
||
SetStringCount ( uint count ) : void |
Creates a new, sized string constant array
|
|
SetUintCount ( uint count ) : void |
Creates a new, sized unsigned integer constant array
|
|
ToStringModelView ( int nest, StringBuilder sb ) : void |
public AddClass ( AS3ClassDef c ) : void | ||
c | AS3ClassDef | The class to add. |
return | void |
public AddMetadata ( string group, string key, string value ) : void | ||
group | string | Data group name |
key | string | Data key name |
value | string | The data value |
return | void |
public AddMultiname ( |
||
mn | The multiname to add. | |
return | void |
public AddNamespaceSet ( NamespaceSet set ) : void | ||
set | NamespaceSet | The set to add. |
return | void |
public GenerateClipClassBindingScript ( |
||
spr | The sprite to create the class for. | |
return | void |
public GetClass ( int idx ) : AS3ClassDef | ||
idx | int | The index of the class, usually found as a parameter /// on some ABC opcode. |
return | AS3ClassDef |
public GetNamespaceSet ( int idx ) : NamespaceSet | ||
idx | int | The index of the set, usually found as a parameter /// on some ABC opcode. |
return | NamespaceSet |
public MethodProc ( MethodProcessor mp ) : void | ||
mp | MethodProcessor | A delegate to run on each method. |
return | void |