List of String interface functions
Fields inherited from class | Fields |
---|---|
class DateFunctions |
DATEFORMAT_DEFAULT |
Type | Name and description |
---|---|
java.lang.String |
concat(java.lang.String... attributes) Concatenate the arguments into a new string |
java.lang.String |
concatWithToken(java.lang.String joinToken, java.lang.String... attributes) Concatenate the arguments into a new string using a join token |
java.lang.Boolean |
contains(java.lang.String attribute, java.lang.String searchString) Find whether the substring is part of the original string |
java.lang.String |
find(java.lang.String attribute, java.lang.String pattern) Find the first occurrence of a regular expression string within a string. |
java.util.List<java.lang.String> |
findAll(java.lang.String attribute, java.lang.String pattern) Returns a (possibly empty) list of all occurrences of a regular expression (in String format) found within a String. |
java.lang.Integer |
indexOf(java.lang.String attribute, java.lang.String searchString) Find the index of substring in the original string |
java.lang.Boolean |
isDouble(java.lang.String attribute) Test whether the string is a double |
java.lang.Boolean |
isLong(java.lang.String attribute) Test whether the string is a long |
java.lang.Integer |
length(java.lang.String attribute) Test the length of the string |
java.lang.String |
replace(java.lang.String attribute, java.lang.String searchString, java.lang.String replaceString, java.lang.Boolean useRegex = false) Replace a part of whole string with a new expression |
java.lang.String[] |
splitToSet(java.lang.String attribute, java.lang.String delimiter) Split the string based on the delimiter |
java.lang.String |
stripIndent(java.lang.String attribute) Strip indentation and extra spaces of the string |
java.lang.String |
substring(java.lang.String attribute, java.lang.Integer startLocation, java.lang.Integer endLocation = null) Get the substring from the original string based on the start and end location in the string |
java.lang.String |
toLowerCase(java.lang.String attribute, java.lang.String localeInfo = "en") Convert the original string to lower case |
java.lang.String |
toTitleCase(java.lang.String attribute) Capitalize the string |
java.lang.String |
toUpperCase(java.lang.String attribute, java.lang.String localeInfo = "en") Convert the original string to upper case |
java.lang.String |
trim(java.lang.String attribute) Trim the string of extra spaces |
java.lang.String |
urlDecode(java.lang.String attribute, java.lang.String characterEncoding = "UTF-8") Decodes a string into application/x-www-form-urlencoded format using a specific encoding scheme. |
java.lang.String |
urlEncode(java.lang.String attribute, java.lang.String characterEncoding = "UTF-8") Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme. |
Methods inherited from class | Name |
---|---|
class GeocodeFunctions |
distance, getLatitude, getLongitude, isGeocode, toGeocode, toGeocode |
class DateFunctions |
addTime, diffDates, getDayOfMonth, getDayOfWeek, getDayOfYear, getHour, getMilliSecond, getMinute, getMonth, getSeconds, getYear, isDate, toDate, toDate, toString, today, truncateDate |
class ConversionFunctions |
toBoolean, toBoolean, toBoolean, toDate, toDouble, toDouble, toDouble, toLong, toLong, toLong, toLong, toString |
class EnrichmentFunctions |
detectLanguage, extractKeyPhrases, extractNounGroups, extractWhitelistTags, geotagIPAddress, geotagIPAddressGetGeocode, geotagStructuredAddress, geotagUnstructuredAddress, geotagUnstructuredAddressGetGeocode, getEntities, getSentiment, getTermSentiment, reverseGeotag, runExternalPlugin, stripTagsFromHTML, toPhoneticHash |
class groovy.lang.Script |
groovy.lang.Script#println(), groovy.lang.Script#println(java.lang.Object), groovy.lang.Script#run(), groovy.lang.Script#run(java.io.File, [Ljava.lang.String;), groovy.lang.Script#setProperty(java.lang.String, java.lang.Object), groovy.lang.Script#getProperty(java.lang.String), groovy.lang.Script#print(java.lang.Object), groovy.lang.Script#printf(java.lang.String, java.lang.Object), groovy.lang.Script#printf(java.lang.String, [Ljava.lang.Object;), groovy.lang.Script#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Script#evaluate(java.lang.String), groovy.lang.Script#evaluate(java.io.File), groovy.lang.Script#getBinding(), groovy.lang.Script#setBinding(groovy.lang.Binding), groovy.lang.Script#getMetaClass(), groovy.lang.Script#setMetaClass(groovy.lang.MetaClass), groovy.lang.Script#wait(long, int), groovy.lang.Script#wait(long), groovy.lang.Script#wait(), groovy.lang.Script#equals(java.lang.Object), groovy.lang.Script#toString(), groovy.lang.Script#hashCode(), groovy.lang.Script#getClass(), groovy.lang.Script#notify(), groovy.lang.Script#notifyAll() |
Concatenate the arguments into a new string
attributes
- The list of attributes that are to be concatenatedConcatenate the arguments into a new string using a join token
joinToken
- The token which will be used to join the string argumentsattributes
- The list of attributes that are to be concatenatedFind whether the substring is part of the original string
Find the first occurrence of a regular expression string within a string. If the regex doesn't match, null will be returned.
Returns a (possibly empty) list of all occurrences of a regular expression (in String format) found within a String.
Find the index of substring in the original string
Test whether the string is a double
Test whether the string is a long
Test the length of the string
Replace a part of whole string with a new expression
searchString
- The expression can either be a literal or a regexSplit the string based on the delimiter
Strip indentation and extra spaces of the string
Get the substring from the original string based on the start and end location in the string
Convert the original string to lower case
Capitalize the string
Convert the original string to upper case
Trim the string of extra spaces
Decodes a string into application/x-www-form-urlencoded format using a specific encoding scheme.
characterEncoding
- decoding scheme, default to UTF-8Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme.
characterEncoding
- encoding scheme, default to UTF-8