Groovy JDK
A B C D E F G H I J L M N O P R S T U W X

A

abs() - Method in class java.lang.Double
Get the absolute value
 
accept(boolean, groovy.lang.Closure) - Method in class java.net.ServerSocket
Accepts a connection and passes the resulting Socket to the closure which runs in a new Thread or the calling thread, as needed.
 
accept(groovy.lang.Closure) - Method in class java.net.ServerSocket
Accepts a connection and passes the resulting Socket to the closure which runs in a new Thread.
 
addAll(T[]) - Method in class java.util.Collection
Modifies the collection by adding all of the elements in the specified array to the collection.
 
addAll(int, T[]) - Method in class java.util.List
Modifies this list by inserting all of the elements in the specified array into the list at the specified position.
 
addShutdownHook(groovy.lang.Closure) - Method in class java.lang.Object
Allows the usage of addShutdownHook without getting the runtime first.
 
and(java.lang.Boolean) - Method in class java.lang.Boolean
Logical conjunction of two boolean operators.
 
and(java.lang.Number) - Method in class java.lang.Number
Bitwise AND together two Numbers.
 
and(java.util.BitSet) - Method in class java.util.BitSet
Bitwise AND together two BitSets.
 
any() - Method in class java.lang.Object
Iterates over the elements of a collection, and checks whether at least one element is true according to the Groovy Truth.
 
any(groovy.lang.Closure) - Method in class java.lang.Object
Iterates over the contents of an object or collection, and checks whether a predicate is valid for at least one element.
 
append(byte[]) - Method in class java.io.File
Append bytes to the end of a File.
 
append(java.io.InputStream) - Method in class java.io.File
Append binary data to the file.
 
append(java.lang.Object) - Method in class java.io.File
Append the text at the end of the File.
 
append(java.lang.Object, java.lang.String) - Method in class java.io.File
Append the text at the end of the File, using a specified encoding.
 
asBoolean() - Method in class java.lang.Boolean
Coerce an Boolean instance to a boolean value.
 
asImmutable() - Method in class java.util.Collection
A convenience method for creating an immutable Collection.
 
asList() - Method in class java.lang.Iterable
Converts this Iterable to a List.
 
asSynchronized() - Method in class java.util.Collection
A convenience method for creating a synchronized Collection.
 
asType(java.lang.Class) - Method in class java.lang.CharSequence

Provides a method to perform custom 'dynamic' type conversion to the given class using the as operator.

 
asWritable() - Method in class java.io.File
Converts this File to a Writable.
 
asWritable(java.lang.String) - Method in class java.io.File
Allows a file to return a Writable implementation that can output itself to a Writer stream.
 

B

bitwiseNegate() - Method in class java.lang.CharSequence
Turns a CharSequence into a regular expression Pattern
 

C

capitalize() - Method in class java.lang.CharSequence
Convenience method to capitalize the first letter of a CharSequence.
 
center(java.lang.Number) - Method in class java.lang.CharSequence
Pad a CharSequence to a minimum length specified by numberOfChars by adding the space character around it as many times as needed so that it remains centered.
 
center(java.lang.Number, java.lang.CharSequence) - Method in class java.lang.CharSequence
Pad a CharSequence to a minimum length specified by numberOfChars, appending the supplied padding CharSequence around the original as many times as needed keeping it centered.
 
center(java.lang.Number, java.lang.String) - Method in class java.lang.String
Pad a String to a minimum length specified by numberOfChars, appending the supplied padding String around the original as many times as needed keeping it centered.
 
clear() - Method in class java.awt.Container
Removes all components from the Container.
 
clearTime() - Method in class java.util.Calendar
Clears the time portion of this Calendar instance; useful utility where it makes sense to compare month/day/year only portions of a Calendar.
 
closeStreams() - Method in class java.lang.Process
Closes all the streams associated with the process (ignoring any IOExceptions).
 
collate(int) - Method in class java.util.List
Collates this list into sub-lists of length size.
 
collate(int, boolean) - Method in class java.util.List
Collates this list into sub-lists of length size.
 
collate(int, int) - Method in class java.util.List
Collates this list into sub-lists of length size stepping through the code step elements for each subList.
 
collate(int, int, boolean) - Method in class java.util.List
Collates this list into sub-lists of length size stepping through the code step elements for each sub-list.
 
collect() - Method in class java.lang.Object
Iterates through this aggregate Object transforming each item into a new value using Closure.IDENTITY as a transformer, basically returning a list of items copied from the original object.
 
collect(groovy.lang.Closure) - Method in class java.lang.Object
Iterates through this aggregate Object transforming each item into a new value using the transform closure, returning a list of transformed values.
 
collect(java.util.Collection, groovy.lang.Closure) - Method in class java.lang.Object
Iterates through this aggregate Object transforming each item into a new value using the transform closure and adding it to the supplied collector.
 
collectAll(groovy.lang.Closure) - Method in class java.util.Collection
Deprecated alias for collectNested
 
collectAll(java.util.Collection, groovy.lang.Closure) - Method in class java.util.Collection
Deprecated alias for collectNested
 
collectEntries() - Method in class java.lang.Iterable
A variant of collectEntries for Iterable objects using the identity closure as the transform.
 
collectEntries(groovy.lang.Closure) - Method in class java.lang.Iterable
Iterates through this Iterable transforming each item using the transform closure and returning a map of the resulting transformed entries.
 
collectEntries(java.util.Map) - Method in class java.lang.Iterable
A variant of collectEntries for Iterables using the identity closure as the transform and a supplied map as the destination of transformed entries.
 
collectEntries(java.util.Map, groovy.lang.Closure) - Method in class java.lang.Iterable
Iterates through this Iterable transforming each item using the closure as a transformer into a map entry, returning the supplied map with all of the transformed entries added to it.
 
collectMany(groovy.lang.Closure) - Method in class java.lang.Iterable
Projects each item from a source Iterable to a collection and concatenates (flattens) the resulting collections into a single list.
 
collectMany(java.util.Collection, groovy.lang.Closure) - Method in class java.lang.Iterable
Projects each item from a source collection to a result collection and concatenates (flattens) the resulting collections adding them into the collector.
 
collectNested(groovy.lang.Closure) - Method in class java.lang.Iterable
Recursively iterates through this Iterable transforming each non-Collection value into a new value using the closure as a transformer.
 
collectNested(java.util.Collection, groovy.lang.Closure) - Method in class java.lang.Iterable
Recursively iterates through this Iterable transforming each non-Collection value into a new value using the transform closure.
 
collectReplacements(groovy.lang.Closure) - Method in class java.lang.String
Iterate through this String a character at a time collecting either the original character or a transformed replacement String.
 
combinations() - Method in class java.lang.Iterable
Adds GroovyCollections#combinations(Iterable) as a method on Iterables.
 
combinations(groovy.lang.Closure) - Method in class java.lang.Iterable
Adds GroovyCollections#combinations(Iterable, Closure) as a method on collections.
 
compareTo(java.lang.Character) - Method in class java.lang.Character
Compare two Characters.
 
compareTo(java.lang.Number) - Method in class java.lang.Character
Compare a Character and a Number.
 
consumeProcessErrorStream(java.io.OutputStream) - Method in class java.lang.Process
Gets the error stream from a process and reads it to keep the process from blocking due to a full buffer.
 
consumeProcessErrorStream(java.lang.Appendable) - Method in class java.lang.Process
Gets the error stream from a process and reads it to keep the process from blocking due to a full buffer.
 
consumeProcessOutput() - Method in class java.lang.Process
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
 
consumeProcessOutput(java.io.OutputStream, java.io.OutputStream) - Method in class java.lang.Process
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
 
consumeProcessOutput(java.lang.Appendable, java.lang.Appendable) - Method in class java.lang.Process
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
 
consumeProcessOutputStream(java.io.OutputStream) - Method in class java.lang.Process
Gets the output stream from a process and reads it to keep the process from blocking due to a full output buffer.
 
consumeProcessOutputStream(java.lang.Appendable) - Method in class java.lang.Process
Gets the output stream from a process and reads it to keep the process from blocking due to a full output buffer.
 
contains(java.lang.CharSequence) - Method in class java.lang.CharSequence
Provide an implementation of contains() like Collection#contains to make CharSequences more polymorphic.
 
contains(java.lang.Object) - Method in class java.lang.Object[]
Checks whether the array contains the given value.
 
