| A | |
| addFilePath | |
| addOption, Optparse | |
| addSymbol | |
| C | |
| check | |
| E | |
| elementsLocalNamed, Helpers | |
| elementsNamespaced, Helpers | |
| expandTabs, Helpers | |
| G | |
| generateClass, Helpers | |
| getAS3Registry, ModuleService_1_0 | |
| getCheckFunction, SamHaXeModule | |
| getCidSymbol | |
| getCompatibleVersion, SamHaXeModule | |
| getContext | |
| getDependencyRegistry, ModuleService_1_0 | |
| getDescription, SamHaXeModule | |
| getFlashVersion, ModuleService_1_0 | |
| getHelp, Optparse | |
| getHelpFunction, SamHaXeModule | |
| getIdForHash | |
| getIdForHashSymbolCheck, Helpers | |
| getIdRegistry, ModuleService_1_0 | |
| getImportFunction, SamHaXeModule | |
| getModule, Config | |
| getModuleService, SamHaXe | |
| getModuleUri, Config | |
| getNewId | |
| getSymbolCid | |
| getSymbolRegistry, ModuleService_1_0 | |
| getVariable | |
| getVariableRegistry, ModuleService_1_0 | |
| getXmlNN, Helpers | |
| H | |
| help | |
| I | |
| idExists | |
| import | |
| init, SamHaXeModule | |
| initAllModules, Config | |
| initInterface | |
| initModule | |
| isCompatibleVersion, SamHaXeModule | |
| L | |
| load, Config | |
| M | |
| main | |
| makeWriterStoreConst, Optparse | |
| modules, Config | |
| N | |
| new | |
| O | |
| onelined, Helpers | |
| P | |
| parse, Optparse | |
| R | |
| readerFloat, Optparse | |
| readerInt, Optparse | |
| readerKVArray, Optparse | |
| readerNull, Optparse | |
| readerString, Optparse | |
| runImport |
Adds a new file to the dependency list.
function addFilePath( p: String ): Void
See DependencyRegistry.addFilePath
public function addFilePath( p: String ): Void
Adds a new command line option to the parser.
public function addOption( short: String, long: String, field: String, reader: OptionReader, writer: OptionWriter, ?help: String, ?help_arg: String )
See SymbolRegistry.addSymbol
public function addSymbol( cid: Int, symbol: String, ?store = true ): Void
Adds a symbol to the registry.
function addSymbol( cid: Int, symbol: String, ?store : Bool = true ): Void
Returns all elements with the given localname.
public static function elementsLocalNamed( x : Xml, lname : String )
Returns all elements in a given namespace
public static function elementsNamespaced( x : Xml, ns : String )
Generates a class definition with the given superclass.
public static function generateClass( as3Reg: AS3Registry, className: String, superClassName: String )
Returns the AS3Registry instance for actual frame.
public function getAS3Registry(): AS3Registry
the check function for validating xml fragments, or null if such function is not exported
public function getCheckFunction(): CheckFunction
See SymbolRegistry.getCidSymbol
public function getCidSymbol( cid: Int ): Null<String>
Returns the symbol name for a character ID.
function getCidSymbol( cid: Int ): Null<String>
Looks up the module interface of highest possible version constrained by the required version and the interface versions supported by SamHaXe.
public function getCompatibleVersion( supported_versions: Array<String>, required_version: String ): String
Returns the AS3 context for the actual frame.
function getContext(): format.abc.Context
See AS3Registry.getContext
public function getContext(): format.abc.Context
Returns the DependencyRegistry instance.
public function getDependencyRegistry(): DependencyRegistry
the short description of the module
public function getDescription(): String
Returns the flash version used by the asset library.
public function getFlashVersion() : Int
Generates option usage help from the previously specified help and help_arg paramteres in addOption.
public function getHelp(): StringBuf
the help function for displaying module-specific help message, or null if such function is not exported
public function getHelpFunction(): HelpFunction
Checks and returns if a character ID was already assigned for the given hashed data of the given tag type, or a new unique id if not found.
public function getIdForHash( md5: String, tagId: Int ): BytesIdLookupResult
See IdRegistry.getIdForHash
public function getIdForHash( md5: String, tagId: Int ) : BytesIdLookupResult
Returns a character ID for the given data hash and tag type and checks the availability of the given symbol class.
public static function getIdForHashSymbolCheck( md5: String, tagId: Int, idReg: IdRegistry, ?symbolReg: SymbolRegistry, ?symbol: String ): HashIdSymCheckResult
Returns the IdRegistry instance.
public function getIdRegistry(): IdRegistry
the import function for handling xml fragments
public function getImportFunction(): ImportFunction
Returns the module instance for the given namespace URI.
public function getModule( uri: String ): SamHaXeModule
Returns an instance of requested version of module service.
public function getModuleService( if_version : String ) : Dynamic
Returns the namespace URI for a given module name.
public function getModuleUri( module_name: String ): String
Queries a new characterd ID guaranteed to be unique.
public function getNewId(): Int
See IdRegistry.getNewId
public function getNewId(): Int
See SymbolRegistry.getSymbolCid
public function getSymbolCid( symbol: String ): Int
Returns the character ID for a symbol.
function getSymbolCid( symbol: String ): Int
Returns the SymbolRegistry instance for actual frame.
public function getSymbolRegistry(): SymbolRegistry
See VariableRegistry.getVariable
public function getVariable( name: String ): Dynamic
Retrieves the vaule of a variable.
function getVariable( name: String ): Dynamic
Returns the VariableRegistry instance.
public function getVariableRegistry(): VariableRegistry
Returns the namespace and localname of an Xml.Element
public static function getXmlNN( x : Xml ) : XmlNN
Checks whether a given character ID has already been defined.
public function idExists( id: Int ): Bool
See IdRegistry.idExists
public function idExists( id: Int ): Bool
Initializes the module by selecting and exposing a compatible module interface.
public function init( supported_versions: Array<String>, required_version: String, moduleServices : String -> Dynamic )
Initializes all module instances requested so far.
public function initAllModules()
Initializes the module for the given namespace URI.
public function initModule( uri: String )
Checks if the given module interface version is compatible with the requested.
public function isCompatibleVersion( version: String, req_version: String ): Bool
Loads configuration file.
public function load( config_file: String )
Constant option writer creator.
public static function makeWriterStoreConst( user_const: Dynamic ): Dynamic -> String -> Dynamic -> Void
Returns an iterator over module URIs.
public function modules(): Iterator<String>
Constructor.
public function new( supported_versions: Array<String>, moduleServices : String -> Dynamic )
public function new( msg: String )
Constructor.
public function new()
Constructor
public function new( message: String, arg: String, arg_pos: Int )
Does all the work right now.
public function new()
Constructor
public function new( module_name: String, uri: String )
Removes newlines from the string.
inline public static function onelined( s : String ) : String
Parses the command line arguments according to the previously specified options by addOption.
public function parse( options: Dynamic, args: Array<String>, start: Int = 0 ): Int
Float option reader.
public static function readerFloat( args: Array<String>, act: Int ): ReaderResult
Integer option reader.
public static function readerInt( args: Array<String>, act: Int ): ReaderResult
Key/value pair list option reader.
public static function readerKVArray( args: Array<String>, act: Int ): ReaderResult
Null option reader.
public static function readerNull( args: Array<String>, act: Int ): ReaderResult
String option reader.
public static function readerString( args: Array<String>, act: Int ): ReaderResult
Imports resources described by the asset parameter.
public function runImport( asset : NsFastXml ): Array<SWFTag>
Invokes the import mechanism of the module associated with the asset.
public function runImport( asset: NsFastXml ) : Array<SWFTag>