groovy.lang.GString
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final String[] |
| Access | Constructor and Description |
|---|---|
| public | GStringImpl(Object[]
the value parts values, String[] the string parts strings)Create a new GString with values and strings. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public int | compareTo(String
the object to be compared. anotherString)Implements java. |
| public int | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public byte[] | |
| public void | |
| public String[] | |
| public int | |
| public int | |
| public int | |
| public int | |
| public String | |
| public boolean | isEmpty()
Overrides default java. true if this character sequence is empty.
|
| public int | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public int | |
| public boolean | |
| public boolean | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String[] | |
| public String[] | |
| public boolean | |
| public boolean | |
| public String | |
| public String | |
| public char[] | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| strings | back to summary |
|---|---|
| private final String[] strings | |
| GStringImpl | back to summary |
|---|---|
| public GStringImpl(Object[] values, String[] strings) Create a new GString with values and strings.
Each value is prefixed by a string, after the last value
an additional String might be used. This means
Note The lengths are not checked. Using different lengths might result in unpredictable behaviour. | |
| codePointAt | back to summary |
|---|---|
| public int codePointAt(int index) | |
| codePointBefore | back to summary |
|---|---|
| public int codePointBefore(int index) | |
| codePointCount | back to summary |
|---|---|
| public int codePointCount(int beginIndex, int endIndex) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(String anotherString) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| compareToIgnoreCase | back to summary |
|---|---|
| public int compareToIgnoreCase(String str) | |
| concat | back to summary |
|---|---|
| public String concat(String str) | |
| contains | back to summary |
|---|---|
| public boolean contains(CharSequence s) | |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(StringBuffer sb) | |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(CharSequence cs) | |
| endsWith | back to summary |
|---|---|
| public boolean endsWith(String suffix) | |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(String anotherString) | |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes(Charset charset) | |
| getChars | back to summary |
|---|---|
| public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) | |
| getStrings | back to summary |
|---|---|
| public String[] getStrings() Implements abstract groovy. Get the strings of this GString. This methods returns the same array as used in the constructor. Changing the values will result in changes of the GString. It is not recommended to do so.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(int ch) | |
| indexOf | back to summary |
|---|---|
| public int indexOf(int ch, int fromIndex) | |
| indexOf | back to summary |
|---|---|
| public int indexOf(String str) | |
| indexOf | back to summary |
|---|---|
| public int indexOf(String str, int fromIndex) | |
| intern | back to summary |
|---|---|
| public String intern() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides default java. Doc from java. Returns
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(int ch) | |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(int ch, int fromIndex) | |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(String str) | |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(String str, int fromIndex) | |
| matches | back to summary |
|---|---|
| public boolean matches(String regex) | |
| offsetByCodePoints | back to summary |
|---|---|
| public int offsetByCodePoints(int index, int codePointOffset) | |
| regionMatches | back to summary |
|---|---|
| public boolean regionMatches(int toffset, String other, int ooffset, int len) | |
| regionMatches | back to summary |
|---|---|
| public boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len) | |
| replace | back to summary |
|---|---|
| public String replace(char oldChar, char newChar) | |
| replace | back to summary |
|---|---|
| public String replace(CharSequence target, CharSequence replacement) | |
| replaceAll | back to summary |
|---|---|
| public String replaceAll(String regex, String replacement) | |
| replaceFirst | back to summary |
|---|---|
| public String replaceFirst(String regex, String replacement) | |
| split | back to summary |
|---|---|
| public String[] split(String regex, int limit) | |
| split | back to summary |
|---|---|
| public String[] split(String regex) | |
| startsWith | back to summary |
|---|---|
| public boolean startsWith(String prefix, int toffset) | |
| startsWith | back to summary |
|---|---|
| public boolean startsWith(String prefix) | |
| substring | back to summary |
|---|---|
| public String substring(int beginIndex) | |
| substring | back to summary |
|---|---|
| public String substring(int beginIndex, int endIndex) | |
| toCharArray | back to summary |
|---|---|
| public char[] toCharArray() | |
| toLowerCase | back to summary |
|---|---|
| public String toLowerCase(Locale locale) | |
| toLowerCase | back to summary |
|---|---|
| public String toLowerCase() | |
| toUpperCase | back to summary |
|---|---|
| public String toUpperCase(Locale locale) | |
| toUpperCase | back to summary |
|---|---|
| public String toUpperCase() | |
| trim | back to summary |
|---|---|
| public String trim() | |