contains(java.lang.String) - Method in class java.lang.String
Provide an implementation of contains() like Collection#contains to make Strings more polymorphic.
 
containsAll(java.lang.Object[]) - Method in class java.util.Collection
Returns true if this collection contains all of the elements in the specified array.
 
copyWith(java.util.Map) - Method in class java.util.Calendar
Support creating a new Date having similar properties to an existing Date (which remains unaltered) but with some fields updated according to a Map of changes.
 
count(groovy.lang.Closure) - Method in class java.lang.Iterable
Counts the number of occurrences which satisfy the given closure from inside this Iterable.
 
count(java.lang.CharSequence) - Method in class java.lang.CharSequence
Count the number of occurrences of a sub CharSequence.
 
count(java.lang.Object) - Method in class java.lang.Iterable
Counts the number of occurrences of the given value inside this Iterable.
 
count(java.lang.String) - Method in class java.lang.String
Count the number of occurrences of a substring.
 
countBy(groovy.lang.Closure) - Method in class java.lang.Iterable
Sorts all collection members into groups determined by the supplied mapping closure and counts the group size.
 
createTempDir() - Method in class java.io.File
 
createTempDir(java.lang.String, java.lang.String) - Method in class java.io.File
 

D

decodeBase64() - Method in class java.lang.String
Decode the String from Base64 into a byte array.
 
decodeHex() - Method in class java.lang.String
Decodes a hex string to a byte array.
 
deleteDir() - Method in class java.io.File
Deletes a directory with all contained files and subdirectories.
 
denormalize() - Method in class java.lang.CharSequence
Return a CharSequence with lines (separated by LF, CR/LF, or CR) terminated by the platform specific line separator.
 
directorySize() - Method in class java.io.File
Calculates directory size as total size of all its files, recursively.
 
disjoint(java.util.Collection) - Method in class java.util.Collection
Returns true if the intersection of two collections is empty.
 
div(java.lang.Character) - Method in class java.lang.Character
Divide one Character by another.
 
div(java.lang.Number) - Method in class java.lang.Character
Divide a Character by a Number.
 
downto(java.lang.Number, groovy.lang.Closure) - Method in class java.lang.Double
Iterates from this number down to the given number, inclusive, decrementing by one each time.
 
downto(java.util.Calendar, groovy.lang.Closure) - Method in class java.util.Calendar
Iterates from the date represented by this calendar up to the date represented by the given calendar, inclusive, incrementing by one day each time.
 
downto(java.util.Date, groovy.lang.Closure) - Method in class java.util.Date
Iterates from this date down to the given date, inclusive, decrementing by one day each time.
 
drop(int) - Method in class java.lang.CharSequence
Drops the given number of chars from the head of this CharSequence if they are available.
 
dropWhile(groovy.lang.Closure) - Method in class java.lang.CharSequence
Create a suffix of the given CharSequence by dropping as many characters as possible from the front of the original CharSequence such that calling the given closure condition evaluates to true when passed each of the dropped characters.
 
dump() - Method in class java.lang.Object
Generates a detailed dump string of an object showing its class, hashCode and fields.
 

E

each(groovy.lang.Closure) - Method in class java.lang.Object
Iterates through an aggregate type or data structure, passing each item to the given closure.
 
eachByte(groovy.lang.Closure) - Method in class java.lang.Byte[]
Traverse through each byte of this Byte array.
 
eachByte(int, groovy.lang.Closure) - Method in class java.io.File
Traverse through the bytes of this File, bufferLen bytes at a time.
 
eachCombination(groovy.lang.Closure) - Method in class java.lang.Iterable
Applies a function on each combination of the input lists.
 
