Repository: flex-asjs Updated Branches: refs/heads/feature-autobuild/closure-classpath-sources 4c78873df -> 8bb7b41e3
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/Timer.js ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/Timer.js b/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/Timer.js deleted file mode 100644 index 1246c2e..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/Timer.js +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @fileoverview 'vf2js.utils.Timer' - * - * @author [email protected] (Erik de Bruin) - */ - -'use strict'; - -goog.provide('vf2js.utils.Timer'); - -goog.require('vf2js.events.EventDispatcher'); -goog.require('flash.events.IEventDispatcher'); - - - -/** - * @constructor - * @struct - * @extends {vf2js.events.EventDispatcher} - * @param {Number} arg0 Argument 0 - * @param {number=} opt_arg1 Argument 1 (optional) - */ -vf2js.utils.Timer = function(arg0, opt_arg1) { - vf2js.utils.Timer.base(this, 'constructor'); - - this._delay = arg0; - - opt_arg1 = (opt_arg1 !== undefined) ? opt_arg1 : 10; - this._repeatCount = opt_arg1; - - this._currentCount = 0; -}; -goog.inherits(vf2js.utils.Timer, vf2js.events.EventDispatcher); - - -/** - * Metadata - * - * @type {Object.<string, Array.<Object>>} - */ -vf2js.utils.Timer.prototype.FLEXJS_CLASS_INFO = - { names: [{ name: 'Timer', qName: 'vf2js.utils.Timer'}], - interfaces: [flash.events.IEventDispatcher] }; - - -//------------------------------------------------------------------------------ -// -// PROPERTIES -// -//------------------------------------------------------------------------------ - - -/** - * _currentCount - * - * @private - * - * @type {number} - */ -vf2js.utils.Timer.prototype._currentCount; - - -/** - * _delay - * - * @private - * - * @type {number} - */ -vf2js.utils.Timer.prototype._delay; - - -/** - * delay - * - * @return {number} - */ -vf2js.utils.Timer.prototype.get_delay = function() { - return this._delay; -}; - - -/** - * delay - * - * @type {number} - */ -vf2js.utils.Timer.prototype.set_delay = function(value) { - this._delay = value; -}; - - -/** - * _repeatCount - * - * @private - * - * @type {number} - */ -vf2js.utils.Timer.prototype._repeatCount; - - -//------------------------------------------------------------------------------ -// -// METHODS -// -//------------------------------------------------------------------------------ - - -/** - * _timerEventHandler - * - * @private - */ -vf2js.utils.Timer.prototype._timerEventHandler = function() { - this.dispatchEvent(new flash.events.TimerEvent(flash.events.TimerEvent.TIMER)); - - if (this._running) { - if (this._repeatCount > 0) { - this._currentCount++; - - //console.log("### HERE (dispatch) " + this._currentCount); - if (this._currentCount <= this._repeatCount) { - setTimeout(goog.bind(this._timerEventHandler, this), this._delay); - } else { - this.reset(); - } - } else { - setTimeout(goog.bind(this._timerEventHandler, this), this._delay); - } - } -}; - - -/** - * start - */ -vf2js.utils.Timer.prototype.start = function() { - this._running = true; - - setTimeout(goog.bind(this._timerEventHandler, this), this._delay); - - console.log("$ Timer start"); -}; - - -/** - * reset - */ -vf2js.utils.Timer.prototype.reset = function() { - this.stop(); - - this._currentCount = 0; - - console.log("$ Timer reset"); -}; - - -/** - * stop - */ -vf2js.utils.Timer.prototype.stop = function() { - this._running = false; - - console.log("$ Timer stop"); -}; - - http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/getDefinitionByName.js ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/getDefinitionByName.js b/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/getDefinitionByName.js deleted file mode 100644 index 65a2466..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/assets/vf2js/utils/getDefinitionByName.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @fileoverview 'vf2js.utils.getDefinitionByName' - * - * @author [email protected] (Erik de Bruin) - */ - -'use strict'; - -goog.provide('vf2js.utils.getDefinitionByName'); - - - -/** - * @constructor - * @struct - * @param {string} value The qName of the class. - * @return {Object} A reference to the class. - */ -vf2js.utils.getDefinitionByName = function(value) { - var fullName; - - fullName = value.replace(/::/gi, '.'); - - console.log('VF2JS (vf2js.utils.getDefinitionByName): ' + fullName); - - return eval(fullName + '.prototype'); -}; - - -/** - * Metadata - * - * @type {Object.<string, Array.<Object>>} - */ -vf2js.utils.getDefinitionByName.prototype.FLEXJS_CLASS_INFO = - { names: [{ name: 'getDefinitionByName', qName: 'vf2js.utils.getDefinitionByName'}], - interfaces: [ ] }; - - http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/Utils.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/Utils.as b/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/Utils.as deleted file mode 100644 index 6f54db5..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/Utils.as +++ /dev/null @@ -1,44 +0,0 @@ -package nl.ixms -{ -public final class Utils -{ - public static function cleanClassQName(classQName:String):String { - return classQName. - replace(/\//g, '.'). - replace(/:/g, '.'). - replace(/\.\./g, '.'); - } - - public static function parseType(type:String):String { - var result:String; - - switch (type) { - case 'int' : - case 'uint' : - result = 'number'; - - break; - - case 'Boolean' : - case 'String' : - result = type.toLowerCase(); - - break; - - default : - if (type.indexOf('.') > 0) { - result = Utils.cleanClassQName(type); - } else { - result = type; - } - - break; - } - - return result; - } - - public function Utils() {} - -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/enums/MemberType.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/enums/MemberType.as b/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/enums/MemberType.as deleted file mode 100644 index 77848b8..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/enums/MemberType.as +++ /dev/null @@ -1,62 +0,0 @@ -package nl.ixms.enums -{ - -public class MemberType -{ - - //-------------------------------------------------------------------------- - // - // Class constants - // - //-------------------------------------------------------------------------- - - public static const CONSTANT:MemberType = new MemberType("constants"); - public static const METHOD:MemberType = new MemberType("methods"); - public static const PROPERTY:MemberType = new MemberType("properties"); - public static const STATIC_CONSTANT:MemberType = new MemberType("static_constants"); - public static const STATIC_METHOD:MemberType = new MemberType("static_methods"); - public static const STATIC_PROPERTY:MemberType = new MemberType("static_properties"); - public static const STATIC_VARIABLE:MemberType = new MemberType("static_variables"); - public static const VARIABLE:MemberType = new MemberType("variables"); - - - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - public function MemberType(stringValue:String) { - this.stringValue = stringValue; - } - - - - //-------------------------------------------------------------------------- - // - // Variables - // - //-------------------------------------------------------------------------- - - private var stringValue:String; - - - - //-------------------------------------------------------------------------- - // - // Methods - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // toString - //---------------------------------- - - public function toString():String { - return stringValue; - } - -} - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/Clazz.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/Clazz.as b/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/Clazz.as deleted file mode 100644 index 25149bb..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/Clazz.as +++ /dev/null @@ -1,489 +0,0 @@ -package nl.ixms.vo -{ - -import mx.utils.StringUtil; - -import nl.ixms.Utils; - -import org.as3commons.lang.ClassUtils; -import org.as3commons.reflect.BaseParameter; -import org.as3commons.reflect.Constructor; -import org.as3commons.reflect.Parameter; -import org.as3commons.reflect.Type; - -public final class Clazz -{ - //---------------------------------------------------------------------- - // - // Class Constants - // - //---------------------------------------------------------------------- - - public static const MEMBER_SEPARATOR:String = ';\n\n\n'; - - - - //---------------------------------------------------------------------- - // - // Constants - // - //---------------------------------------------------------------------- - - public function Clazz(type:Type) { - this.type_ = type; - } - - - - //---------------------------------------------------------------------- - // - // Constants - // - //---------------------------------------------------------------------- - - private const ES5_STRICT:String = '\'use strict\';\n\n'; - - private const GOOG_INHERITS:String = 'goog.inherits({0}, {1});'; - - private const GOOG_PROVIDE:String = 'goog.provide(\'{0}\');'; - - private const GOOG_REQUIRE:String = 'goog.require(\'{0}\');'; - - private const JSDOC_FILE_OVERVIEW:String = - '/**\n' + - ' * @fileoverview \'{0}\'\n' + - ' *\n' + - ' * @author [email protected] (Erik de Bruin)\n' + - ' */\n\n'; - - private const JS_BLOCK_COMMENT_MAJOR:String = - '//------------------------------------------------------------------' + - '------------\n' + - '//\n' + - '// {0}\n' + - '//\n' + - '//------------------------------------------------------------------' + - '------------\n\n\n'; - - private const JS_METADATA:String = - '{0}.prototype.FLEXJS_CLASS_INFO =\n' + - ' { names: [{ name: \'{1}\', qName: \'{0}\'}],\n' + - ' interfaces: [{2}] }'; - - private const JS_CONSTRUCTOR:String = '{0} = function({1}) {{3}{2}};{4}\n'; - - - - //---------------------------------------------------------------------- - // - // Properties - // - //---------------------------------------------------------------------- - - //-------------------------------------- - // compositeClazz - //-------------------------------------- - - private var compositeClazz_:Type; - - private var compositeClazzIsSet_:Boolean; - - public function get compositeClazz():Type { - var compositeClazzInterface:String, - compositeClazzNameArr:Array; - - if (!compositeClazzIsSet_) { - if (this.qName.indexOf('flash.') === 0) { - compositeClazzNameArr = compositeClazzName.split('.'); - compositeClazzNameArr[compositeClazzNameArr.length - 1] = 'I' + - compositeClazzNameArr[compositeClazzNameArr.length - 1]; - compositeClazzInterface = compositeClazzNameArr.join('.'); - - compositeClazz_ = Type.forName(compositeClazzInterface); - } - - compositeClazzIsSet_ = true; - } - - return compositeClazz_; - } - - //-------------------------------------- - // compositeClazzName - //-------------------------------------- - - public function get compositeClazzName():String { - return this.qName.replace('flash', 'vf2js'); - } - - //-------------------------------------- - // interfaces - //-------------------------------------- - - private var interfaces_:Array; - - private var interfacesIsSet_:Boolean; - - public function get interfaces():Array { - var i:int, - j:int, - superInterfaces:Array, - superInterfacesClazz:Class; - - if (!interfacesIsSet_) { - interfaces_ = this.type.interfaces; - superInterfacesClazz = ClassUtils.getSuperClass(this.type.clazz); - if (superInterfacesClazz && interfaces_.length > 0) { - superInterfaces = - ClassUtils.getFullyQualifiedImplementedInterfaceNames( - superInterfacesClazz); - if (superInterfaces) { - for (i = interfaces_.length - 1; i > -1; i--) { - for (j = superInterfaces.length - 1; j > -1; j--) { - if (interfaces_[i] === - Utils.cleanClassQName(superInterfaces[j])) { - interfaces_.splice(i, 1); - - break; - } - } - } - } - } - - interfacesIsSet_ = true; - } - - return interfaces_; - } - - //-------------------------------------- - // name - //-------------------------------------- - - private var name_:String; - - public function get name():String { - return name_; - } - - public function set name(value:String):void { - if (name_ === value) { - return; - } - - name_ = value; - } - - //-------------------------------------- - // output - //-------------------------------------- - - private var output_:String; - - public function get output():String { - return output_; - } - - public function set output(value:String):void { - if (output_ === value) { - return; - } - - output_ = value; - } - - //-------------------------------------- - // qName - //-------------------------------------- - - private var qName_:String; - - public function get qName():String { - return qName_; - } - - public function set qName(value:String):void { - if (qName_ === value) { - return; - } - - qName_ = value; - } - - //-------------------------------------- - // requires - //-------------------------------------- - - private var requires_:Array; - - private var requiresIsSet_:Boolean; - - public function get requires():Array { - var i:int, - n:int; - - if (!requiresIsSet_) { - requires_ = []; - - if (superClazz) { - requires_.push(superClazz); - } - - if (compositeClazz) { - requires_.push(compositeClazzName); - } - - for (i = 0, n = interfaces.length; i < n; i++) { - requires_.push(interfaces[i]); - } - - requires_.sort(); - - requiresIsSet_ = true; - } - - return requires_; - } - - //-------------------------------------- - // superClazz - //-------------------------------------- - - private var superClazz_:String; - - private var superClazzIsSet_:Boolean; - - public function get superClazz():String { - if (!superClazzIsSet_) { - if (this.type.extendsClasses.length > 0) { - superClazz_ = - Utils.cleanClassQName(this.type.extendsClasses[0]); - if (superClazz_ === 'Object' && this.qName !== 'Class') { - superClazz_ = 'Class'; - } - } - - superClazzIsSet_ = true; - } - - return superClazz_; - } - - //-------------------------------------- - // type - //-------------------------------------- - - private var type_:Type; - - public function get type():Type { - return type_; - } - - public function set type(value:Type):void { - if (type_ === value) { - return; - } - - type_ = value; - } - - - - //---------------------------------------------------------------------- - // - // Methods - // - //---------------------------------------------------------------------- - - //-------------------------------------- - // addConstructor - //-------------------------------------- - - private function addConstructor():void { - var baseParameter:BaseParameter, - compositeClazzLine:String, - i:int, - n:int, - parameter:Parameter, - parameterName:String, - parameterNames:String, - parameterNamesArray:Array, - parameters:Array, - tmp1:String, - tmp2:String; - - tmp1 = ''; - tmp2 = ''; - - compositeClazzLine = ''; - - if (!this.type) { // function (e.g. flash.utils.getDefinitionByName) - /* - flash.net.navigateToURL - +flash.utils.getDefinitionByName - flash.net.getClassByAlias - flash.utils.flash_proxy - flash.utils.getQualifiedClassName - flash.utils.clearInterval - flash.utils.setTimeout - flash.utils.describeType - flash.utils.getTimer - flash.net.sendToURL - flash.system.fscommand - flash.crypto.generateRandomBytes - flash.utils.setInterval - flash.utils.escapeMultiByte - flash.utils.getQualifiedSuperclassName - flash.utils.unescapeMultiByte - flash.utils.clearTimeout - flash.net.registerClassAlias - mx.core.mx_internal - flash.utils.getAliasName - */ - - baseParameter = new BaseParameter('String', null, false); - parameter = new Parameter(baseParameter, 0); - - parameterName = 'arg0'; - - if (compositeClazz) { - compositeClazzLine = '\n return this.$_implementation = new ' + - compositeClazzName + '(' + parameterName + ');\n'; - } - - this.requires_ = []; - if (compositeClazzName === 'vf2js.utils.getDefinitionByName') { - this.requires_.push(compositeClazzName); - } - this.requiresIsSet_ = true; - this.addGoogRequires(); - - this.output += JSDoc.emitJSDoc(JSDoc.CONSTRUCTOR, '', '', - [parameter]); - - this.output += StringUtil.substitute(JS_CONSTRUCTOR, - [this.qName, - [parameterName], - compositeClazzLine, - tmp1, - tmp2]); - } else { - parameters = Constructor(this.type.constructor).parameters; - - parameterNamesArray = []; - for (i = 0, n = parameters.length; i < n; i++) { - parameterNamesArray.push( - ((Parameter(parameters[i]).isOptional) ? 'opt_' : '') + - 'arg' + i); - } - parameterNames = parameterNamesArray.join(', '); - if (superClazz && !(this.qName === 'Class')) { - tmp1 = '\n ' + this.qName + '.base(this, \'constructor\'' + - ((parameterNamesArray.length > 0) ? ', ' : '') + - parameterNames + ');\n'; - tmp2 = '\n' + StringUtil.substitute(GOOG_INHERITS, - [this.qName, superClazz]); - } - - if (compositeClazz) { - compositeClazzLine = ''; - compositeClazzLine += '\n /**'; - compositeClazzLine += '\n * @type {' + compositeClazzName + '}'; - compositeClazzLine += '\n */'; - compositeClazzLine += '\n this.$_implementation = new ' + - compositeClazzName + '(' + parameterNames + ');\n'; - } - - this.addGoogRequires(); - - this.output += JSDoc.emitJSDoc( - ((this.type.isInterface) ? - JSDoc.INTERFACE : - JSDoc.CONSTRUCTOR), - superClazz, interfaces, parameters); - - this.output += StringUtil.substitute(JS_CONSTRUCTOR, - [this.qName, - parameterNames, - compositeClazzLine, - tmp1, - tmp2]); - } - - this.output += '\n\n'; - - this.addMetaData(); - } - - //-------------------------------------- - // addGoogRequire - //-------------------------------------- - - private function addGoogRequire(qName:String):void { - this.output += StringUtil.substitute(GOOG_REQUIRE, [qName]); - } - - //-------------------------------------- - // addGoogRequires - //-------------------------------------- - - private function addGoogRequires():void { - var i:int, - n:int; - - if (requires[0] !== 'Object') { - this.output += ((requires.length > 0) ? '\n' : ''); - - for (i = 0, n = requires.length; i < n; i++) { - this.addGoogRequire(requires[i]); - this.output += '\n'; - } - } - - this.output += '\n\n\n'; - } - - //-------------------------------------- - // addMajorBlockComment - //-------------------------------------- - - public function addMajorBlockComment(type:String):void { - this.output += StringUtil.substitute(JS_BLOCK_COMMENT_MAJOR, [type]); - } - - //-------------------------------------- - // addMetaData - //-------------------------------------- - - private function addMetaData():void { - this.output += JSDoc.emitJSDoc(JSDoc.METADATA); - - this.output += StringUtil.substitute(JS_METADATA, - [this.qName, this.name, ((interfaces_) ? interfaces_ : [''])]); - - this.output += '\n\n\n'; - } - - //-------------------------------------- - // startOutput - //-------------------------------------- - - public function startOutput():void { - this.output = ''; - - this.output += StringUtil.substitute(JSDOC_FILE_OVERVIEW, - [this.qName_]); - - this.output += ES5_STRICT; - - this.output += StringUtil.substitute(GOOG_PROVIDE, [this.qName_]); - - this.output += '\n'; - - this.addConstructor(); - } - -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/ClazzMemberTypeLists.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/ClazzMemberTypeLists.as b/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/ClazzMemberTypeLists.as deleted file mode 100644 index da2223c..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/ClazzMemberTypeLists.as +++ /dev/null @@ -1,11 +0,0 @@ -package nl.ixms.vo -{ - -public final class ClazzMemberTypeLists -{ - public function ClazzMemberTypeLists() {} - - -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/JSDoc.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/JSDoc.as b/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/JSDoc.as deleted file mode 100644 index 750111b..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/nl/ixms/vo/JSDoc.as +++ /dev/null @@ -1,111 +0,0 @@ -package nl.ixms.vo -{ - -import nl.ixms.Utils; - -import org.as3commons.reflect.Parameter; - -public final class JSDoc -{ - public static const CONSTRUCTOR:String = 'constructor'; - public static const INTERFACE:String = 'interface'; - public static const METADATA:String = 'metadata'; - public static const METHOD:String = 'method'; - public static const FIELD:String = 'field'; - - private static const JSDOC_END:String = ' */\n'; - private static const JSDOC_LINE:String = ' *'; - private static const JSDOC_START:String = '/**\n'; - - public static function emitJSDoc(which:String, ...parameters):String { - var i:int, n:int, parameter:Parameter, result:String; - - result = JSDOC_START; - - switch (which) { - case CONSTRUCTOR : - case INTERFACE : - if (which === INTERFACE) { - result += JSDOC_LINE + ' @interface\n'; - } else { - result += JSDOC_LINE + ' @constructor\n'; - result += JSDOC_LINE + ' @struct\n'; - } - if (parameters[0] && parameters[0] !== '' && parameters[0] !== 'Object') { - result += JSDOC_LINE + ' @extends {' + parameters[0] + '}\n'; - } - if (parameters[1] && parameters[1] !== '') { - for (i = 0, n = parameters[1].length; i < n; i++) { - result += JSDOC_LINE + ' @implements {' + parameters[1][i] + '}\n'; - } - } - if (parameters[2]) { - for (i = 0, n = parameters[2].length; i < n; i++) { - parameter = Parameter(parameters[2][i]); - result += JSDOC_LINE + ' @param {' + - Utils.parseType(parameter.type.name) + - ((parameter.isOptional) ? '=' : '') + - '} ' + - ((parameter.isOptional) ? 'opt_' : '') + - 'arg' + i + - ' Argument ' + i + - ((parameter.isOptional) ? ' (optional)' : '') + - '\n'; - } - } - - break; - - case METADATA : - result += JSDOC_LINE + ' Metadata\n'; - result += JSDOC_LINE + '\n'; - result += JSDOC_LINE + ' @type {Object.<string, Array.<Object>>}\n'; - - break; - - - case METHOD : - result += JSDOC_LINE + ' ' + parameters[0] + '\n'; - - if (parameters[1] && parameters[1].length > 0) { - result += JSDOC_LINE + '\n'; - for (i = 0, n = parameters[1].length; i < n; i++) { - parameter = Parameter(parameters[1][i]); - result += JSDOC_LINE + ' @param {' + - Utils.parseType(parameter.type.name) + - ((parameter.isOptional) ? '=' : '') + - '} ' + - ((parameter.isOptional) ? 'opt_' : '') + - 'arg' + i + - ' Argument ' + i + - ((parameter.isOptional) ? ' (optional)' : '') + - '\n'; - } - } - if (parameters[2]) { - result += JSDOC_LINE + '\n'; - result += JSDOC_LINE + ' @return {' + parameters[2] + '}\n'; - } - - break; - - case FIELD : - result += JSDOC_LINE + ' ' + parameters[0] + '\n'; - result += JSDOC_LINE + '\n'; - result += JSDOC_LINE + ' @type {' + parameters[1] + '}\n'; - - break; - - default : - break; - } - - result += JSDOC_END; - - return result; - }; - - public function JSDoc() {} - -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/shadowInterfaces.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/shadowInterfaces.as b/vf2js/utils/PlayerGlobalToJS/src/shadowInterfaces.as deleted file mode 100644 index 53518ad..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/shadowInterfaces.as +++ /dev/null @@ -1,16 +0,0 @@ - -import vf2js.display.IDisplayObject; vf2js.display.IDisplayObject; -import vf2js.display.IDisplayObjectContainer; vf2js.display.IDisplayObjectContainer; -import vf2js.display.IInteractiveObject; vf2js.display.IInteractiveObject; -import vf2js.display.ILoaderInfo; vf2js.display.ILoaderInfo; -import vf2js.display.IMovieClip; vf2js.display.IMovieClip; -import vf2js.display.ISprite; vf2js.display.ISprite; -import vf2js.display.IStage; vf2js.display.IStage; -import vf2js.events.IEvent; vf2js.events.IEvent; -import vf2js.events.IEventDispatcher; vf2js.events.IEventDispatcher; -import vf2js.events.IProgressEvent; vf2js.events.IProgressEvent; -import vf2js.events.ITimerEvent; vf2js.events.ITimerEvent; -import vf2js.system.ICapabilities; vf2js.system.ICapabilities; -import vf2js.system.IApplicationDomain; vf2js.system.IApplicationDomain; -import vf2js.utils.IgetDefinitionByName; vf2js.utils.IgetDefinitionByName; -import vf2js.utils.ITimer; vf2js.utils.ITimer; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObject.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObject.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObject.as deleted file mode 100644 index 5fd7821..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObject.as +++ /dev/null @@ -1,27 +0,0 @@ -package vf2js.display -{ - -import flash.display.DisplayObject; -import flash.display.DisplayObjectContainer; -import flash.display.LoaderInfo; -import flash.display.Stage; - -public interface IDisplayObject -{ - function get loaderInfo():LoaderInfo; - - function get parent():DisplayObjectContainer; - function set parent(value:DisplayObjectContainer):void; - - function get root():DisplayObject; - - function get stage():Stage; - - function get scaleX():Number; - function set scaleX(value:Number):void; - - function get scaleY():Number; - function set scaleY(value:Number):void; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObjectContainer.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObjectContainer.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObjectContainer.as deleted file mode 100644 index de2298c..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IDisplayObjectContainer.as +++ /dev/null @@ -1,12 +0,0 @@ -package vf2js.display -{ - -import flash.display.DisplayObject; - -public interface IDisplayObjectContainer -{ - function addChild(child:DisplayObject): DisplayObject; - function addChildAt(child:DisplayObject, index:int):DisplayObject; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IInteractiveObject.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IInteractiveObject.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IInteractiveObject.as deleted file mode 100644 index 490355c..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IInteractiveObject.as +++ /dev/null @@ -1,8 +0,0 @@ -package vf2js.display -{ - -public interface IInteractiveObject -{ -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ILoaderInfo.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ILoaderInfo.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ILoaderInfo.as deleted file mode 100644 index c38f38e..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ILoaderInfo.as +++ /dev/null @@ -1,21 +0,0 @@ -package vf2js.display -{ - -import flash.events.Event; - -public interface ILoaderInfo -{ - function get bytesLoaded():uint; - - function get bytesTotal():uint; - - function get height():int; - - function get url():String; - - function get width():int; - - function dispatchEvent(event:Event):void; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IMovieClip.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IMovieClip.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IMovieClip.as deleted file mode 100644 index 61c1b28..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IMovieClip.as +++ /dev/null @@ -1,17 +0,0 @@ -package vf2js.display -{ - -public interface IMovieClip -{ - function get currentFrame():int; - - function get framesLoaded():int; - - function get totalFrames():int; - - function nextFrame():void; - - function stop():void; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ISprite.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ISprite.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ISprite.as deleted file mode 100644 index cab5c41..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/ISprite.as +++ /dev/null @@ -1,8 +0,0 @@ -package vf2js.display -{ - -public interface ISprite -{ -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IStage.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IStage.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IStage.as deleted file mode 100644 index c8c783e..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/display/IStage.as +++ /dev/null @@ -1,26 +0,0 @@ -package vf2js.display -{ - -import flash.events.Event; - -public interface IStage -{ - function get align():String; - function set align(value:String):void; - - function get quality():String; - function set quality(value:String):void; - - function get scaleMode():String; - function set scaleMode(value:String):void; - - function get stageHeight():int; - - function get stageWidth():int; - - function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void; - function dispatchEvent(event:Event):Boolean; - function hasEventListener(type:String):Boolean; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEvent.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEvent.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEvent.as deleted file mode 100644 index d3a5bc4..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEvent.as +++ /dev/null @@ -1,15 +0,0 @@ -package vf2js.events -{ - -public interface IEvent -{ - function get bubbles():Boolean; - - function get cancelable():Boolean; - - function get type():String; - - function toString():String; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEventDispatcher.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEventDispatcher.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEventDispatcher.as deleted file mode 100644 index 620320a..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IEventDispatcher.as +++ /dev/null @@ -1,15 +0,0 @@ -package vf2js.events -{ - -import flash.events.Event; - -public interface IEventDispatcher -{ - function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void; - function dispatchEvent(event:Event):void; - function hasEventListener(type:String):void; - function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void; - function toString():String; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IProgressEvent.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IProgressEvent.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IProgressEvent.as deleted file mode 100644 index 6780d93..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/IProgressEvent.as +++ /dev/null @@ -1,9 +0,0 @@ -package vf2js.events -{ - -public interface IProgressEvent -{ - function toString():String; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/ITimerEvent.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/ITimerEvent.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/ITimerEvent.as deleted file mode 100644 index 1404cd5..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/events/ITimerEvent.as +++ /dev/null @@ -1,9 +0,0 @@ -package vf2js.events -{ - -public interface ITimerEvent -{ - function toString():String; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/IApplicationDomain.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/IApplicationDomain.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/IApplicationDomain.as deleted file mode 100644 index 6fc8d3c..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/IApplicationDomain.as +++ /dev/null @@ -1,10 +0,0 @@ -package vf2js.system -{ - -public interface IApplicationDomain -{ - function getDefinition(name:String):Object; - function hasDefinition(name:String):Boolean; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/ICapabilities.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/ICapabilities.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/ICapabilities.as deleted file mode 100644 index 0e71876..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/system/ICapabilities.as +++ /dev/null @@ -1,17 +0,0 @@ -package vf2js.system -{ - -public interface ICapabilities -{ - function get language():String; - - function get os():String; - - function get playerType():String; - - function get screenDPI():Number; - - function get version():String; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/ITimer.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/ITimer.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/ITimer.as deleted file mode 100644 index 28f830e..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/ITimer.as +++ /dev/null @@ -1,14 +0,0 @@ -package vf2js.utils -{ - -public interface ITimer -{ - function get delay():Number; - function set delay(value:Number):void; - - function reset():void; - function start():void; - function stop():void; -} - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8bb7b41e/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/IgetDefinitionByName.as ---------------------------------------------------------------------- diff --git a/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/IgetDefinitionByName.as b/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/IgetDefinitionByName.as deleted file mode 100644 index 409a77f..0000000 --- a/vf2js/utils/PlayerGlobalToJS/src/vf2js/utils/IgetDefinitionByName.as +++ /dev/null @@ -1,8 +0,0 @@ -package vf2js.utils -{ - -public interface IgetDefinitionByName -{ -} - -} \ No newline at end of file
