/**
 * * 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/MethodDefinition.as
 * org.apache.flex.reflection.MethodDefinition
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

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

goog.require('org.apache.flex.reflection.DefinitionWithMetaData');
goog.require('org.apache.flex.reflection.TypeDefinition');



/**
 * @constructor
 * @extends {org.apache.flex.reflection.DefinitionWithMetaData}
 * @param {string} name
 * @param {string} declaredBy
 * @param {Object=} rawData
 */
org.apache.flex.reflection.MethodDefinition = function(name, declaredBy, rawData) {
  rawData = typeof rawData !== 'undefined' ? rawData : null;
  org.apache.flex.reflection.MethodDefinition.base(this, 'constructor', name, rawData);
  this._declaredBy = declaredBy;
};
goog.inherits(org.apache.flex.reflection.MethodDefinition, org.apache.flex.reflection.DefinitionWithMetaData);


/**
 * @private
 * @type {string}
 */
org.apache.flex.reflection.MethodDefinition.prototype._declaredBy;


/**
 * @private
 * @type {org.apache.flex.reflection.TypeDefinition}
 */
org.apache.flex.reflection.MethodDefinition.prototype.declaredByDef;


Object.defineProperties(org.apache.flex.reflection.MethodDefinition.prototype, /** @lends {org.apache.flex.reflection.MethodDefinition.prototype} */ {
/** @export */
declaredBy: {
get: /** @this {org.apache.flex.reflection.MethodDefinition} */ function() {
  if (this.declaredByDef == null)
    this.declaredByDef = new org.apache.flex.reflection.TypeDefinition(this._declaredBy);
  return this.declaredByDef;
}}}
);


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


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



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