Interface JSObjectFunctions
- All Known Subinterfaces:
E4XGlobalFunctions, E4XXMLFunctions, E4XXMLListFunctions, HistoryFunctions, JS5ArrayFunctions, JS5DateFunctions, JS5FunctionFunctions, JS5ObjectFunctions, JS5StringFunctions, JSArrayFunctions, JSDateFunctions, JSFunctionFunctions, JSGlobalFunctions, JSNumberFunctions, JSRegExpFunctions, JSStringFunctions, LocationFunctions, NavigatorFunctions, WindowFunctions
- All Known Implementing Classes:
BarProp, E4XGlobal, E4XNamespace, E4XQName, E4XXML, E4XXMLList, History, JS5Array, JS5Date, JS5Function, JS5Object, JS5String, JSArray, JSAttr, JSBoolean, JSCDATASection, JSCharacterData, JSComment, JSDate, JSDocument, JSDocumentFragment, JSDocumentType, JSDOMConfiguration, JSDOMImplementation, JSDOMImplementationList, JSDOMImplementationSource, JSDOMLocator, JSDOMStringList, JSElement, JSEntity, JSEntityReference, JSError, JSFunction, JSGlobal, JSHTMLAnchorElement, JSHTMLAppletElement, JSHTMLAreaElement, JSHTMLBaseElement, JSHTMLBaseFontElement, JSHTMLBodyElement, JSHTMLBRElement, JSHTMLButtonElement, JSHTMLCollection, JSHTMLDirectoryElement, JSHTMLDivElement, JSHTMLDListElement, JSHTMLDocument, JSHTMLElement, JSHTMLFieldSetElement, JSHTMLFontElement, JSHTMLFormElement, JSHTMLFrameElement, JSHTMLFrameSetElement, JSHTMLHeadElement, JSHTMLHeadingElement, JSHTMLHRElement, JSHTMLHtmlElement, JSHTMLIFrameElement, JSHTMLImageElement, JSHTMLInputElement, JSHTMLIsIndexElement, JSHTMLLabelElement, JSHTMLLegendElement, JSHTMLLIElement, JSHTMLLinkElement, JSHTMLMapElement, JSHTMLMenuElement, JSHTMLMetaElement, JSHTMLModElement, JSHTMLObjectElement, JSHTMLOListElement, JSHTMLOptGroupElement, JSHTMLOptionElement, JSHTMLOptionsCollection, JSHTMLParagraphElement, JSHTMLParamElement, JSHTMLPreElement, JSHTMLQuoteElement, JSHTMLScriptElement, JSHTMLSelectElement, JSHTMLStyleElement, JSHTMLTableCaptionElement, JSHTMLTableCellElement, JSHTMLTableColElement, JSHTMLTableElement, JSHTMLTableRowElement, JSHTMLTableSectionElement, JSHTMLTextAreaElement, JSHTMLTitleElement, JSHTMLUListElement, JSNamedNodeMap, JSNameList, JSNode, JSNodeList, JSNotation, JSNumber, JSObject, JSProcessingInstruction, JSRegExp, JSString, JSText, JSTypeInfo, JSUserDataHandler, Location, Navigator, Screen, Window
public interface JSObjectFunctions
-
Method Summary
Modifier and TypeMethodDescriptionhasOwnProperty(String name) function hasOwnProperty(name) check whether a property is inherited.function isPrototypeOf(o) is an object the prototype of another?propertyIsEnumerable(JSObject name) function propertyIsEnumerable(name) will property be seen by for/in loop?function toLocaleString() return an object localized string representation.toString()function toString() define an objects string representation.valueOf()function valueOf() the primitive value of a specified object.
-
Method Details
-
toString
-
toLocaleString
JSString toLocaleString()function toLocaleString() return an object localized string representation.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
valueOf
JSObject valueOf()function valueOf() the primitive value of a specified object.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
hasOwnProperty
function hasOwnProperty(name) check whether a property is inherited.Example
var o = new Object(); o.x = 3.14; o.hasOwnProperty("x"); //return true; o has property x. o.hasOwnProperty("y"); //return false; o does not have property y. o.hasOwnProperty("toString"); //return false; o inherits toString.- Parameters:
name- A string that contains the name of a property of object.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
isPrototypeOf
function isPrototypeOf(o) is an object the prototype of another?Example
var o = new Object(); Object.prototype.isPrototypeOf(o); //true: o is an object. Function.prototype.isPrototypeOf(o.toString(); //return true: toString is a function. Array.prototype.isPrototypeOf([1,2,3]; //return true: [1,2,3] is an Array.
- Parameters:
o- Any object- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
propertyIsEnumerable
function propertyIsEnumerable(name) will property be seen by for/in loop?Example
var o = new Object(); o.x = 3.14; o.propertyIsEnumerable("x"); //return true; property x is local and enumerable. o.propertyIsEnumerable("y"); //return false; o does not have property y. o.propertyIsEnumerable("toString"); //return false; o inherits toString.- Parameters:
name- A string that contains the name of a property of object.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-