Index
All Classes and Interfaces|All Packages
C
- ClosureToMapPopulator - Class in grails.util
-
A simple class that takes method invocations and property setters and populates the arguments of these into the supplied map ignoring null values.
- ClosureToMapPopulator() - Constructor for class grails.util.ClosureToMapPopulator
- ClosureToMapPopulator(Map) - Constructor for class grails.util.ClosureToMapPopulator
- collectionToObjectArray(Collection) - Static method in class grails.util.GrailsClassUtils
-
Convenience method for converting a collection to an Object[]
- CollectionUtils - Class in grails.util
-
Collection utility methods.
- copyExpandoMetaClass(Class<?>, Class<?>, boolean) - Static method in class grails.util.GrailsMetaClassUtils
-
Copies the ExpandoMetaClass dynamic methods and properties from one Class to another.
- createConcreteCollection(Class) - Static method in class grails.util.GrailsClassUtils
-
Creates a concrete collection for the suppied interface
D
- DefaultGrailsChildPropertySetter() - Constructor for class grails.util.DomainBuilder.DefaultGrailsChildPropertySetter
- DomainBuilder - Class in grails.util
-
Allows the construction of object graphs of domain classes.
- DomainBuilder() - Constructor for class grails.util.DomainBuilder
- DomainBuilder.DefaultGrailsChildPropertySetter - Class in grails.util
E
- ExtendedProxy - Class in grails.util
-
Extends the Groovy Proxy implementation and adds proxying of property getters/setters.
- ExtendedProxy() - Constructor for class grails.util.ExtendedProxy
F
- findPropertyNameForValue(Object, Object) - Static method in class grails.util.GrailsClassUtils
-
Locates the name of a property for the given value on the target object using Groovy's meta APIs.
G
- getAllInterfaces(Object) - Static method in class grails.util.GrailsClassUtils
-
Return all interfaces that the given instance implements as array, including ones implemented by superclasses.
- getAllInterfacesAsSet(Object) - Static method in class grails.util.GrailsClassUtils
-
Return all interfaces that the given instance implements as Set, including ones implemented by superclasses.
- getAllInterfacesForClass(Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Return all interfaces that the given class implements as array, including ones implemented by superclasses.
- getAllInterfacesForClass(Class<?>, ClassLoader) - Static method in class grails.util.GrailsClassUtils
-
Return all interfaces that the given class implements as array, including ones implemented by superclasses.
- getAllInterfacesForClassAsSet(Class) - Static method in class grails.util.GrailsClassUtils
-
Return all interfaces that the given class implements as Set, including ones implemented by superclasses.
- getAllInterfacesForClassAsSet(Class, ClassLoader) - Static method in class grails.util.GrailsClassUtils
-
Return all interfaces that the given class implements as Set, including ones implemented by superclasses.
- getBooleanFromMap(String, Map<?, ?>) - Static method in class grails.util.GrailsClassUtils
-
Retrieves a boolean value from a Map for the given key
- getBooleanFromMap(String, Map<?, ?>, boolean) - Static method in class grails.util.GrailsClassUtils
-
Retrieves a boolean value from a Map for the given key
- getClassName(String) - Static method in class grails.util.GrailsNameUtils
-
Return the class name for the given logical name.
- getClassName(String, String) - Static method in class grails.util.GrailsNameUtils
-
Returns the class name for the given logical name and trailing name.
- getClassNameRepresentation(String) - Static method in class grails.util.GrailsNameUtils
-
Returns the class name representation of the given name
- getExpandoMetaClass(Class) - Static method in class grails.util.GrailsClassUtils
- getExpandoMetaClass(Class<?>) - Static method in class grails.util.GrailsMetaClassUtils
- getFieldValue(Object, String) - Static method in class grails.util.GrailsClassUtils
-
Get the value of a declared field on an object
- getFullClassName(Class<?>) - Static method in class grails.util.GrailsNameUtils
-
Returns the class name, including package, for the given class.
- getFullClassName(String) - Static method in class grails.util.GrailsNameUtils
-
Returns the class name, including package, for the given class.
- getGetterName(String) - Static method in class grails.util.GrailsClassUtils
-
Calculate the name for a getter method to retrieve the specified property
- getGetterName(String) - Static method in class grails.util.GrailsNameUtils
-
Calculate the name for a getter method to retrieve the specified property
- getLogicalName(Class<?>, String) - Static method in class grails.util.GrailsNameUtils
-
Retrieves the logical class name of a Grails artifact given the Grails class and a specified trailing name.
- getLogicalName(String, String) - Static method in class grails.util.GrailsNameUtils
-
Retrieves the logical name of the class without the trailing name
- getLogicalPropertyName(Class<?>, String) - Static method in class grails.util.GrailsNameUtils
- getLogicalPropertyName(String, String) - Static method in class grails.util.GrailsNameUtils
- getMetaClass(Object) - Static method in class grails.util.GrailsMetaClassUtils
- getNameFromScript(String) - Static method in class grails.util.GrailsNameUtils
-
Calculates the class name from a script name in the form my-funk-grails-script.
- getNaturalName(String) - Static method in class grails.util.GrailsNameUtils
-
Converts a property name into its natural language equivalent eg ('firstName' becomes 'First Name')
- getOrCreateChildMap(Map, String) - Static method in class grails.util.CollectionUtils
-
Gets a child map of the given parent map or returns an empty map if it doesn't exist
- getPackageName(String) - Static method in class grails.util.GrailsNameUtils
-
Returns the package prefix without the class name eg ('a.b.ClassName' becomes 'a.b').
- getPluginName(String) - Static method in class grails.util.GrailsNameUtils
-
Returns the name of a plugin given the name of the *GrailsPlugin.groovy descriptor file.
- getPropertiesAssignableToType(Class<?>, Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Retrieves all the properties of the given class which are assignable to the given type
- getPropertiesOfType(Class<?>, Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Retrieves all the properties of the given class for the given type
- getProperty(Class<?>, String) - Static method in class grails.util.GrailsClassUtils
-
Retrieves a property of the given class of the specified name and type
- getProperty(Class<?>, String, Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Retrieves a property of the given class of the specified name and type
- getProperty(String) - Method in class grails.util.ExtendedProxy
- getPropertyDescriptorForValue(Object, Object) - Static method in class grails.util.GrailsClassUtils
-
Retrieves a PropertyDescriptor for the specified instance and property value
- getPropertyForGetter(String) - Static method in class grails.util.GrailsClassUtils
-
Deprecated.
- getPropertyForGetter(String) - Static method in class grails.util.GrailsNameUtils
-
Returns a property name equivalent for the given getter name or null if it is not a valid getter.
- getPropertyForGetter(String, Class) - Static method in class grails.util.GrailsClassUtils
-
Returns a property name equivalent for the given getter name and return type or null if it is not a valid getter.
- getPropertyForGetter(String, Class<?>) - Static method in class grails.util.GrailsNameUtils
-
Returns a property name equivalent for the given getter name and return type or null if it is not a valid getter.
- getPropertyForGetter(String, String) - Static method in class grails.util.GrailsClassUtils
-
Returns a property name equivalent for the given getter name and return type or null if it is not a valid getter.
- getPropertyForGetter(String, String) - Static method in class grails.util.GrailsNameUtils
-
Returns a property name equivalent for the given getter name and return type or null if it is not a valid getter.
- getPropertyForSetter(String) - Static method in class grails.util.GrailsClassUtils
-
Returns a property name equivalent for the given setter name or null if it is not a valid setter.
- getPropertyForSetter(String) - Static method in class grails.util.GrailsNameUtils
-
Returns a property name equivalent for the given setter name or null if it is not a valid setter.
- getPropertyIfExists(Object, String) - Static method in class grails.util.GrailsMetaClassUtils
-
Obtains a property of an instance if it exists
- getPropertyIfExists(Object, String, Class<T>) - Static method in class grails.util.GrailsMetaClassUtils
-
Obtains a property of an instance if it exists
- getPropertyName(Class<?>) - Static method in class grails.util.GrailsNameUtils
-
Shorter version of getPropertyNameRepresentation.
- getPropertyName(String) - Static method in class grails.util.GrailsNameUtils
-
Shorter version of getPropertyNameRepresentation.
- getPropertyNameConvention(Object) - Static method in class grails.util.GrailsNameUtils
-
Returns an appropriate property name for the given object.
- getPropertyNameConvention(Object, String) - Static method in class grails.util.GrailsNameUtils
-
Returns an appropriate property name for the given object.
- getPropertyNameForLowerCaseHyphenSeparatedName(String) - Static method in class grails.util.GrailsNameUtils
-
Converts foo-bar into fooBar.
- getPropertyNameRepresentation(Class<?>) - Static method in class grails.util.GrailsNameUtils
-
Returns the property name equivalent for the specified class.
- getPropertyNameRepresentation(String) - Static method in class grails.util.GrailsNameUtils
-
Returns the property name representation of the given name.
- getPropertyOrStaticPropertyOrFieldValue(Object, String) - Static method in class grails.util.GrailsClassUtils
-
Looks for a property of the reference instance with a given name.
- getPropertyOrStaticPropertyOrFieldValue(BeanWrapper, Object, String) - Static method in class grails.util.GrailsClassUtils
- getPropertyType(Class<?>, String) - Static method in class grails.util.GrailsClassUtils
-
Returns the type of the given property contained within the specified class
- getPropertyValueOfNewInstance(Class<?>, String) - Static method in class grails.util.GrailsClassUtils
-
Returns the value of the specified property and type from an instance of the specified Grails class
- getPropertyValueOfNewInstance(Class, String, Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Returns the value of the specified property and type from an instance of the specified Grails class
- getRegistry() - Static method in class grails.util.GrailsMetaClassUtils
-
Retrieves the MetaClassRegistry instance.
- getScriptName(Class<?>) - Static method in class grails.util.GrailsNameUtils
-
Retrieves the script name representation of the supplied class.
- getScriptName(String) - Static method in class grails.util.GrailsNameUtils
-
Retrieves the script name representation of the given class name.
- getSetterName(String) - Static method in class grails.util.GrailsClassUtils
-
Retrieves the name of a setter for the specified property name
- getSetterName(String) - Static method in class grails.util.GrailsNameUtils
-
Retrieves the name of a setter for the specified property name
- getShortName(Class<?>) - Static method in class grails.util.GrailsNameUtils
-
Returns the class name without the package prefix.
- getShortName(String) - Static method in class grails.util.GrailsNameUtils
-
Returns the class name without the package prefix.
- getSnakeCaseName(Class<?>) - Static method in class grails.util.GrailsNameUtils
-
Retrieves the snake case name of the supplied class.
- getSnakeCaseName(String) - Static method in class grails.util.GrailsNameUtils
-
Retrieves the snake case name of the given class name.
- getStaticFieldValue(Class<?>, String) - Static method in class grails.util.GrailsClassUtils
-
Get a static field value.
- getStaticPropertyValue(Class<?>, String) - Static method in class grails.util.GrailsClassUtils
-
Get a static property value, which has a public static getter or is just a public static field.
- grails.util - package grails.util
- GrailsClassUtils - Class in grails.util
-
Utility methods for dealing with Grails class artifacts.
- GrailsMetaClassUtils - Class in grails.util
-
Provides utility methods for working with the Groovy MetaClass API.
- GrailsNameUtils - Class in grails.util
-
Utility methods for converting between different name types, for example from class names -> property names and vice-versa.
I
- instantiateFromConfig(ConfigObject, String, String) - Static method in class grails.util.GrailsClassUtils
- instantiateFromFlatConfig(Map<String, Object>, String, String) - Static method in class grails.util.GrailsClassUtils
- invokeMethod(String, Object) - Method in class grails.util.ClosureToMapPopulator
- invokeMethodIfExists(Object, String) - Static method in class grails.util.GrailsMetaClassUtils
-
Invokes a method if it exists otherwise returns null
- invokeMethodIfExists(Object, String, Object[]) - Static method in class grails.util.GrailsMetaClassUtils
-
Invokes a method if it exists otherwise returns null
- isAssignableOrConvertibleFrom(Class<?>, Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Returns true if the specified clazz parameter is either the same as, or is a superclass or superinterface of, the specified type parameter.
- isBlank(String) - Static method in class grails.util.GrailsNameUtils
-
Determines whether a given string is
null, empty, or only contains whitespace. - isClassBelowPackage(Class<?>, List<?>) - Static method in class grails.util.GrailsClassUtils
-
Returns whether the specified class is either within one of the specified packages or within a subpackage of one of the packages
- isGetter(String, Class<?>[]) - Static method in class grails.util.GrailsClassUtils
-
Deprecated.use
GrailsClassUtils.isGetter(String, Class, Class[])instead because this method has a defect for "is.." method with Boolean return types. - isGetter(String, Class<?>[]) - Static method in class grails.util.GrailsNameUtils
-
Deprecated.use
isGetter(String, Class, Class[])instead because this method has a defect for "is.." method with Boolean return types. - isGetter(String, Class<?>, Class<?>[]) - Static method in class grails.util.GrailsNameUtils
-
Returns true if the name of the method specified and the number of arguments make it a javabean property getter.
- isGetter(String, Class, Class<?>[]) - Static method in class grails.util.GrailsClassUtils
-
Returns true if the name of the method specified and the number of arguments make it a javabean property getter.
- isGroovyAssignableFrom(Class<?>, Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Tests whether or not the left hand type is compatible with the right hand type in Groovy terms, i.e.
- isMatchBetweenPrimativeAndWrapperTypes(Class, Class) - Static method in class grails.util.GrailsClassUtils
-
Detect if left and right types are matching types.
- isPropertyGetter(Method) - Static method in class grails.util.GrailsClassUtils
-
Check whether the specified method is a property getter
- isPropertyInherited(Class, String) - Static method in class grails.util.GrailsClassUtils
-
Checks whether the specified property is inherited from a super class
- isPropertyOfType(Class<?>, String, Class<?>) - Static method in class grails.util.GrailsClassUtils
-
Returns true if the specified property in the specified class is of the specified type
- isPublicField(Object, String) - Static method in class grails.util.GrailsClassUtils
-
Work out if the specified object has a public field with the name supplied.
- isPublicStatic(Field) - Static method in class grails.util.GrailsClassUtils
-
Determine whether the field is declared public static
- isPublicStatic(Method) - Static method in class grails.util.GrailsClassUtils
-
Determine whether the method is declared public static
- isSetter(String, Class[]) - Static method in class grails.util.GrailsClassUtils
-
Returns true if the name of the method specified and the number of arguments make it a javabean property setter.
- isStaticProperty(Class, String) - Static method in class grails.util.GrailsClassUtils
-
Work out if the specified property is readable and static.
- isValidJavaIdentifier(String) - Static method in class grails.util.GrailsNameUtils
-
Test whether the given name is a valid Java identifier
- isValidJavaPackage(String) - Static method in class grails.util.GrailsNameUtils
-
Test whether the give package name is a valid Java package
- isVisible(Class<?>, ClassLoader) - Static method in class grails.util.GrailsClassUtils
-
Check whether the given class is visible in the given ClassLoader.
N
- newList(T...) - Static method in class grails.util.CollectionUtils
- newMap(Object...) - Static method in class grails.util.CollectionUtils
- newSet(T...) - Static method in class grails.util.CollectionUtils
P
- populate(Closure) - Method in class grails.util.ClosureToMapPopulator
- PRIMITIVE_TYPE_COMPATIBLE_CLASSES - Static variable in class grails.util.GrailsClassUtils
S
- setChild(Object, Object, String, String) - Method in class grails.util.DomainBuilder.DefaultGrailsChildPropertySetter
- setMetaClass(MetaClass) - Method in class grails.util.ExtendedProxy
- setProperty(String, Object) - Method in class grails.util.ClosureToMapPopulator
- setProperty(String, Object) - Method in class grails.util.ExtendedProxy
All Classes and Interfaces|All Packages
GrailsClassUtils.getPropertyForGetter(String, Class)instead because this method has a defect for "is.." method with Boolean return types.