| java.lang.Object com.google.gwt.emul.java.lang.String
Field Summary | |
static JavaScriptObject | hashCache Accesses need to be prefixed with ':' to prevent conflict with built-in
JavaScript properties. |
Method Summary | |
static String | _String() | static String | _String(char value) | static String | _String(char value, int offset, int count) | static String | _String(String other) | static void | __checkBounds(int legalCount, int start, int end) Checks that bounds are correct. | static String[] | __createArray(int numElements) | static String | __translateReplaceString(String replaceStr) This method converts Java-escaped dollar signs "\$" into JavaScript-escaped
dollar signs "$$", and removes all other lone backslashes, which serve as
escapes in Java but are passed through literally in JavaScript. | native public char | charAt(int index) | public int | compareTo(String other) | native public String | concat(String str) | native public boolean | endsWith(String suffix) | public boolean | equals(Object other) | native public boolean | equalsIgnoreCase(String other) | native public int | hashCode() | native public int | indexOf(int ch) | native public int | indexOf(int ch, int startIndex) | native public int | indexOf(String str) | native public int | indexOf(String str, int startIndex) | native public int | lastIndexOf(int ch) | native public int | lastIndexOf(int ch, int startIndex) | native public int | lastIndexOf(String str) | native public int | lastIndexOf(String str, int start) | native public int | length() | native public boolean | matches(String regex) Regular expressions vary from the standard implementation. | native public String | replace(char from, char to) | native public String | replaceAll(String regex, String replace) Regular expressions vary from the standard implementation. | native public String | replaceFirst(String regex, String replace) Regular expressions vary from the standard implementation. | public String[] | split(String regex) Regular expressions vary from the standard implementation. | native public String[] | split(String regex, int maxMatch) Regular expressions vary from the standard implementation. | public boolean | startsWith(String prefix) | public boolean | startsWith(String prefix, int toffset) | public CharSequence | subSequence(int beginIndex, int endIndex) | native public String | substring(int beginIndex) | native public String | substring(int beginIndex, int endIndex) | public char[] | toCharArray() | native public String | toLowerCase() | public String | toString() | native public String | toUpperCase() | native public String | trim() | public static String | valueOf(boolean x) | native public static String | valueOf(char x) | public static String | valueOf(char x, int offset, int count) | native public static String | valueOf(char[] x) | public static String | valueOf(double x) | public static String | valueOf(float x) | public static String | valueOf(int x) | public static String | valueOf(long x) | public static String | valueOf(Object x) |
hashCache | static JavaScriptObject hashCache(Code) | | Accesses need to be prefixed with ':' to prevent conflict with built-in
JavaScript properties.
|
String | public String(char value)(Code) | | |
String | public String(char value, int offset, int count)(Code) | | |
_String | static String _String(char value, int offset, int count)(Code) | | |
__checkBounds | static void __checkBounds(int legalCount, int start, int end)(Code) | | Checks that bounds are correct.
Parameters: legalCount - the end of the legal range Parameters: start - must be >= 0 Parameters: end - must be <= legalCount and must be >= start |
__createArray | static String[] __createArray(int numElements)(Code) | | |
__translateReplaceString | static String __translateReplaceString(String replaceStr)(Code) | | This method converts Java-escaped dollar signs "\$" into JavaScript-escaped
dollar signs "$$", and removes all other lone backslashes, which serve as
escapes in Java but are passed through literally in JavaScript.
|
charAt | native public char charAt(int index)(Code) | | |
equalsIgnoreCase | native public boolean equalsIgnoreCase(String other)(Code) | | |
hashCode | native public int hashCode()(Code) | | |
indexOf | native public int indexOf(int ch)(Code) | | |
indexOf | native public int indexOf(int ch, int startIndex)(Code) | | |
indexOf | native public int indexOf(String str, int startIndex)(Code) | | |
lastIndexOf | native public int lastIndexOf(int ch)(Code) | | |
lastIndexOf | native public int lastIndexOf(int ch, int startIndex)(Code) | | |
lastIndexOf | native public int lastIndexOf(String str, int start)(Code) | | |
length | native public int length()(Code) | | |
matches | native public boolean matches(String regex)(Code) | | Regular expressions vary from the standard implementation. The
regex parameter is interpreted by JavaScript as a JavaScript
regular expression. For consistency, use only the subset of regular
expression syntax common to both Java and JavaScript.
|
replace | native public String replace(char from, char to)(Code) | | |
replaceAll | native public String replaceAll(String regex, String replace)(Code) | | Regular expressions vary from the standard implementation. The
regex parameter is interpreted by JavaScript as a JavaScript
regular expression. For consistency, use only the subset of regular
expression syntax common to both Java and JavaScript.
|
replaceFirst | native public String replaceFirst(String regex, String replace)(Code) | | Regular expressions vary from the standard implementation. The
regex parameter is interpreted by JavaScript as a JavaScript
regular expression. For consistency, use only the subset of regular
expression syntax common to both Java and JavaScript.
|
split | public String[] split(String regex)(Code) | | Regular expressions vary from the standard implementation. The
regex parameter is interpreted by JavaScript as a JavaScript
regular expression. For consistency, use only the subset of regular
expression syntax common to both Java and JavaScript.
|
split | native public String[] split(String regex, int maxMatch)(Code) | | Regular expressions vary from the standard implementation. The
regex parameter is interpreted by JavaScript as a JavaScript
regular expression. For consistency, use only the subset of regular
expression syntax common to both Java and JavaScript.
|
startsWith | public boolean startsWith(String prefix, int toffset)(Code) | | |
substring | native public String substring(int beginIndex)(Code) | | |
substring | native public String substring(int beginIndex, int endIndex)(Code) | | |
toCharArray | public char[] toCharArray()(Code) | | |
valueOf | public static String valueOf(char x, int offset, int count)(Code) | | |
|
|