public abstract class JSString extends java.lang.Object implements JSStringFunctions
hasOwnProperty| Modifier and Type | Field and Description |
|---|---|
protected JSFunction |
constructor
property constructor
|
protected JSNumber |
length
property length
|
JSString |
prototype
property prototype
|
| Modifier and Type | Method and Description |
|---|---|
static JSString |
fromCharCode(JSNumber charCode)
function fromCharCode(charCode1, ...) create a string from character encodings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharAt, charCodeAt, concat, indexOf, lastIndexOf, localeCompare, match, replace, search, slice, split, substring, toLocaleLowerCase, toLocaleUpperCase, toLowerCase, toUpperCasehasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOfprotected JSNumber length
Stringpublic JSString prototype
Stringprotected JSFunction constructor
Functionpublic JSString(JSString s)
s - The value to be stored in a String or converted to a primitive typepublic static JSString fromCharCode(JSNumber charCode)
Example
var s = String.fromCharCode(104,101,108,108,111); //returns the string hello
charCode - Zero or more integers that specify Unicode encodings of the characters in the string to be created.String