|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Closure | |
groovy.gdo | GroovyDataObjects (GDO) API for working with arbitrary structured data as groovy objects, perfoming searches & sorting using Groocy syntax & closures etc. |
groovy.lang | Core Groovy language classes for implementing data structures, closures, metadata and so forth. |
groovy.mock | GroovyMock is a mock testing library for Groovy objects. |
groovy.model | An MVC model package for working with user interfaces and data structures and arbitrary Java and Groovy objects |
groovy.swing.impl | Implementation classes for the Swing GroovyMarkup builder |
groovy.util | Various Groovy utilities for working with nodes, builders, logging, JUnit test cases, text expressions, Ant tasks or JMX MBeans. |
org.codehaus.groovy.runtime | Runtime classes for Groovy - whether the dynamic interpreter is being used, the compiler or the bytecode generator. |
Uses of Closure in groovy.gdo |
Methods in groovy.gdo with parameters of type Closure | |
groovy.gdo.DataSet |
DataSet.findAll(groovy.lang.Closure where)
|
void |
DataSet.each(groovy.lang.Closure closure)
|
void |
Sql.query(String sql,
groovy.lang.Closure closure)
Performs the given SQL query calling the closure with the result set |
void |
Sql.query(String sql,
List params,
groovy.lang.Closure closure)
Performs the given SQL query with parameters calling the closure with the result set |
void |
Sql.query(groovy.lang.GString gstring,
groovy.lang.Closure closure)
Performs the given SQL query calling the closure with the result set |
void |
Sql.queryEach(String sql,
groovy.lang.Closure closure)
Performs the given SQL query calling the closure with each row of the result set |
void |
Sql.queryEach(String sql,
List params,
groovy.lang.Closure closure)
Performs the given SQL query calling the closure with the result set |
void |
Sql.queryEach(groovy.lang.GString gstring,
groovy.lang.Closure closure)
Performs the given SQL query calling the closure with the result set |
Constructors in groovy.gdo with parameters of type Closure | |
DataSet(groovy.gdo.DataSet parent,
groovy.lang.Closure where)
|
Uses of Closure in groovy.lang |
Methods in groovy.lang that return Closure | |
groovy.lang.Closure |
ClosureException.getClosure()
|
Methods in groovy.lang with parameters of type Closure | |
void |
IntRange.step(int step,
groovy.lang.Closure closure)
|
protected Object |
MetaClass.createListenerProxy(Class listenerType,
String listenerMethodName,
groovy.lang.Closure closure)
|
void |
ObjectRange.step(int step,
groovy.lang.Closure closure)
|
Constructors in groovy.lang with parameters of type Closure | |
ClosureException(groovy.lang.Closure closure,
Throwable cause)
|
Uses of Closure in groovy.mock |
Constructors in groovy.mock with parameters of type Closure | |
ClosureConstraintMatcher(groovy.lang.Closure closure)
|
Uses of Closure in groovy.model |
Methods in groovy.model with parameters of type Closure | |
groovy.model.DefaultTableColumn |
DefaultTableModel.addClosureColumn(Object headerValue,
groovy.lang.Closure readClosure,
groovy.lang.Closure writeClosure,
Class type)
Adds a closure based column to the table |
groovy.model.DefaultTableColumn |
DefaultTableModel.addClosureColumn(Object headerValue,
groovy.lang.Closure readClosure,
groovy.lang.Closure writeClosure,
Class type)
Adds a closure based column to the table |
Constructors in groovy.model with parameters of type Closure | |
ClosureModel(groovy.model.ValueModel sourceModel,
groovy.lang.Closure readClosure)
|
|
ClosureModel(groovy.model.ValueModel sourceModel,
groovy.lang.Closure readClosure,
groovy.lang.Closure writeClosure)
|
|
ClosureModel(groovy.model.ValueModel sourceModel,
groovy.lang.Closure readClosure,
groovy.lang.Closure writeClosure)
|
|
ClosureModel(groovy.model.ValueModel sourceModel,
groovy.lang.Closure readClosure,
groovy.lang.Closure writeClosure,
Class type)
|
|
ClosureModel(groovy.model.ValueModel sourceModel,
groovy.lang.Closure readClosure,
groovy.lang.Closure writeClosure,
Class type)
|
Uses of Closure in groovy.swing.impl |
Methods in groovy.swing.impl that return Closure | |
groovy.lang.Closure |
DefaultAction.getClosure()
|
Methods in groovy.swing.impl with parameters of type Closure | |
void |
DefaultAction.setClosure(groovy.lang.Closure closure)
|
Uses of Closure in groovy.util |
Methods in groovy.util with parameters of type Closure | |
protected void |
GroovyTestCase.shouldFail(groovy.lang.Closure code)
Asserts that the given code closure fails when it is evaluated |
void |
OrderBy.add(groovy.lang.Closure closure)
|
Constructors in groovy.util with parameters of type Closure | |
BuilderSupport(groovy.lang.Closure nameMappingClosure,
groovy.util.BuilderSupport proxyBuilder)
|
|
ClosureComparator(groovy.lang.Closure closure)
|
|
OrderBy(groovy.lang.Closure closure)
|
Uses of Closure in org.codehaus.groovy.runtime |
Subclasses of Closure in org.codehaus.groovy.runtime | |
class |
IteratorClosureAdapter
A closure which stores calls in a List so that method calls can be iterated over in a 'yield' style way |
class |
MethodClosure
Represents a method on an object using a closure which can be invoked at any time |
Methods in org.codehaus.groovy.runtime with parameters of type Closure | |
void |
ClassExtender.addMethod(String name,
groovy.lang.Closure closure)
|
static void |
DefaultGroovyMethods.each(Object self,
groovy.lang.Closure closure)
Allows objects to be iterated through using a closure |
static void |
DefaultGroovyMethods.each(Collection self,
groovy.lang.Closure closure)
Allows objects to be iterated through using a closure |
static void |
DefaultGroovyMethods.each(Map self,
groovy.lang.Closure closure)
Allows objects to be iterated through using a closure |
static boolean |
DefaultGroovyMethods.every(Object self,
groovy.lang.Closure closure)
|
static boolean |
DefaultGroovyMethods.any(Object self,
groovy.lang.Closure closure)
|
static List |
DefaultGroovyMethods.map(Object self,
groovy.lang.Closure closure)
Maps the values of a collection to new values using the |
static List |
DefaultGroovyMethods.map(Collection self,
groovy.lang.Closure closure)
Collects the values of the closure |
static List |
DefaultGroovyMethods.map(Map self,
groovy.lang.Closure closure)
Collects the values of the closure |
static Object |
DefaultGroovyMethods.find(Object self,
groovy.lang.Closure closure)
Finds the first value matching the closure condition |
static Object |
DefaultGroovyMethods.find(Collection self,
groovy.lang.Closure closure)
Finds the first value matching the closure condition |
static Object |
DefaultGroovyMethods.find(Map self,
groovy.lang.Closure closure)
Finds the first value matching the closure condition |
static Object |
DefaultGroovyMethods.findAll(Object self,
groovy.lang.Closure closure)
Finds all values matching the closure condition |
static List |
DefaultGroovyMethods.findAll(Collection self,
groovy.lang.Closure closure)
Finds all values matching the closure condition |
static List |
DefaultGroovyMethods.findAll(Map self,
groovy.lang.Closure closure)
Finds all values matching the closure condition |
static Object |
DefaultGroovyMethods.inject(Collection self,
Object value,
groovy.lang.Closure closure)
Iterates through the given collection, passing in the initial value to the closure along with the current iterated item then passing into the next iteration the value of the previous closure. |
static Object |
DefaultGroovyMethods.min(Collection self,
groovy.lang.Closure closure)
Selects the minimum value found in the collection using the given closure as a comparator |
static Object |
DefaultGroovyMethods.max(Collection self,
groovy.lang.Closure closure)
Selects the maximum value found in the collection using the given closure as a comparator |
static List |
DefaultGroovyMethods.sort(List self,
groovy.lang.Closure closure)
A convenience method for sorting a List using a closure as a comparator |
static void |
DefaultGroovyMethods.times(Number self,
groovy.lang.Closure closure)
Iterates a number of times |
static void |
DefaultGroovyMethods.upto(Number self,
Number to,
groovy.lang.Closure closure)
Iterates from this number up to the given number |
static void |
DefaultGroovyMethods.step(Number self,
Number to,
Number stepNumber,
groovy.lang.Closure closure)
Iterates from this number up to the given number using a step increment |
static void |
DefaultGroovyMethods.eachLine(File self,
groovy.lang.Closure closure)
Iterates through the given file line by line |
static void |
DefaultGroovyMethods.eachFile(File self,
groovy.lang.Closure closure)
Invokes the closure for each file in the given directory |
static void |
DefaultGroovyMethods.query(Connection connection,
groovy.lang.GString gstring,
groovy.lang.Closure closure)
Iterates through the result set of an SQL query passing the result set into the closure |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |