Class JSString
- java.lang.Object
-
- org.fife.rsta.ac.js.ecma.api.ecma3.JSString
-
- All Implemented Interfaces:
JSObjectFunctions,JSStringFunctions
- Direct Known Subclasses:
JS5String
public abstract class JSString extends java.lang.Object implements JSStringFunctions
Object String- Since:
- Standard ECMA-262 3rd. Edition
-
-
Field Summary
Fields Modifier and Type Field Description protected JSFunctionconstructorproperty constructorprotected JSNumberlengthproperty lengthJSStringprototypeproperty prototype
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSStringfromCharCode(JSNumber charCode)function fromCharCode(charCode1, ...) create a string from character encodings.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fife.rsta.ac.js.ecma.api.ecma3.functions.JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOf
-
Methods inherited from interface org.fife.rsta.ac.js.ecma.api.ecma3.functions.JSStringFunctions
charAt, charCodeAt, concat, indexOf, lastIndexOf, localeCompare, match, replace, search, slice, split, substring, toLocaleLowerCase, toLocaleUpperCase, toLowerCase, toUpperCase
-
-
-
-
Field Detail
-
length
protected JSNumber length
property length- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
String
-
prototype
public JSString prototype
property prototype- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
String
-
constructor
protected JSFunction constructor
property constructor- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
Function
-
-
Constructor Detail
-
JSString
public JSString(JSString s)
Object String(s)- Parameters:
s- The value to be stored in a String or converted to a primitive type- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
-
-
Method Detail
-
fromCharCode
public static JSString fromCharCode(JSNumber charCode)
function fromCharCode(charCode1, ...) create a string from character encodings.Example
var s = String.fromCharCode(104,101,108,108,111); //returns the string hello
- Parameters:
charCode- Zero or more integers that specify Unicode encodings of the characters in the string to be created.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
String
-
-