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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JSBooleanhasOwnProperty(java.lang.String name)function hasOwnProperty(name) check whether a property is inherited.JSBooleanisPrototypeOf(JSObject o)function isPrototypeOf(o) is an object the prototype of another?JSBooleanpropertyIsEnumerable(JSObject name)function propertyIsEnumerable(name) will property be seen by for/in loop?JSStringtoLocaleString()function toLocaleString() return an object localized string representation.java.lang.StringtoString()function toString() define an objects string representation.JSObjectvalueOf()function valueOf() the primitive value of a specified object.
-
-
-
Method Detail
-
toString
java.lang.String toString()
function toString() define an objects string representation.- Overrides:
toStringin classjava.lang.Object- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
Object,toLocalString(),valueOf()
-
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:
Object,toString()
-
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:
Object.,toString()
-
hasOwnProperty
JSBoolean hasOwnProperty(java.lang.String name)
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:
Object,propertyIsEnumerable()
-
isPrototypeOf
JSBoolean isPrototypeOf(JSObject o)
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:
Object
-
propertyIsEnumerable
JSBoolean propertyIsEnumerable(JSObject name)
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:
Object,hasOwnProperty(String)
-
-