eachDir(groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each subdirectory in this directory, ignoring regular files.
 
eachDirMatch(java.lang.Object, groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each subdirectory whose name (dir.name) matches the given nameFilter in the given directory - calling the DefaultGroovyMethods#isCase method to determine if a match occurs.
 
eachDirRecurse(groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each descendant directory of this directory.
 
eachFile(groovy.io.FileType, groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each 'child' file in this 'parent' folder/directory.
 
eachFile(groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each 'child' file in this 'parent' folder/directory.
 
eachFileMatch(groovy.io.FileType, java.lang.Object, groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each file whose name (file.name) matches the given nameFilter in the given directory - calling the DefaultGroovyMethods#isCase method to determine if a match occurs.
 
eachFileMatch(java.lang.Object, groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each file whose name (file.name) matches the given nameFilter in the given directory - calling the DefaultGroovyMethods#isCase method to determine if a match occurs.
 
eachFileRecurse(groovy.io.FileType, groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each descendant file in this directory.
 
eachFileRecurse(groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each descendant file in this directory.
 
eachLine(groovy.lang.Closure) - Method in class java.lang.CharSequence
Iterates through this CharSequence line by line.
 
eachLine(int, groovy.lang.Closure) - Method in class java.lang.CharSequence
Iterates through this CharSequence line by line.
 
eachLine(java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Iterates through this file line by line.
 
eachLine(java.lang.String, int, groovy.lang.Closure) - Method in class java.io.File
Iterates through this file line by line.
 
eachMatch(java.lang.CharSequence, groovy.lang.Closure) - Method in class java.lang.CharSequence
Process each regex group matched substring of the given CharSequence.
 
eachMatch(java.lang.String, groovy.lang.Closure) - Method in class java.lang.String
Process each regex group matched substring of the given string.
 
eachMatch(java.util.regex.Pattern, groovy.lang.Closure) - Method in class java.lang.CharSequence
Process each regex group matched substring of the given pattern.
 
eachObject(groovy.lang.Closure) - Method in class java.io.File
Iterates through the given file object by object.
 
eachPermutation(groovy.lang.Closure) - Method in class java.util.Collection
Iterates over all permutations of a collection, running a closure for each iteration.
 
eachWithIndex(groovy.lang.Closure) - Method in class java.lang.Object
Iterates through an aggregate type or data structure, passing each item and the item's index (a counter starting at zero) to the given closure.
 
encodeBase64() - Method in class java.lang.Byte[]
Produce a Writable object which writes the Base64 encoding of the byte array.
 
encodeBase64(boolean) - Method in class java.lang.Byte[]
Produce a Writable object which writes the Base64 encoding of the byte array.
 
encodeHex() - Method in class java.lang.Byte[]
Produces a Writable that writes the hex encoding of the Byte[].
 
equals(int[]) - Method in class primitive-types.int[]
Compare the contents of this array to the contents of the given array.
 
equals(java.lang.Object[]) - Method in class java.util.List
Determines if the contents of this list are equal to the contents of the given array in the same order.
 
equals(java.util.List) - Method in class java.lang.Object[]
Determines if the contents of this array are equal to the contents of the given list, in the same order.
 
equals(java.util.Map) - Method in class java.util.Map
Compares two Maps treating coerced numerical values as identical.
 
equals(java.util.Set) - Method in class java.util.Set
Compare the contents of two Sets for equality using Groovy's coercion rules.
 
every() - Method in class java.lang.Object
Iterates over every element of a collection, and checks whether all elements are true according to the Groovy Truth.
 
every(groovy.lang.Closure) - Method in class java.lang.Object
Used to determine if the given predicate closure is valid (i.e.
 
execute() - Method in class java.lang.String
Executes the command specified by self as a command-line process.
 
execute(java.lang.String[], java.io.File) - Method in class java.lang.String
Executes the command specified by self with environment defined by envp and under the working directory dir.
 
execute(java.util.List, java.io.File) - Method in class java.lang.String
Executes the command specified by self with environment defined by envp and under the working directory dir.
 
expand() - Method in class java.lang.CharSequence
Expands all tabs into spaces with tabStops of size 8.
 
expand(int) - Method in class java.lang.CharSequence
Expands all tabs into spaces.
 
expandLine(int) - Method in class java.lang.CharSequence
Expands all tabs into spaces.
 

F

filterLine(groovy.lang.Closure) - Method in class java.io.File
Filters the lines of a File and creates a Writable in return to stream the filtered lines.
 
filterLine(java.io.Writer, groovy.lang.Closure) - Method in class java.io.File
Filter the lines from this File, and write them to the given writer based on the given closure predicate.
 
filterLine(java.io.Writer, java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Filter the lines from this File, and write them to the given writer based on the given closure predicate.
 
filterLine(java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Filters the lines of a File and creates a Writable in return to stream the filtered lines.
 
find() - Method in class java.lang.Object
Finds the first item matching the IDENTITY Closure (i.e. matching Groovy truth).
 
find(groovy.lang.Closure) - Method in class java.lang.Object
Finds the first value matching the closure condition
 
find(java.lang.CharSequence) - Method in class java.lang.CharSequence
Finds the first occurrence of a regular expression CharSequence within a CharSequence.
 
find(java.lang.CharSequence, groovy.lang.Closure) - Method in class java.lang.CharSequence
Returns the result of calling a closure with the first occurrence of a regular expression found within a CharSequence.
 
find(java.lang.String) - Method in class java.lang.String
Finds the first occurrence of a regular expression String within a String.
 
find(java.lang.String, groovy.lang.Closure) - Method in class java.lang.String
Returns the result of calling a closure with the first occurrence of a regular expression found within a String.
 
find(java.util.regex.Pattern) - Method in class java.lang.CharSequence
Finds the first occurrence of a compiled regular expression Pattern within a CharSequence.
 
find(java.util.regex.Pattern, groovy.lang.Closure) - Method in class java.lang.CharSequence
Returns the result of calling a closure with the first occurrence of a regular expression found within a CharSequence. If the regex doesn't match, the closure will not be called and find will return null.
 
findAll() - Method in class java.lang.Object
Finds all items matching the IDENTITY Closure (i.e. matching Groovy truth).
 
findAll(groovy.lang.Closure) - Method in class java.lang.Object
Finds all items matching the closure condition.
 
findAll(java.lang.CharSequence) - Method in class java.lang.CharSequence
Returns a (possibly empty) list of all occurrences of a regular expression (in CharSequence format) found within a CharSequence.
 
findAll(java.lang.CharSequence, groovy.lang.Closure) - Method in class java.lang.CharSequence
Finds all occurrences of a capturing regular expression CharSequence within a CharSequence.
 
findAll(java.lang.String) - Method in class java.lang.String
Returns a (possibly empty) list of all occurrences of a regular expression (in String format) found within a String.
 
findAll(java.lang.String, groovy.lang.Closure) - Method in class java.lang.String
Finds all occurrences of a regular expression string within a String.
 
findAll(java.util.regex.Pattern) - Method in class java.lang.CharSequence
Returns a (possibly empty) list of all occurrences of a regular expression (in Pattern format) found within a CharSequence.
 
findAll(java.util.regex.Pattern, groovy.lang.Closure) - Method in class java.lang.CharSequence
Finds all occurrences of a compiled regular expression Pattern within a CharSequence.
 
findIndexOf(groovy.lang.Closure) - Method in class java.lang.Object
Iterates over the elements of an iterable collection of items and returns the index of the first item that matches the condition specified in the closure.
 
findIndexOf(int, groovy.lang.Closure) - Method in class java.lang.Object
Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index of the first item that matches the condition specified in the closure.
 
findIndexValues(groovy.lang.Closure) - Method in class java.lang.Object
Iterates over the elements of an iterable collection of items and returns the index values of the items that match the condition specified in the closure.
 
findIndexValues(java.lang.Number, groovy.lang.Closure) - Method in class java.lang.Object
Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index values of the items that match the condition specified in the closure.
 
findLastIndexOf(groovy.lang.Closure) - Method in class java.lang.Object
Iterates over the elements of an iterable collection of items and returns the index of the last item that matches the condition specified in the closure.
 
findLastIndexOf(int, groovy.lang.Closure) - Method in class java.lang.Object
Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index of the last item that matches the condition specified in the closure.
 
findResult(U, groovy.lang.Closure) - Method in class java.util.Collection
Iterates through the collection calling the given closure for each item but stopping once the first non-null result is found and returning that result.
 
findResult(groovy.lang.Closure) - Method in class java.lang.Object
Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns null.
 
findResult(java.lang.Object, groovy.lang.Closure) - Method in class java.lang.Object
Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.
 
findResults(groovy.lang.Closure) - Method in class java.lang.Iterable
Iterates through the Iterable transforming items using the supplied closure and collecting any non-null results.
 
first() - Method in class java.lang.Iterable
Returns the first item from the Iterable.
 
flatten() - Method in class java.lang.Iterable
Flatten an Iterable.
 
flatten(groovy.lang.Closure) - Method in class java.lang.Iterable
Flatten an Iterable.
 
format(java.lang.String) - Method in class java.util.Calendar

Shortcut for SimpleDateFormat to output a String representation of this calendar instance.

 
format(java.lang.String, java.util.TimeZone) - Method in class java.util.Date

Create a String representation of this date according to the given format pattern and timezone.

 

G

get(K, V) - Method in class java.util.Map
Looks up an item in a Map for the given key and returns the value - unless there is no entry for the given key in which case add the default value to the map and return that.
 
getAt(K) - Method in class java.util.Map
Support the subscript operator for a Map.
 
getAt(groovy.lang.EmptyRange) - Method in class java.lang.CharSequence
Support the range subscript operator for CharSequence or StringBuffer with EmptyRange
 
getAt(groovy.lang.IntRange) - Method in class java.lang.CharSequence
Support the range subscript operator for CharSequence or StringBuffer with IntRange
 
getAt(groovy.lang.ObjectRange) - Method in class java.lang.Object[]
 
getAt(groovy.lang.Range) - Method in class java.lang.CharSequence
Support the range subscript operator for CharSequence
 
getAt(int) - Method in class java.lang.CharSequence
Support the subscript operator for CharSequence.
 
getAt(java.lang.String) - Method in class java.lang.Object
Allows the subscript operator to be used to lookup dynamic property values.
 
getAt(java.util.Collection) - Method in class java.lang.CharSequence
Select a List of characters from a CharSequence using a Collection to identify the indices to be selected.
 
getBundle(java.lang.String) - Method in class java.util.ResourceBundle
Works exactly like ResourceBundle.getBundle(String).
 
getBundle(java.lang.String, java.util.Locale) - Method in class java.util.ResourceBundle
Works exactly like ResourceBundle.getBundle(String, Locale).
 
getBytes() - Method in class java.io.File
Read the content of the File and returns it as a byte[].
 
getChars() - Method in class java.lang.CharSequence
Converts the given CharSequence into an array of characters.
 
getCount() - Method in class java.util.regex.Matcher
Find the number of Strings matched to the given Matcher.
 
getDateString() - Method in class java.util.Date

Return a string representation of the 'day' portion of this date according to the locale-specific DateFormat#SHORT default format.

 
getDateTimeString() - Method in class java.util.Date

Return a string representation of the date and time time portion of this Date instance, according to the locale-specific format used by DateFormat.

 
getErr() - Method in class java.lang.Process
An alias method so that a process appears similar to System.out, System.in, System.err; you can use process.in, process.out, process.err in a similar fashion.
 
getIn() - Method in class java.lang.Process
An alias method so that a process appears similar to System.out, System.in, System.err; you can use process.in, process.out, process.err in a similar fashion.
 
getLastMatcher() - Method in class java.util.regex.Matcher
Get the last hidden matcher that the system used to do a match.
 
getMetaClass() - Method in class java.lang.Class
Adds a "metaClass" property to all class objects so you can use the syntax String.metaClass.myMethod = { println "foo" }
 
getMetaPropertyValues() - Method in class java.lang.Object
Retrieves the list of MetaProperty objects for 'self' and wraps it in a list of PropertyValue objects that additionally provide the value for each property of 'self'.
 
getOut() - Method in class java.lang.Process
An alias method so that a process appears similar to System.out, System.in, System.err; you can use process.in, process.out, process.err in a similar fashion.
 
getProperties() - Method in class java.lang.Object
Convenience method that calls Object#getMetaPropertyValues(self) and provides the data in form of simple key/value pairs, i.e.
 
getRootLoader() - Method in class java.lang.ClassLoader
Iterates through the classloader parents until it finds a loader with a class named "org.codehaus.groovy.tools.RootLoader".
 
getText() - Method in class java.lang.Process
Read the text of the output stream of the Process.
 
getText(java.lang.String) - Method in class java.io.File
Read the content of the File using the specified encoding and return it as a String.
 
getText(java.util.Map) - Method in class java.net.URL
Read the content of this URL and returns it as a String.
 
getText(java.util.Map, java.lang.String) - Method in class java.net.URL
Read the data from this URL and return it as a String.
 
getTimeString() - Method in class java.util.Date

Return a string representation of the time portion of this date according to the locale-specific DateFormat#MEDIUM default format.

 
grep() - Method in class java.lang.Object
Iterates over the collection of items which this Object represents and returns each item that matches using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth.
 
grep(java.lang.Object) - Method in class java.lang.Object
Iterates over the collection of items which this Object represents and returns each item that matches the given filter - calling the Object#isCase method used by switch statements.
 
groupBy(groovy.lang.Closure) - Method in class java.lang.Iterable
Sorts all Iterable members into groups determined by the supplied mapping closure.
 
groupBy(java.lang.Object) - Method in class java.lang.Iterable
Sorts all Iterable members into (sub)groups determined by the supplied mapping closures.
 
groupBy(java.util.List) - Method in class java.lang.Iterable
Sorts all Iterable members into (sub)groups determined by the supplied mapping closures.
 
groupEntriesBy(groovy.lang.Closure) - Method in class java.util.Map
Groups all map entries into groups determined by the supplied mapping closure.
 

H

hasGroup() - Method in class java.util.regex.Matcher
Check whether a Matcher contains a group or not.
 
hasProperty(java.lang.String) - Method in class java.lang.Object

Returns true of the implementing MetaClass has a property of the given name

Note that this method will only return true for realised properties and does not take into account implementation of getProperty or propertyMissing

 
head() - Method in class java.lang.Object[]
Returns the first item from the Object array.
 

I

identity(groovy.lang.Closure) - Method in class java.lang.Object
Allows the closure to be called for the object reference self.
 
implies(java.lang.Boolean) - Method in class java.lang.Boolean
Logical implication of two boolean operators
 
inject(U, groovy.lang.Closure) - Method in class java.lang.Object
Iterates through the given Object, passing in the initial value to the closure along with the first item.
 
inject(groovy.lang.Closure) - Method in class java.lang.Object
Iterates through the given Object, passing in the first value to the closure along with the first item.
 
inspect() - Method in class java.lang.Object
Inspects returns the String that matches what would be typed into a terminal to create this object.
 
intdiv(java.lang.Character) - Method in class java.lang.Character
Integer Divide two Characters.
 
intdiv(java.lang.Number) - Method in class java.lang.Character
Integer Divide a Character by a Number.
 
intersect(java.util.Collection) - Method in class java.util.Collection
Create a Collection composed of the intersection of both collections.
 
intersect(java.util.Map) - Method in class java.util.Map
Create a Map composed of the intersection of both maps.
 
invokeMethod(java.lang.String, java.lang.Object) - Method in class java.lang.Object
Provide a dynamic method invocation method which can be overloaded in classes to implement dynamic proxies easily.
 
is(java.lang.Object) - Method in class java.lang.Object
Identity check.
 
isAllWhitespace() - Method in class java.lang.CharSequence
True if a CharSequence only contains whitespace characters.
 
isBigDecimal() - Method in class java.lang.CharSequence
Determine if a CharSequence can be parsed as a BigDecimal.
 
isBigInteger() - Method in class java.lang.CharSequence
Determine if a CharSequence can be parsed as a BigInteger.
 
isCase(java.lang.Number) - Method in class java.lang.Number
Special 'case' implementation for all numbers, which delegates to the compareTo() method for comparing numbers of different types.
 
isCase(java.lang.Object) - Method in class java.lang.CharSequence
'Case' implementation for a CharSequence, which simply calls the equivalent method for String.
 
isDigit() - Method in class java.lang.Character
Determines if a character is a digit.
 
isDouble() - Method in class java.lang.CharSequence
Determine if a CharSequence can be parsed as a Double.
 
isFloat() - Method in class java.lang.CharSequence
Determine if a CharSequence can be parsed as a Float.
 
isInteger() - Method in class java.lang.CharSequence
Determine if a CharSequence can be parsed as an Integer.
 
isLetter() - Method in class java.lang.Character
Determines if a character is a letter.
 
isLetterOrDigit() - Method in class java.lang.Character
Determines if a character is a letter or digit.
 
isLong() - Method in class java.lang.CharSequence
Determine if a CharSequence can be parsed as a Long.
 
isLowerCase() - Method in class java.lang.Character
Determine if a Character is lowercase.
 
isNumber() - Method in class java.lang.CharSequence
Determine if a CharSequence can be parsed as a Number.
 
isUpperCase() - Method in class java.lang.Character
Determine if a Character is uppercase.
 
isWhitespace() - Method in class java.lang.Character
Determines if a character is a whitespace character.
 
iterator() - Method in class java.lang.Object
Attempts to create an Iterator for the given object by first converting it to a Collection.
 

J

join(java.lang.String) - Method in class java.lang.Iterable
Concatenates the toString() representation of each item in this Iterable, with the given String as a separator between each item.
 

L

last() - Method in class java.lang.Iterable
Returns the last item from the Iterable.
 
leftShift(T) - Method in class java.util.Collection
Overloads the left shift operator to provide an easy way to append objects to a Collection.
 
leftShift(byte[]) - Method in class java.lang.Process
Overloads the left shift operator to provide an append mechanism to pipe into a Process
 
leftShift(groovy.lang.GString) - Method in class javax.swing.JMenu
Overloads the left shift operator to provide an easy way to add components to a menu.
 
leftShift(java.awt.Component) - Method in class java.awt.Container
Overloads the left shift operator to provide an easy way to add components to a Container.
 
leftShift(java.io.InputStream) - Method in class java.io.File
Append binary data to the file.
 
leftShift(java.lang.Number) - Method in class java.lang.Number
Implementation of the left shift operator for integral types.
 
leftShift(java.lang.Object) - Method in class java.lang.Appendable
Overloads the leftShift operator for Appendable to allow an object to be appended using Groovy's default representation for the object.
 
leftShift(java.lang.String) - Method in class javax.swing.JMenu
Overloads the left shift operator to provide an easy way to add components to a menu.
 
leftShift(java.util.Map) - Method in class java.util.Map
Overloads the left shift operator to provide an easy way to put one maps entries into another map.
 
leftShift(java.util.Map.Entry) - Method in class java.util.Map
Overloads the left shift operator to provide an easy way to append Map.Entry values to a Map.
 
leftShift(javax.swing.AbstractButton) - Method in class javax.swing.ButtonGroup
Overloads the left shift operator to provide an easy way to add buttons to a ButtonGroup.
 
leftShift(javax.swing.Action) - Method in class javax.swing.JMenu
Overloads the left shift operator to provide an easy way to add components to a menu.
 
leftShift(javax.swing.JMenu) - Method in class javax.swing.JMenuBar
Overloads the left shift operator to provide an easy way to add menus to a menuBar.
 
leftShift(javax.swing.JMenuItem) - Method in class javax.swing.JMenu
Overloads the left shift operator to provide an easy way to add components to a menu.
 
leftShift(javax.swing.table.TableColumn) - Method in class javax.swing.table.TableColumnModel
Overloads the left shift operator to provide an easy way to add columns to a TableColumnModel.
 
leftShift(javax.swing.tree.DefaultMutableTreeNode) - Method in class javax.swing.tree.DefaultMutableTreeNode
Overloads the left shift operator to provide an easy way to add nodes to a DefaultMutableTreeNode.
 
leftShift(javax.swing.tree.MutableTreeNode) - Method in class javax.swing.tree.MutableTreeNode
Overloads the left shift operator to provide an easy way to add nodes to a MutableTreeNode.
 

M

matches(java.util.regex.Pattern) - Method in class java.lang.CharSequence
Tells whether or not a CharSequence matches the given compiled regular expression Pattern.
 
matchesPartially() - Method in class java.util.regex.Matcher
Given a matcher that matches a string against a pattern, this method returns true when the string matches the pattern or if a longer string, could match the pattern.
 
max() - Method in class java.lang.Iterable
Adds max() method to Iterable objects.
 
max(groovy.lang.Closure) - Method in class java.lang.Iterable
Selects an item in the collection having the maximum value as determined by the supplied closure.
 
max(java.util.Comparator) - Method in class java.lang.Iterable
Selects the maximum value found in the Iterable using the given comparator.
 
metaClass(groovy.lang.Closure) - Method in class java.lang.Class
Sets/updates the metaclass for a given class to a closure.
 
min() - Method in class java.lang.Iterable
Adds min() method to Collection objects.
 
min(groovy.lang.Closure) - Method in class java.lang.Iterable
Selects an item in the collection having the minimum value as determined by the supplied closure.
 
min(java.util.Comparator) - Method in class java.lang.Iterable
Selects the minimum value found in the Iterable using the given comparator.
 
minus(int) - Method in class java.util.Date
Subtract a number of days from this date and returns the new date.
 
minus(java.lang.Character) - Method in class java.lang.Character
Subtract one Character from another.
 
minus(java.lang.Iterable) - Method in class java.lang.Object[]
Create an array composed of the elements of the first array minus the elements of the given Iterable.
 
minus(java.lang.Number) - Method in class java.lang.Character
Subtract a Number from a Character.
 
minus(java.lang.Object) - Method in class java.lang.CharSequence
Remove a part of a CharSequence by replacing the first occurrence of target within self with '' and returns the result.
 
minus(java.lang.Object[]) - Method in class java.lang.Object[]
Create an array composed of the elements of the first array minus the elements of the given array.
 
minus(java.util.Calendar) - Method in class java.util.Calendar
Subtract another date from this one and return the number of days of the difference.
 
minus(java.util.Collection) - Method in class java.util.List
Create a List composed of the elements of the first list minus every occurrence of elements of the given Collection.
 
minus(java.util.Date) - Method in class java.util.Date
Subtract another Date from this one and return the number of days of the difference.
 
minus(java.util.Map) - Method in class java.util.Map
Create a Map composed of the entries of the first map minus the entries of the given map.
 
minus(java.util.regex.Pattern) - Method in class java.lang.String
Remove a part of a String.
 
mixin(java.lang.Class) - Method in class java.lang.Class
Extend class globally with category methods.
 
mixin(java.lang.Class[]) - Method in class java.lang.Class
Extend class globally with category methods.
 
mixin(java.util.List) - Method in class java.lang.Class
Extend class globally with category methods.
 
mod(java.lang.Number) - Method in class java.lang.Number
Performs a division modulus operation.
 
multiply(java.lang.Character) - Method in class java.lang.Character
Multiply two Characters.
 
multiply(java.lang.Double) - Method in class java.math.BigDecimal
Multiply a BigDecimal and a Double.
 
multiply(java.lang.Number) - Method in class java.lang.CharSequence
Repeat a CharSequence a certain number of times.
 
multiply(java.math.BigInteger) - Method in class java.math.BigDecimal
Multiply a BigDecimal and a BigInteger.
 

N

newDataInputStream() - Method in class java.io.File
Create a data input stream for this file
 
newDataOutputStream() - Method in class java.io.File
Creates a new data output stream for this file.
 
newInputStream() - Method in class java.io.File
Creates a buffered input stream for this file.
 
newInputStream(java.util.Map) - Method in class java.net.URL
Creates a buffered input stream for this URL.
 
newInstance() - Method in class java.lang.Class
Convenience method to dynamically create a new instance of this class.
 
newInstance(java.lang.Object[]) - Method in class java.lang.Class
Helper to construct a new instance from the given arguments.
 
newObjectInputStream() - Method in class java.io.File
Create an object input stream for this file.
 
newObjectInputStream(java.lang.ClassLoader) - Method in class java.io.File
Create an object input stream for this file using the given class loader.
 
newObjectOutputStream() - Method in class java.io.File
Create an object output stream for this file.
 
newOutputStream() - Method in class java.io.File
Create a buffered output stream for this file.
 
newPrintWriter() - Method in class java.io.File
Create a new PrintWriter for this file.
 
newPrintWriter(java.lang.String) - Method in class java.io.File
Create a new PrintWriter for this file, using specified charset.
 
newReader() - Method in class java.io.File
Create a buffered reader for this file.
 
newReader(java.lang.String) - Method in class java.io.File
Create a buffered reader for this file, using the specified charset as the encoding.
 
newReader(java.util.Map) - Method in class java.net.URL
Creates a buffered reader for this URL.
 
newReader(java.util.Map, java.lang.String) - Method in class java.net.URL
Creates a buffered reader for this URL using the given encoding.
 
newWriter() - Method in class java.io.File
Create a buffered writer for this file.
 
newWriter(boolean) - Method in class java.io.File
Creates a buffered writer for this file, optionally appending to the existing file content.
 
newWriter(java.lang.String) - Method in class java.io.File
Creates a buffered writer for this file, writing data using the given encoding.
 
newWriter(java.lang.String, boolean) - Method in class java.io.File
Helper method to create a buffered writer for a file.
 
next() - Method in class java.lang.CharSequence
This method is called by the ++ operator for the class CharSequence.
 
normalize() - Method in class java.lang.CharSequence
Return a CharSequence with linefeeds and carriage returns normalized to linefeeds.
 
numberAwareCompareTo(java.lang.Comparable) - Method in class java.lang.Comparable
Provides a method that compares two comparables using Groovy's default number aware comparator.
 

O

or(java.lang.Boolean) - Method in class java.lang.Boolean
Logical disjunction of two boolean operators
 
or(java.lang.Number) - Method in class java.lang.Number
Bitwise OR together two numbers.
 
or(java.lang.Process) - Method in class java.lang.Process
Overrides the or operator to allow one Process to asynchronously pipe data to another Process.
 
or(java.util.BitSet) - Method in class java.util.BitSet
Bitwise OR together two BitSets.
 

P

padLeft(java.lang.Number) - Method in class java.lang.CharSequence
Pad a CharSequence to a minimum length specified by numberOfChars by adding the space character to the left as many times as needed.
 
padLeft(java.lang.Number, java.lang.CharSequence) - Method in class java.lang.CharSequence
Pad a CharSequence to a minimum length specified by numberOfChars, adding the supplied padding CharSequence as many times as needed to the left.
 
padLeft(java.lang.Number, java.lang.String) - Method in class java.lang.String
Pad a String to a minimum length specified by numberOfChars, adding the supplied padding String as many times as needed to the left.
 
padRight(java.lang.Number) - Method in class java.lang.CharSequence
Pad a CharSequence to a minimum length specified by numberOfChars by adding the space character to the right as many times as needed.
 
padRight(java.lang.Number, java.lang.CharSequence) - Method in class java.lang.CharSequence
Pad a CharSequence to a minimum length specified by numberOfChars, adding the supplied padding CharSequence as many times as needed to the right.
 
padRight(java.lang.Number, java.lang.String) - Method in class java.lang.String
Pad a String to a minimum length specified by numberOfChars, adding the supplied padding String as many times as needed to the right.
 
parse(java.lang.String, java.lang.String) - Method in class java.util.Date
Parse a String into a Date instance using the given pattern.
 
parseToStringDate(java.lang.String) - Method in class java.util.Date
Parse a String matching the pattern EEE MMM dd HH:mm:ss zzz yyyy containing US-locale-constants only (e.g.
 
permutations() - Method in class java.util.List
Finds all permutations of a collection.
 
permutations(groovy.lang.Closure) - Method in class java.util.List
Finds all permutations of a collection, applies a function to each permutation and collects the result into a list.
 
pipeTo(java.lang.Process) - Method in class java.lang.Process
Allows one Process to asynchronously pipe data to another Process.
 
plus(T) - Method in class java.lang.Object[]
Create an array containing elements from an original array plus an additional appended element.
 
plus(T[]) - Method in class java.lang.Object[]
Create an array as a union of two arrays.
 
plus(int) - Method in class java.util.Date
Add a number of days to this date and returns the new date.
 
plus(int, T[]) - Method in class java.util.List
Creates a new List by inserting all of the elements in the specified array to the elements from the original List at the specified index.
 
plus(int, java.lang.Iterable) - Method in class java.util.List
Creates a new List by inserting all of the elements in the given Iterable to the elements from this List at the specified index.
 
plus(int, java.util.List) - Method in class java.util.List
Creates a new List by inserting all of the elements in the given additions List to the elements from the original List at the specified index.
 
plus(java.lang.CharSequence) - Method in class java.lang.String
Appends the String representation of the given operand to this string.
 
plus(java.lang.Character) - Method in class java.lang.Character
Add one Character to another.
 
plus(java.lang.Iterable) - Method in class java.lang.Object[]
Create an array containing elements from an original array plus those from an Iterable.
 
plus(java.lang.Number) - Method in class java.lang.Character
Add a Character and a Number.
 
plus(java.lang.Object) - Method in class java.lang.CharSequence
Appends the String representation of the given operand to this string.
 
plus(java.lang.String) - Method in class java.lang.Number
Appends a String to the string representation of this number.
 
plus(java.util.Collection) - Method in class java.lang.Object[]
Create an array containing elements from an original array plus those from a Collection.
 
plus(java.util.Map) - Method in class java.util.Map
Returns a new Map containing all entries from left and right, giving precedence to right.
 
pop() - Method in class java.util.List
Removes the last item from the List.
 
power(java.lang.Integer) - Method in class java.lang.Integer
Power of an integer to an integer certain exponent.
 
power(java.lang.Number) - Method in class java.lang.Number
Power of a Number to a certain exponent.
 
previous() - Method in class java.lang.CharSequence
This method is called by the -- operator for the class CharSequence.
 
print(java.io.PrintWriter) - Method in class java.lang.Object
Print to a console in interactive format.
 
print(java.lang.Object) - Method in class java.lang.Object
Print a value formatted Groovy style to self if it is a Writer, otherwise to the standard output stream.
 
printf(java.lang.String, java.lang.Object) - Method in class java.lang.Object
Prints a formatted string using the specified format string and arguments.
 
printf(java.lang.String, java.lang.Object[]) - Method in class java.lang.Object
Printf to a console (Only works with JDK1.5 or later).
 
println() - Method in class java.lang.Object
Print a linebreak to the standard output stream.
 
println(java.io.PrintWriter) - Method in class java.lang.Object
Print to a console in interactive format.
 
println(java.lang.Object) - Method in class java.lang.Object
Print a value formatted Groovy style (followed by a newline) to self if it is a Writer, otherwise to the standard output stream.
 
push(T) - Method in class java.util.List
Appends an item to the List.
 
putAll(java.util.Collection) - Method in class java.util.Map
Provides an easy way to append multiple Map.Entry values to a Map.
 
putAt(K, V) - Method in class java.util.Map
A helper method to allow maps to work with subscript operators
 
putAt(groovy.lang.EmptyRange, java.lang.Object) - Method in class java.lang.StringBuffer
Support the range subscript operator for StringBuffer.
 
putAt(groovy.lang.EmptyRange, java.util.Collection) - Method in class java.util.List
A helper method to allow lists to work with subscript operators.
 
putAt(groovy.lang.IntRange, boolean) - Method in class java.util.BitSet
Support assigning a range of values with a single assignment statement.
 
putAt(groovy.lang.IntRange, java.lang.Object) - Method in class java.lang.StringBuffer
Support the range subscript operator for StringBuffer.
 
putAt(groovy.lang.IntRange, java.util.Collection) - Method in class java.util.List
List subscript assignment operator when given a range as the index and the assignment operand is a collection.
 
putAt(int, T) - Method in class java.util.List
A helper method to allow lists to work with subscript operators.
 
putAt(int, boolean) - Method in class java.util.BitSet
Support subscript-style assignment for a BitSet.
 
putAt(int, int) - Method in class java.util.Calendar
Support the subscript operator for mutating a Calendar.
 
putAt(int, java.lang.Object) - Method in class javax.swing.DefaultListModel
Allow DefaultListModel to work with subscript operators.
 
putAt(int, javax.swing.tree.MutableTreeNode) - Method in class javax.swing.tree.MutableTreeNode
Allow MutableTreeNode to work with subscript operators.
 
putAt(java.lang.String, java.lang.Object) - Method in class java.lang.Object
Allows the subscript operator to be used to set dynamically named property values.
 
putAt(java.util.List, java.lang.Object) - Method in class java.util.List
A helper method to allow lists to work with subscript operators.
 
putAt(java.util.List, java.util.List) - Method in class java.util.List
A helper method to allow lists to work with subscript operators.
 

R

readBytes() - Method in class java.io.File
Reads the content of the file into a byte array.
 
readLine() - Method in class java.io.Reader
Read a single, whole line from the given Reader.
 
readLines() - Method in class java.lang.CharSequence
Return the lines of a CharSequence as a List of CharSequence.
 
readLines(java.lang.String) - Method in class java.io.File
Reads the file into a list of Strings, with one item for each line.
 
removeAll(groovy.lang.Closure) - Method in class java.util.Collection
Modifies this collection by removing the elements that are matched according to the specified closure condition.
 
removeAll(java.lang.Object[]) - Method in class java.util.Collection
Modifies this collection by removing its elements that are contained within the specified object array.
 
renameTo(java.lang.String) - Method in class java.io.File
Renames the file.
 
replaceAll(java.lang.CharSequence, groovy.lang.Closure) - Method in class java.lang.CharSequence
Replaces all occurrences of a captured group by the result of a closure on that text.
 
replaceAll(java.lang.CharSequence, java.lang.CharSequence) - Method in class java.lang.CharSequence
Replaces each substring of this CharSequence that matches the given regular expression with the given replacement.
 
replaceAll(java.lang.String, groovy.lang.Closure) - Method in class java.lang.String
Replaces all occurrences of a captured group by the result of a closure on that text.
 
replaceAll(java.util.regex.Pattern, groovy.lang.Closure) - Method in class java.lang.CharSequence
Replaces all occurrences of a captured group by the result of a closure call on that text.
 
replaceAll(java.util.regex.Pattern, java.lang.CharSequence) - Method in class java.lang.CharSequence
Replaces all substrings of a CharSequence that match the given compiled regular expression with the given replacement.
 
replaceAll(java.util.regex.Pattern, java.lang.String) - Method in class java.lang.String
Replaces all substrings of a String that match the given compiled regular expression with the given replacement.
 
replaceFirst(java.lang.CharSequence, groovy.lang.Closure) - Method in class java.lang.CharSequence
Replaces the first occurrence of a captured group by the result of a closure call on that text.
 
replaceFirst(java.lang.CharSequence, java.lang.CharSequence) - Method in class java.lang.CharSequence
Replaces the first substring of this CharSequence that matches the given regular expression with the given replacement.
 
replaceFirst(java.lang.String, groovy.lang.Closure) - Method in class java.lang.String
Replaces the first occurrence of a captured group by the result of a closure call on that text.
 
replaceFirst(java.util.regex.Pattern, groovy.lang.Closure) - Method in class java.lang.CharSequence
Replaces the first occurrence of a captured group by the result of a closure call on that text.
 
replaceFirst(java.util.regex.Pattern, java.lang.CharSequence) - Method in class java.lang.CharSequence
Replaces the first substring of a CharSequence that matches the given compiled regular expression with the given replacement.
 
replaceFirst(java.util.regex.Pattern, java.lang.String) - Method in class java.lang.String
Replaces the first substring of a String that matches the given compiled regular expression with the given replacement.
 
respondsTo(java.lang.String) - Method in class java.lang.Object

Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of the arguments.

 
respondsTo(java.lang.String, java.lang.Object[]) - Method in class java.lang.Object

Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types.

 
retainAll(groovy.lang.Closure) - Method in class java.util.Collection
Modifies this collection so that it retains only its elements that are matched according to the specified closure condition.
 
retainAll(java.lang.Object[]) - Method in class java.util.Collection
Modifies this collection so that it retains only its elements that are contained in the specified array.
 
reverse() - Method in class java.lang.CharSequence
Creates a new CharSequence which is the reverse (backwards) of this string
 
reverse(boolean) - Method in class java.lang.Object[]
Reverse the items in an array.
 
reverseEach(groovy.lang.Closure) - Method in class java.lang.Object[]
Iterate over each element of the array in the reverse order.
 
rightShift(java.lang.Number) - Method in class java.lang.Number
Implementation of the right shift operator for integral types.
 
rightShiftUnsigned(java.lang.Number) - Method in class java.lang.Number
Implementation of the right shift (unsigned) operator for integral types.
 
round() - Method in class java.lang.Double
Round the value
 
round(int) - Method in class java.lang.Double
Round the value
 
runAfter(int, groovy.lang.Closure) - Method in class java.util.Timer
Allows a simple syntax for using timers.
 

S

serialize() - Method in class org.w3c.dom.Element
Transforms the element to its text equivalent.
 
set(java.util.Map) - Method in class java.util.Calendar
Support mutating a Calendar with a Map.
 
setBytes(byte[]) - Method in class java.io.File
Write the bytes from the byte array to the File.
 
setIndex(int) - Method in class java.util.regex.Matcher
Set the position of the given Matcher to the given index.
 
setMetaClass(groovy.lang.MetaClass) - Method in class java.lang.Class
Sets the metaclass for a given class.
 
setText(java.lang.String) - Method in class java.io.File
Synonym for write(text) allowing file.text = 'foo'.
 
setText(java.lang.String, java.lang.String) - Method in class java.io.File
Synonym for write(text, charset) allowing:
myFile.setText('some text', charset)
or with some help from ExpandoMetaClass, you could do something like:
myFile.metaClass.setText = { String s -> delegate.setText(s, 'UTF-8') }
myfile.text = 'some text'
 
size() - Method in class java.lang.CharSequence
Provide the standard Groovy size() method for CharSequence.
 
sleep(long) - Method in class java.lang.Object
Sleep for so many milliseconds, even if interrupted.
 
sleep(long, groovy.lang.Closure) - Method in class java.lang.Object
Sleep for so many milliseconds, using a given closure for interrupt processing.
 
sort() - Method in class java.lang.Iterable
Sorts the Collection.
 
sort(boolean) - Method in class java.lang.Iterable
Sorts the Iterable.
 
sort(boolean, groovy.lang.Closure) - Method in class java.lang.Iterable
Sorts this Iterable using the given Closure to determine the correct ordering.
 
sort(boolean, java.util.Comparator) - Method in class java.lang.Iterable
Sorts the Iterable using the given Comparator.
 
sort(groovy.lang.Closure) - Method in class java.lang.Iterable
Sorts this Iterable using the given Closure to determine the correct ordering.
 
sort(java.util.Comparator) - Method in class java.lang.Iterable
Sorts the Iterable using the given Comparator.
 
split() - Method in class java.lang.CharSequence
Convenience method to split a CharSequence (with whitespace as delimiter).
 
split(groovy.lang.Closure) - Method in class java.lang.Object
Splits all items into two lists based on the closure condition.
 
splitEachLine(java.lang.CharSequence, groovy.lang.Closure) - Method in class java.lang.CharSequence
Iterates through the given CharSequence line by line, splitting each line using the given separator.
 
splitEachLine(java.lang.String, groovy.lang.Closure) - Method in class java.lang.String
Iterates through the given String line by line, splitting each line using the given separator.
 
splitEachLine(java.lang.String, java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Iterates through this file line by line, splitting each line using the given regex separator.
 
splitEachLine(java.util.regex.Pattern, groovy.lang.Closure) - Method in class java.lang.CharSequence
Iterates through the given CharSequence line by line, splitting each line using the given separator Pattern.
 
splitEachLine(java.util.regex.Pattern, java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Iterates through this file line by line, splitting each line using the given regex separator Pattern.
 
spread() - Method in class java.util.Map
Synonym for Map#toSpreadMap.
 
sprintf(java.lang.String, java.lang.Object) - Method in class java.lang.Object
Returns a formatted string using the specified format string and arguments.
 
sprintf(java.lang.String, java.lang.Object[]) - Method in class java.lang.Object
Sprintf to a string (Only works with JDK1.5 or later).
 
start(groovy.lang.Closure) - Method in class java.lang.Thread
Start a Thread with the given closure as a Runnable instance.
 
start(java.lang.String, groovy.lang.Closure) - Method in class java.lang.Thread
Start a Thread with a given name and the given closure as a Runnable instance.
 
startDaemon(groovy.lang.Closure) - Method in class java.lang.Thread
Start a daemon Thread with the given closure as a Runnable instance.
 
startDaemon(java.lang.String, groovy.lang.Closure) - Method in class java.lang.Thread
Start a daemon Thread with a given name and the given closure as a Runnable instance.
 
step(java.lang.Number, java.lang.Number, groovy.lang.Closure) - Method in class java.lang.Number
Iterates from this number up to the given number using a step increment.
 
stripIndent() - Method in class java.lang.CharSequence
Strip leading spaces from every line in a CharSequence.
 
stripIndent(int) - Method in class java.lang.CharSequence
Strip numChar leading characters from every line in a CharSequence.
 
stripMargin() - Method in class java.lang.CharSequence
Strip leading whitespace/control characters followed by '|' from every line in a CharSequence.
 
stripMargin(char) - Method in class java.lang.CharSequence
Strip leading whitespace/control characters followed by marginChar from every line in a String.
 
stripMargin(java.lang.CharSequence) - Method in class java.lang.CharSequence
Strip leading whitespace/control characters followed by marginChar from every line in a CharSequence.
 
stripMargin(java.lang.String) - Method in class java.lang.String
Strip leading whitespace/control characters followed by marginChar from every line in a String.
 
subMap(K[]) - Method in class java.util.Map
Creates a sub-Map containing the given keys.
 
subMap(java.util.Collection) - Method in class java.util.Map
Creates a sub-Map containing the given keys.
 
subsequences() - Method in class java.util.List
Finds all non-null subsequences of a list.
 
sum() - Method in class java.lang.Iterable
Sums the items in an Iterable.
 
sum(groovy.lang.Closure) - Method in class java.lang.Iterable
Sums the result of apply a closure to each item of an Iterable.
 
sum(java.lang.Object) - Method in class java.lang.Iterable
Sums the items in an Iterable, adding the result to some initial value.
 
sum(java.lang.Object, groovy.lang.Closure) - Method in class java.lang.Iterable
Sums the result of applying a closure to each item of an Iterable to some initial value.
 

T

tail() - Method in class java.lang.Object[]
Returns the items from the Object array excluding the first item.
 
take(int) - Method in class java.lang.CharSequence
Returns the first num elements from this CharSequence.
 
takeWhile(groovy.lang.Closure) - Method in class java.lang.CharSequence
Returns the longest prefix of this CharSequence where each element passed to the given closure evaluates to true.
 
times(groovy.lang.Closure) - Method in class java.lang.Number
Executes the closure this many times, starting from zero.
 
toArrayString() - Method in class java.lang.Object[]
Returns the string representation of the given array.
 
toBigDecimal() - Method in class java.lang.CharSequence
Parse a CharSequence into a BigDecimal
 
toBigInteger() - Method in class java.lang.CharSequence
Parse a CharSequence into a BigInteger
 
toBoolean() - Method in class java.lang.Boolean
Identity conversion which returns Boolean.TRUE for a true Boolean and Boolean.FALSE for a false Boolean.
 
toCalendar() - Method in class java.util.Date
Convert a Date to a Calendar.
 
toCharacter() - Method in class java.lang.String
Converts the given string into a Character object using the first character in the string.
 
toDouble() - Method in class java.lang.CharSequence
Parse a CharSequence into a Double
 
toFloat() - Method in class java.lang.CharSequence
Parse a CharSequence into a Float
 
toInteger() - Method in class java.lang.CharSequence
Parse a CharSequence into an Integer
 
toList() - Method in class java.lang.CharSequence
Converts the given CharSequence into a List of CharSequence of one character.
 
toListString() - Method in class java.util.Collection
Returns the string representation of the given list.
 
toListString(int) - Method in class java.util.Collection
Returns the string representation of the given list.
 
toLong() - Method in class java.lang.CharSequence
Parse a CharSequence into a Long
 
toLowerCase() - Method in class java.lang.Character
Converts the character to lowercase.
 
toMapString() - Method in class java.util.Map
Returns the string representation of this map.
 
toMapString(int) - Method in class java.util.Map
Returns the string representation of this map.
 
toRowResult() - Method in class java.sql.ResultSet
Returns a GroovyRowResult given a ResultSet.
 
toSet() - Method in class java.lang.CharSequence
Converts the given CharSequence into a Set of unique CharSequence of one character.
 
toShort() - Method in class java.lang.CharSequence
Parse a CharSequence into a Short
 
toSpreadMap() - Method in class java.lang.Object[]
Creates a spreadable map from this array.
 
toString() - Method in class java.lang.Object
Create a String representation of this object.
 
toTimestamp() - Method in class java.util.Date
Return a java.sql.Timestamp given a java.util.Date.
 
toURI() - Method in class java.lang.CharSequence
Transforms a CharSequence representing a URI into a URI object.
 
toURL() - Method in class java.lang.CharSequence
Transforms a CharSequence representing a URL into a URL object.
 
toUpperCase() - Method in class java.lang.Character
Converts the character to uppercase.
 
tokenize() - Method in class java.lang.CharSequence
Tokenize a CharSequence (with a whitespace as the delimiter).
 
tokenize(java.lang.CharSequence) - Method in class java.lang.CharSequence
Tokenize a CharSequence based on the given CharSequence delimiter.
 
tokenize(java.lang.Character) - Method in class java.lang.CharSequence
Tokenize a CharSequence based on the given character delimiter.
 
tokenize(java.lang.String) - Method in class java.lang.String
Tokenize a String based on the given string delimiter.
 
tr(java.lang.CharSequence, java.lang.CharSequence) - Method in class java.lang.CharSequence
Translates a string by replacing characters from the sourceSet with characters from replacementSet.
 
tr(java.lang.String, java.lang.String) - Method in class java.lang.String
Translates a string by replacing characters from the sourceSet with characters from replacementSet.
 
transformChar(java.io.Writer, groovy.lang.Closure) - Method in class java.io.Reader
Transforms each character from this reader by passing it to the given closure.
 
transformLine(java.io.Writer, groovy.lang.Closure) - Method in class java.io.Reader
Transforms the lines from a reader with a Closure and write them to a writer.
 
transpose() - Method in class java.util.List
Adds GroovyCollections#transpose(List) as a method on lists.
 
traverse(groovy.lang.Closure) - Method in class java.io.File
Invokes the closure for each descendant file in this directory tree.
 
traverse(java.util.Map) - Method in class java.io.File
Invokes the closure specified with key 'visit' in the options Map for each descendant file in this directory tree.
 
traverse(java.util.Map, groovy.lang.Closure) - Method in class java.io.File
Invokes closure for each descendant file in this directory tree.
 
trunc() - Method in class java.lang.Double
Truncate the value
 
trunc(int) - Method in class java.lang.Double
Truncate the value
 

U

unaryMinus() - Method in class java.lang.Number
Negates the number.
 
unaryPlus() - Method in class java.lang.Number
Returns the number, effectively being a noop for numbers.
 
unexpand() - Method in class java.lang.CharSequence
Replaces sequences of whitespaces with tabs using tabStops of size 8.
 
unexpand(int) - Method in class java.lang.CharSequence
Replaces sequences of whitespaces with tabs.
 
unexpandLine(int) - Method in class java.lang.CharSequence
Replaces sequences of whitespaces with tabs within a line.
 
unique() - Method in class java.util.Collection
Modifies this collection to remove all duplicated items, using the default comparator.
 
unique(boolean) - Method in class java.util.Collection
Remove all duplicates from a given Collection using the default comparator.
 
unique(boolean, groovy.lang.Closure) - Method in class java.util.Collection
A convenience method for making a collection unique using a Closure to determine duplicate (equal) items.
 
unique(boolean, java.util.Comparator) - Method in class java.util.Collection
Remove all duplicates from a given Collection.
 
unique(groovy.lang.Closure) - Method in class java.util.Collection
A convenience method for making a collection unique using a Closure to determine duplicate (equal) items.
 
unique(java.util.Comparator) - Method in class java.util.Collection
Remove all duplicates from a given Collection.
 
updated(java.util.Map) - Method in class java.util.Calendar
Legacy alias for copyWith.
 
upto(java.lang.Number, groovy.lang.Closure) - Method in class java.lang.Double
Iterates from this number up to the given number, inclusive, incrementing by one each time.
 
upto(java.util.Calendar, groovy.lang.Closure) - Method in class java.util.Calendar
Iterates from the date represented by this calendar up to the date represented by the given calendar, inclusive, incrementing by one day each time.
 
upto(java.util.Date, groovy.lang.Closure) - Method in class java.util.Date
Iterates from this date up to the given date, inclusive, incrementing by one day each time.
 
use(java.lang.Class, groovy.lang.Closure) - Method in class java.lang.Object
Scoped use method
 
use(java.lang.Object[]) - Method in class java.lang.Object
Allows you to use a list of categories, specifying the list as varargs.
 
use(java.util.List, groovy.lang.Closure) - Method in class java.lang.Object
Scoped use method with list of categories.
 

W

waitForOrKill(long) - Method in class java.lang.Process
Wait for the process to finish during a certain amount of time, otherwise stops the process.
 
waitForProcessOutput() - Method in class java.lang.Process
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
 
waitForProcessOutput(java.io.OutputStream, java.io.OutputStream) - Method in class java.lang.Process
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
 
waitForProcessOutput(java.lang.Appendable, java.lang.Appendable) - Method in class java.lang.Process
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
 
with(groovy.lang.Closure) - Method in class java.lang.Object
Allows the closure to be called for the object reference self.
 
withDataInputStream(groovy.lang.Closure) - Method in class java.io.File
Create a new DataInputStream for this file and passes it into the closure.
 
withDataOutputStream(groovy.lang.Closure) - Method in class java.io.File
Create a new DataOutputStream for this file and passes it into the closure.
 
withDefault(groovy.lang.Closure) - Method in class java.util.List
An alias for withLazyDefault which decorates a list allowing it to grow when called with index values outside the normal list bounds.
 
withEagerDefault(groovy.lang.Closure) - Method in class java.util.List
Decorates a list allowing it to grow when called with a non-existent index value.
 
withFormatter(groovy.lang.Closure) - Method in class java.lang.Appendable
Invokes a Closure that uses a Formatter taking care of resource handling.
 
withFormatter(java.util.Locale, groovy.lang.Closure) - Method in class java.lang.Appendable
Invokes a Closure that uses a Formatter taking care of resource handling.
 
withInputStream(groovy.lang.Closure) - Method in class java.io.File
Create a new InputStream for this file and passes it into the closure.
 
withLazyDefault(groovy.lang.Closure) - Method in class java.util.List
Decorates a list allowing it to grow when called with a non-existent index value.
 
withObjectInputStream(groovy.lang.Closure) - Method in class java.io.File
Create a new ObjectInputStream for this file and pass it to the closure.
 
withObjectInputStream(java.lang.ClassLoader, groovy.lang.Closure) - Method in class java.io.File
Create a new ObjectInputStream for this file associated with the given class loader and pass it to the closure.
 
withObjectOutputStream(groovy.lang.Closure) - Method in class java.io.File
Create a new ObjectOutputStream for this file and then pass it to the closure.
 
withObjectStreams(groovy.lang.Closure) - Method in class java.net.Socket
Creates an InputObjectStream and an OutputObjectStream from a Socket, and passes them to the closure.
 
withOutputStream(groovy.lang.Closure) - Method in class java.lang.Process
Creates a new buffered OutputStream as stdin for this process, passes it to the closure, and ensures the stream is flushed and closed after the closure returns.
 
withPrintWriter(groovy.lang.Closure) - Method in class java.io.File
Create a new PrintWriter for this file which is then passed it into the given closure.
 
withPrintWriter(java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Create a new PrintWriter with a specified charset for this file.
 
withReader(groovy.lang.Closure) - Method in class java.io.File
Create a new BufferedReader for this file and then passes it into the closure, ensuring the reader is closed after the closure returns.
 
withReader(java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Create a new BufferedReader for this file using the specified charset and then passes it into the closure, ensuring the reader is closed after the closure returns.
 
withStream(groovy.lang.Closure) - Method in class java.io.InputStream
Allows this input stream to be used within the closure, ensuring that it is flushed and closed before this method returns.
 
withStreams(groovy.lang.Closure) - Method in class java.net.Socket
Passes the Socket's InputStream and OutputStream to the closure.
 
withWriter(groovy.lang.Closure) - Method in class java.lang.Process
Creates a new BufferedWriter as stdin for this process, passes it to the closure, and ensures the stream is flushed and closed after the closure returns.
 
withWriter(java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Creates a new BufferedWriter for this file, passes it to the closure, and ensures the stream is flushed and closed after the closure returns.
 
withWriterAppend(groovy.lang.Closure) - Method in class java.io.File
Create a new BufferedWriter for this file in append mode.
 
withWriterAppend(java.lang.String, groovy.lang.Closure) - Method in class java.io.File
Create a new BufferedWriter which will append to this file.
 
write(groovy.lang.Writable) - Method in class java.io.Writer
A helper method so that dynamic dispatch of the writer.write(object) method will always use the more efficient Writable.writeTo(writer) mechanism if the object implements the Writable interface.
 
write(java.lang.String) - Method in class java.io.File
Write the text to the File.
 
write(java.lang.String, java.lang.String) - Method in class java.io.File
Write the text to the File, using the specified encoding.
 
writeLine(java.lang.String) - Method in class java.io.BufferedWriter
Write the text and append a newline (using the platform's line-ending).
 

X

xor(java.lang.Boolean) - Method in class java.lang.Boolean
Exclusive disjunction of two boolean operators
 
xor(java.lang.Number) - Method in class java.lang.Number
Bitwise XOR together two Numbers.
 
xor(java.util.BitSet) - Method in class java.util.BitSet
Bitwise XOR together two BitSets.
 

A B C D E F G H I J L M N O P R S T U W X
Groovy JDK