Lines Matching full:value
46 * Returns the mirror for a specified value or object.
48 * @param {value or Object} value the value or object to retreive the mirror for
51 * @returns {Mirror} the mirror reflects the passed value or object
53 function MakeMirror(value, opt_transient) {
60 if (mirror.value() === value) {
64 if (mirror.isNumber() && isNaN(mirror.value()) &&
65 typeof value == 'number' && isNaN(value)) {
71 if (IS_UNDEFINED(value)) {
73 } else if (IS_NULL(value)) {
75 } else if (IS_BOOLEAN(value)) {
76 mirror = new BooleanMirror(value);
77 } else if (IS_NUMBER(value)) {
78 mirror = new NumberMirror(value);
79 } else if (IS_STRING(value)) {
80 mirror = new StringMirror(value);
81 } else if (IS_ARRAY(value)) {
82 mirror = new ArrayMirror(value);
83 } else if (IS_DATE(value)) {
84 mirror = new DateMirror(value);
85 } else if (IS_FUNCTION(value)) {
86 mirror = new FunctionMirror(value);
87 } else if (IS_REGEXP(value)) {
88 mirror = new RegExpMirror(value);
89 } else if (IS_ERROR(value)) {
90 mirror = new ErrorMirror(value);
91 } else if (IS_SCRIPT(value)) {
92 mirror = new ScriptMirror(value);
94 mirror = new ObjectMirror(value, OBJECT_TYPE, opt_transient);
115 * Returns the mirror for the undefined value.
117 * @returns {Mirror} the mirror reflects the undefined value
234 * Check whether the mirror reflects a value.
235 * @returns {boolean} True if the mirror reflects a value.
243 * Check whether the mirror reflects the undefined value.
244 * @returns {boolean} True if the mirror reflects the undefined value.
252 * Check whether the mirror reflects the null value.
253 * @returns {boolean} True if the mirror reflects the null value
261 * Check whether the mirror reflects a boolean value.
262 * @returns {boolean} True if the mirror reflects a boolean value
270 * Check whether the mirror reflects a number value.
271 * @returns {boolean} True if the mirror reflects a number value
279 * Check whether the mirror reflects a string value.
280 * @returns {boolean} True if the mirror reflects a string value
419 * Base class for all value mirror objects.
421 * @param {value} value The value reflected by this mirror
427 function ValueMirror(type, value, transient) {
429 this.value_ = value;
445 * Check whether this is a primitive value.
446 * @return {boolean} True if the mirror reflects a primitive value
459 * Get the actual value reflected by this mirror.
460 * @return {value} The value reflected by this mirror
462 ValueMirror.prototype.value = function() {
501 * @param {boolean} value The boolean value reflected by this mirror
505 function BooleanMirror(value) {
506 ValueMirror.call(this, BOOLEAN_TYPE, value);
518 * @param {number} value The number value reflected by this mirror
522 function NumberMirror(value) {
523 ValueMirror.call(this, NUMBER_TYPE, value);
535 * @param {string} value The string value reflected by this mirror
539 function StringMirror(value) {
540 ValueMirror.call(this, STRING_TYPE, value);
564 * @param {object} value The object reflected by this mirror
570 function ObjectMirror(value, type, transient) {
571 ValueMirror.call(this, type || OBJECT_TYPE, value, transient);
615 value
687 specified value
714 * Try to find a property from its value.
715 * @param {Mirror} value The property value to look for
716 * @return {PropertyMirror} The property with the specified value. If no
717 * property was found with the specified value UndefinedMirror is returned
719 ObjectMirror.prototype.lookupProperty = function(value) {
722 // Look for property value in properties.
728 if (%_ObjectEquals(property.value_, value.value_)) {
776 * @param {function} value The function object reflected by this mirror.
780 function FunctionMirror(value) {
781 ObjectMirror.call(this, value, FUNCTION_TYPE);
903 * @param {string} value The name for the unresolved function reflected by this
908 function UnresolvedFunctionMirror(value) {
911 ValueMirror.call(this, FUNCTION_TYPE, value);
956 * @param {Array} value The Array object reflected by this mirror
960 function ArrayMirror(value) {
961 ObjectMirror.call(this, value);
978 var value;
980 value = new PropertyMirror(this, i, details);
982 value = GetUndefinedMirror();
984 values[i - from_index] = value;
992 * @param {Date} value The Date object reflected by this mirror
996 function DateMirror(value) {
997 ObjectMirror.call(this, value);
1010 * @param {RegExp} value The RegExp object reflected by this mirror
1014 function RegExpMirror(value) {
1015 ObjectMirror.call(this, value, REGEXP_TYPE);
1031 * @return {boolean} Value of the global flag
1040 * @return {boolean} Value of the ignore case flag
1049 * @return {boolean} Value of the multiline flag
1064 * @param {Error} value The error object reflected by this mirror
1068 function ErrorMirror(value) {
1069 ObjectMirror.call(this, value, ERROR_TYPE);
1148 PropertyMirror.prototype.value = function() {
1154 * Returns whether this property value is an exception.
1155 * @return {booolean} True if this property value is an exception
1261 value
1262 * Locals name, value
1395 // value returned from the VM might be a string if the function for the
1725 ScriptMirror.prototype.value = function() {
1834 * @return {?string} value for //@ sourceURL comment
1909 * Returns a serialization of an object value. The referenced objects are
1977 * be used to display the value in debugger.
1991 o.value = mirror.value();
1994 o.value = mirror.getTruncatedValue(this.maxStringLength_());
2005 o.value = mirror.toText();
2029 // Collect the JSON property/value pairs.
2047 // Boolean values are simply represented by their value.
2048 content.value = mirror.value();
2052 // Number values are simply represented by their value.
2053 content.value = NumberToJSON_(mirror.value());
2057 // String values might have their value cropped to keep down size.
2061 content.value = str;
2065 content.value = mirror.value();
2196 content.value = mirror.value();
2207 this.add_(propertyMirror.value());
2214 this.add_(propertyMirror.value());
2269 var propertyValue = propertyMirror.value();
2271 result.value = this.serializeReferenceWithDisplayData_(propertyValue);
2302 arg.value = this.serializeReference(mirror.argumentValue(i));
2310 local.value = this.serializeReference(mirror.localValue(i));
2342 * Convert a number to a protocol value. For all finite numbers the number
2347 * @param {number} value The number value to convert to a protocol value.
2348 * @returns {number|string} Protocol value.
2350 function NumberToJSON_(value) {
2351 if (isNaN(value)) {
2354 if (!isFinite(value)) {
2355 if (value > 0) {
2361 return value;