Lines Matching full:value
840 function formatHandleReference_(value) {
841 if (value.handle() >= 0) {
842 return '#' + value.handle() + '#';
849 function formatObject_(value, include_properties) {
851 result += formatHandleReference_(value);
854 var ctor = value.constructorFunctionValue();
857 var proto = value.protoObjectValue();
860 result += value.propertyCount();
864 for (var i = 0; i < value.propertyCount(); i++) {
866 result += value.propertyName(i);
868 var property_value = value.propertyValue(i);
996 var value;
998 value = response.bodyValue(lookup_handle);
1000 value = response.bodyValue();
1002 if (value.isObject()) {
1003 result += formatObject_(value, true);
1006 result += value.type();
1007 if (!value.isUndefined() && !value.isNull()) {
1009 if (value.isString()) {
1012 result += value.value();
1013 if (value.isString()) {
1028 var value = response.bodyValue(i);
1029 result += formatObject_(value, false);
1232 var value = this.refs_[handle];
1233 if (value) {
1234 return new ProtocolValue(value, this);
1241 function ProtocolValue(value, packet) {
1242 this.value_ = value;
1248 * Get the value type.
1249 * @return {String} the value type
1257 * Get a metadata field from a protocol value.
1258 * @return {Object} the metadata field value
1266 * Check is the value is a primitive value.
1267 * @return {boolean} true if the value is primitive
1277 * @return {number} the value handle
1285 * Check is the value is undefined.
1286 * @return {boolean} true if the value is undefined
1294 * Check is the value is null.
1295 * @return {boolean} true if the value is null
1303 * Check is the value is a boolean.
1304 * @return {boolean} true if the value is a boolean
1312 * Check is the value is a number.
1313 * @return {boolean} true if the value is a number
1321 * Check is the value is a string.
1322 * @return {boolean} true if the value is a string
1330 * Check is the value is an object.
1331 * @return {boolean} true if the value is an object
1350 * Get the __proto__ value
1351 * @return {ProtocolValue} __proto__ value
1394 * Get the specified property value.
1395 * @return {ProtocolValue} property value
1404 * Check is the value is a string.
1405 * @return {boolean} true if the value is a string
1407 ProtocolValue.prototype.value = function() {
1408 return this.value_.value;
1422 function MakeJSONPair_(name, value) {
1423 return '"' + name + '":' + value;
1437 function BooleanToJSON_(value) {
1438 return String(value);
1442 function NumberToJSON_(value) {
1443 return String(value);
1472 * string.js directly and not through the value.
1473 * @param {String} value The String value to format as JSON
1474 * @return {string} JSON formatted String value
1476 function StringToJSON_(value) {
1479 if (ctrlCharTest_.test(value)) {
1482 value.replace(ctrlCharMatch_, function (char) {
1496 return '"' + value + '"';
1503 * value.
1504 * @param {Date} value The Date value to format as JSON
1505 * @return {string} JSON formatted Date value
1507 function DateToISO8601_(value) {
1514 return builtins.GetUTCFullYearFrom(value) + '-' +
1515 f(builtins.GetUTCMonthFrom(value) + 1) + '-' +
1516 f(builtins.GetUTCDateFrom(value)) + 'T' +
1517 f(builtins.GetUTCHoursFrom(value)) + ':' +
1518 f(builtins.GetUTCMinutesFrom(value)) + ':' +
1519 f(builtins.GetUTCSecondsFrom(value)) + '.' +
1520 g(builtins.GetUTCMillisecondsFrom(value)) + 'Z';
1527 * value.
1528 * @param {Date} value The Date value to format as JSON
1529 * @return {string} JSON formatted Date value
1531 function DateToJSON_(value) {
1532 return '"' + DateToISO8601_(value) + '"';
1545 * @return {string} JSON formatted object value
1554 // Format the value based on its type.
1599 * @return {string} JSON formatted array value