/**
 * * 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.
 *
 * Generated by Apache Flex Cross-Compiler from org/apache/flex/reflection/MetaDataDefinition.as
 * org.apache.flex.reflection.MetaDataDefinition
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.flex.reflection.MetaDataDefinition');

goog.require('org.apache.flex.reflection.DefinitionBase');
goog.require('org.apache.flex.reflection.MetaDataArgDefinition');



/**
 * @constructor
 * @extends {org.apache.flex.reflection.DefinitionBase}
 * @param {string} name
 * @param {Object} rawData
 */
org.apache.flex.reflection.MetaDataDefinition = function(name, rawData) {
  org.apache.flex.reflection.MetaDataDefinition.base(this, 'constructor', name, rawData);
};
goog.inherits(org.apache.flex.reflection.MetaDataDefinition, org.apache.flex.reflection.DefinitionBase);


Object.defineProperties(org.apache.flex.reflection.MetaDataDefinition.prototype, /** @lends {org.apache.flex.reflection.MetaDataDefinition.prototype} */ {
/** @export */
args: {
get: /** @this {org.apache.flex.reflection.MetaDataDefinition} */ function() {
  var /** @type {Array} */ results = [];
  
  var /** @type {*} */ rdata = this.rawData;
  if (rdata !== undefined) {
    var /** @type {Array} */ args = rdata.args;
    if (args) {
      var /** @type {number} */ n = args.length;
      var foreachiter0_target = args;
      for (var foreachiter0 in foreachiter0_target) 
      {
      var argDef = foreachiter0_target[foreachiter0];
      
        results.push(new org.apache.flex.reflection.MetaDataArgDefinition(argDef.key, argDef.value));}
      
    }
  }
  return results;
}}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.flex.reflection.MetaDataDefinition.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'MetaDataDefinition', qName: 'org.apache.flex.reflection.MetaDataDefinition'}] };


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.flex.reflection.MetaDataDefinition', org.apache.flex.reflection.MetaDataDefinition);



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.flex.reflection.MetaDataDefinition.prototype.FLEXJS_REFLECTION_INFO = function () {
  return {
    variables: function () {
      return {
      };
    },
    accessors: function () {
      return {
        'args': { type: 'Array', declaredBy: 'org.apache.flex.reflection.MetaDataDefinition'}
      };
    },
    methods: function () {
      return {
        'MetaDataDefinition': { type: '', declaredBy: 'org.apache.flex.reflection.MetaDataDefinition'}
      };
    }
  };
};