Retrieves the description for the given option. Intended for use by Renderers.

@param option the option to retrieve the description for.
@param index the option index.
@return the description for the given option.
508083
public String getDesc(final Object option, final int index) {
		String desc = "";

		if (option instanceof Option) {
			String optDesc = ((Option) option).getDesc();

			if (optDesc != null) {
				desc = optDesc;
			}
		} else {
			String tableDesc = APPLICATION_LOOKUP_TABLE.getDescription(getLookupTable(), option);

			if (tableDesc != null) {
				desc = tableDesc;
			} else if (option != null) {
				desc = option.toString();
			}
		}

		return I18nUtilities.format(null, desc);
	}
27485
public String format(GeometryIndex index) {
		if (index.hasChild()) {
			return "geometry" + index.getValue() + "." + format(index.getChild());
		}
		switch (index.getType()) {
			case TYPE_VERTEX:
				return "vertex" + index.getValue();
			case TYPE_EDGE:
				return "edge" + index.getValue();
			default:
				return "geometry" + index.getValue();
		}
	}
849317
public static String getXmx(String option) {
        String[] args = option.split(" ");
        for (String s : args) {
            if (s.startsWith("-Xmx")) {
                return s;
            }
        }
        return null;
    }
1262737
public String getString(int index) throws JSONException {
        Object object = this.get(index);
        if (object instanceof String) {
            return (String) object;
        }
        throw new JSONException("JSONArray[" + index + "] not a string.");
    }
316535
public String getDescription(FeatureDescriptor feature) {
        String description = feature.getShortDescription();
        
        if (description == null || 
            description.equals(feature.getDisplayName())) {
            
            description = "";
        }

        return description;
    }
173087
@ApiModelProperty(hidden=true)
    public static Display getDisplay(String option) {
        if ("Optional".equals(option))
            return Display.Optional;
        else if ("Required".equals(option))
            return Display.Required;
        else if ("Read Only".equals(option))
            return Display.ReadOnly;
        else if ("Hidden".equals(option))
            return Display.Hidden;
        else
            return null;
    }
1251545
public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
      int index) {
    return bindings_.get(index);
  }
1298829
public String convertIndexToString(int index)
    {
        String tempString = null;
        if (index == 0)
            tempString = NO;
        else if (index == 1)
            tempString = YES;
        return tempString;
    }
673529
public final String getString(int index)
    {
        Utf8 utf8 = (Utf8) getConstantInfo(index);
        return utf8.getString();
    }
1082623
public Object opt(int index) {
    return (index < 0 || index >= length()) ? null : this.myArrayList.get(index);
  }
99546
public TextView getText(int index) {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getText("+index+")");
		}
		
		return getter.getView(TextView.class, index);
	}
618266
public String getString(int index)
  {
    Object value = _values[index - 1];

    if (value != null) {
      return value.toString();
    }
    else {
      return null;
    }
  }
589575
public com.google.rpc.Help.LinkOrBuilder getLinksOrBuilder(
      int index) {
    return links_.get(index);
  }
1336184
public String getValue(int index) {
    if (index < 0 || index >= indexSet.size())
      return null;
    return attributes.getValue(indexSet.get(index));
  }
520846
public MessageArg get(int index) {
    return index < args.size() ? args.get(index) : null;
  }
1211177
public JList getSectionList (int index)
    {
        @SuppressWarnings("unchecked") JList list = (JList)getComponent(index*2+1);
        return list;
    }
614835
function (option) {
    if (!this.next()) return;

    if (this.current.type === "paragraph") {
      this.results.push({
        name: option,
        description: this.current.text.trim()
      });

      return this.findOption();
    }

    this.findDescription(option);
  }