]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - API/JSValue.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / API / JSValue.h
index c5a824db0b9f8ee6f06bfb153a50eb0dc14644ce..803d10513a827eab82385b93c7533b74e6a7c8c6 100644 (file)
  from a different JSVirtualMachine will result in an Objective-C exception
  being raised.
 */
-#ifndef JSC_OBJC_API_AVAILABLE_MAC_OS_X_1080
 NS_CLASS_AVAILABLE(10_9, 7_0)
-#else
-OBJC_VISIBLE
-#endif
 @interface JSValue : NSObject
 
 /*!
@@ -380,19 +376,19 @@ OBJC_VISIBLE
 @method
 @abstract Check if a JSValue corresponds to the JavaScript value <code>undefined</code>.
 */ 
-- (BOOL)isUndefined;
+@property (readonly) BOOL isUndefined;
 
 /*!
 @method
 @abstract Check if a JSValue corresponds to the JavaScript value <code>null</code>.
 */
-- (BOOL)isNull;
+@property (readonly) BOOL isNull;
 
 /*!
 @method
 @abstract Check if a JSValue is a boolean.
 */
-- (BOOL)isBoolean;
+@property (readonly) BOOL isBoolean;
 
 /*!
 @method
@@ -401,19 +397,31 @@ OBJC_VISIBLE
  Semantically all numbers behave like doubles except in special cases like bit
  operations. 
 */
-- (BOOL)isNumber;
+@property (readonly) BOOL isNumber;
 
 /*!
 @method
 @abstract Check if a JSValue is a string.
 */
-- (BOOL)isString;
+@property (readonly) BOOL isString;
 
 /*!
 @method
 @abstract Check if a JSValue is an object.
 */
-- (BOOL)isObject;
+@property (readonly) BOOL isObject;
+
+/*!
+@method
+@abstract Check if a JSValue is an array.
+*/ 
+@property (readonly) BOOL isArray NS_AVAILABLE(10_11, 9_0);
+
+/*!
+@method
+@abstract Check if a JSValue is a date.
+*/ 
+@property (readonly) BOOL isDate NS_AVAILABLE(10_11, 9_0);
 
 /*!
 @method