All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.share.srctree.code.method-argument.js Maven / Gradle / Ivy

There is a newer version: 0.10.1
Show newest version
/**
 * @class
 */
sahagin.MethodArgument = function() {
  sahagin.base(this);

  /**
   * @private
   * @type {number}
   */
  this.argIndex = -1;
};
sahagin.inherits(sahagin.MethodArgument, sahagin.Code);

/**
 * @type {string}
 */
sahagin.MethodArgument.TYPE = "arg";

/**
 * @returns {string}
 */
sahagin.MethodArgument.prototype.getType = function() {
  return sahagin.MethodArgument.TYPE;
};

/**
 * @returns {number}
 */
sahagin.MethodArgument.prototype.getArgIndex = function() {
  return this.argIndex;
};

/**
 * @param {number} argIndex
 */
sahagin.MethodArgument.prototype.setArgIndex = function(argIndex) {
    this.argIndex = argIndex;
};

/**
 * @returns {Object.}
 */
sahagin.MethodArgument.prototype.toYamlObject = function() {
  var result = sahagin.base(this, 'toYamlObject');
  result['argIndex'] = this.argIndex;
  return result;
};

/**
 * @param {Object.} yamlObject
 */
sahagin.MethodArgument.prototype.fromYamlObject = function(yamlObject) {
  sahagin.base(this, 'fromYamlObject', yamlObject);
  this.argIndex = sahagin.YamlUtils.getStrValue(yamlObject, 'argIndex');
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy