Return type | Name and parameters |
---|---|
Object
|
asType(Class c)
Converts the GString to a File, or delegates to the default DefaultGroovyMethods#asType(Object,Class). |
String
|
drop(int num)
A GString variant of the equivalent CharSequence method. |
String
|
dropRight(int num)
A GString variant of the equivalent CharSequence method CharSequence#dropRight(int). |
String
|
dropWhile(Closure condition)
A GString variant of the equivalent CharSequence method. |
String
|
getAt(IntRange range)
Supports the range subscript operator for GString with IntRange. |
String
|
getAt(Range range)
Supports the range subscript operator for GString. |
String
|
getAt(int index)
Supports the subscript operator for GString. |
String
|
take(int num)
A GString variant of the equivalent CharSequence method. |
String
|
takeAfter(CharSequence searchString)
A GString variant of the equivalent CharSequence method CharSequence#takeAfter(CharSequence). |
String
|
takeBefore(String searchString)
A GString variant of the equivalent CharSequence method CharSequence#takeBefore(CharSequence). |
String
|
takeBetween(CharSequence enclosure)
A GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence). |
String
|
takeBetween(CharSequence enclosure, int occurrence)
A GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence, int). |
String
|
takeBetween(CharSequence from, CharSequence to)
A GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence, CharSequence). |
String
|
takeBetween(CharSequence from, CharSequence to, int occurrence)
A GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence, CharSequence, int). |
String
|
takeRight(int num)
A String variant of the equivalent CharSequence method CharSequence#takeRight(int). |
String
|
takeWhile(Closure condition)
A GString variant of the equivalent GString method. |
addShutdownHook
, any
, any
, asBoolean
, asType
, collect
, collect
, collect
, dump
, each
, eachMatch
, eachMatch
, eachWithIndex
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, findResult
, findResult
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, isNotCase
, iterator
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, split
, sprintf
, sprintf
, stream
, tap
, toString
, use
, use
, use
, with
, with
, withCloseable
, withMethodClosure
, withStream
, withTraits
asBoolean
, asType
, bitwiseNegate
, capitalize
, center
, center
, contains
, containsIgnoreCase
, count
, denormalize
, digest
, drop
, dropRight
, dropWhile
, eachLine
, eachLine
, endsWithAny
, endsWithIgnoreCase
, expand
, expand
, expandLine
, find
, find
, find
, find
, findAll
, findAll
, findAll
, findAll
, getAt
, getAt
, getAt
, getAt
, getAt
, getChars
, getCodePoints
, isAllWhitespace
, isBigDecimal
, isBigInteger
, isBlank
, isCase
, isDouble
, isFloat
, isInteger
, isLong
, isNotCase
, isNumber
, leftShift
, matches
, md5
, minus
, minus
, multiply
, next
, normalize
, padLeft
, padLeft
, padRight
, padRight
, plus
, previous
, readLines
, replace
, replace
, replaceAll
, replaceAll
, replaceAll
, replaceAll
, replaceFirst
, replaceFirst
, replaceFirst
, replaceFirst
, reverse
, sha256
, size
, split
, splitEachLine
, splitEachLine
, startsWithAny
, startsWithIgnoreCase
, stripIndent
, stripIndent
, stripIndent
, stripMargin
, stripMargin
, stripMargin
, take
, takeAfter
, takeBefore
, takeBetween
, takeBetween
, takeBetween
, takeBetween
, takeRight
, takeWhile
, toBigDecimal
, toBigInteger
, toDouble
, toFloat
, toInteger
, toList
, toLong
, toSet
, toShort
, toURI
, toURL
, tokenize
, tokenize
, tokenize
, tr
, uncapitalize
, unexpand
, unexpand
, unexpandLine
Converts the GString to a File, or delegates to the default DefaultGroovyMethods#asType(Object,Class).
c
- the desired classA GString variant of the equivalent CharSequence method.
num
- the number of characters to drop from this GStringnum
ones,
or else an empty String, if the toString() of this GString has less than num
characters.A GString variant of the equivalent CharSequence method CharSequence#dropRight(int).
num
- number of charactersnum
chars and empty of the num
is greater than the
length of the CharSequenceA GString variant of the equivalent CharSequence method.
condition
- the closure that while continuously evaluating to true will cause us to drop elements from
the front of the original GStringSupports the range subscript operator for GString with IntRange.
range
- an IntRangeSupports the range subscript operator for GString.
range
- a RangeSupports the subscript operator for GString.
index
- the index of the Character to getA GString variant of the equivalent CharSequence method.
num
- the number of chars to take from this GStringnum
chars,
or else the whole GString if it has less than num
elements.A GString variant of the equivalent CharSequence method CharSequence#takeAfter(CharSequence).
searchString
- CharSequence that is searched in this CharSequenceA GString variant of the equivalent CharSequence method CharSequence#takeBefore(CharSequence).
searchString
- CharSequence that is searched in this CharSequenceA GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence).
enclosure
- Enclosure CharSequenceenclosure
stringsA GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence, int).
enclosure
- Enclosure CharSequenceoccurrence
- nth occurrence being returnedenclosure
stringsA GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence, CharSequence).
from
- beginning of searchto
- end of searchA GString variant of the equivalent CharSequence method CharSequence#takeBetween(CharSequence, CharSequence, int).
from
- beginning of searchto
- end of searchoccurrence
- nth occurrence that is to be returned. 0 represents first onefrom
and to
CharSequences and empty if the unavailable inputs are given.A String variant of the equivalent CharSequence method CharSequence#takeRight(int).
num
- the number of chars to take from this GString from the rightnum
chars,
or else the whole GString if it has less than num
elements.A GString variant of the equivalent GString method.
condition
- the closure that must evaluate to true to continue taking elements