languageShortName
using a newly created ScriptEngineManager
instance.Provides a method to perform custom 'dynamic' type conversion
to the given class using the as
operator.
as
operator.
size
.
size
. size
stepping through the code step
elements for each subList.
size
stepping through the code step
elements for each sub-list. transform
closure, returning a list of transformed values.
transform
closure
returning a list of transformed values.
transform
closure
returning a list of transformed values.
transform
closure
and adding it to the supplied collector
.transform
closure
and adding it to the supplied collector
.
transform
closure
returning the collector
with all transformed values added to it.
transform
closure
and returning a map of the resulting transformed entries.
transform
closure
and returning a map of the resulting transformed entries.
transform
closure
and returning a map of the transformed entries.
transform
closure
and returning a map of the resulting transformed entries.
transform
closure
returning a map of the transformed entries.
collector
.
collector
.
transform
closure. true
if the intersection of two iterables is empty.
eval(ScriptEngine, Reader, Binding)
except that the
source of the script is provided as a Reader
true
according to the Groovy Truth.
true
for all items in this iterable).
true
for all items in this data structure).
true
for all items in this iterator).
self
as a command-line process.
self
with environment defined by envp
and under the working directory dir
.
envp
and under the working directory dir
.
self
with environment defined
by envp
and under the working directory dir
.
envp
and under the working directory dir
.
Shortcut for SimpleDateFormat to output a String representation of this calendar instance.
Create a String representation of this date according to the given format pattern.
Create a String representation of this date according to the given format pattern and timezone.
Return a string representation of the 'day' portion of this date according to the locale-specific DateFormat#SHORT default format.
Return a string representation of the date and time time portion of this Date instance, according to the locale-specific format used by DateFormat.
String.metaClass.myMethod = { println "foo" }
Return a string representation of the time portion of this date according to the locale-specific DateFormat#MEDIUM default format.
Object#isCase(java.lang.Object)
method used by switch statements. Object#isCase(java.lang.Object)
method used by switch statements. Object#isCase(java.lang.Object)
method used by switch statements. Object#isCase(java.lang.Object)
method used by switch statements. Object#isCase(java.lang.Object)
method used by switch statements. 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
compareTo()
method for comparing numbers of different
types.toString()
representation of each
item in this Iterable, with the given String as a separator between each item.
toString()
representation of each
items in this array, with the given String as a separator between each
item.toString()
representation of each
item from the iterator, with the given String as a separator between
each item. Map
containing all entries from self
and entries
,
giving precedence to entries
. Map
containing all entries from left
and right
,
giving precedence to right
. Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of the arguments.
Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types.
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'
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 for Container
.size()
method for File
.size()
method for CharSequence
.size()
method for Iterable
.
size()
method for an array.size()
method for String
.size()
method for StringBuffer
.size()
method for Path
.size()
method for Iterator
.
size()
method for Matcher
.size()
method for ButtonGroup
.size()
method for JComboBox
.size()
method for JMenu
.size()
method for JMenuBar
.size()
method for JTabbedPane
.size()
method for ListModel
.size()
method for TableColumnModel
.size()
method for TableModel
.size()
method for TreeNode
.size()
method for TreePath
.num
elements from this CharSequence.
num
elements from the head of this Iterable.
num
elements from the head of this array.
num
elements from this iterator.
num
elements from the head of this List.
num
elements from the head of this map.
num
elements from the head of this SortedSet.
num
elements from the tail of this Iterable.
num
elements from the tail of this array.
num
elements from the tail of this List.
num
elements from the tail of this SortedSet.
SpreadMap
from this map.
withLazyDefault
which decorates a list allowing
it to grow when called with index values outside the normal list bounds.get(key)
.