A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AbstractFileResolvingResource - Class in org.grails.io.support
Abstract base class for resources which resolve URLs into File references, such as org.springframework.core.io.UrlResource or org.springframework.core.io.ClassPathResource.
addAll(Object, Object) - Method in SpringIOUtils
Adds the contents of 1 array to another
addAlteredMetaClass(Class, MetaClass) - Method in MetaClassRegistryCleaner
addDeclaredOption(String, Option, Object) - Method in DefaultCommandLine
addGrailsConsoleBuildListener(Project) - Method in GrailsConsoleAntBuilder
addInternalPackage(String) - Method in DefaultStackTraceFilterer
addInternalPackage(String) - Method in StackTraceFilterer
Adds a package name that should be filtered
addListener(DirectoryWatcher.FileChangeListener) - Method in DirectoryWatcher
Adds a file listener that can react to change events
addOption(String, String) - Method in CommandLineParser
Adds a declared option
addRemainingArg(String) - Method in DefaultCommandLine
addShutdownHook() - Method in GrailsConsole
addStatus(String) - Method in ConsoleLogger
Adds a new message that won't be overwritten by {#updateStatus(String)}
addStatus(String) - Method in GrailsConsole
Keeps doesn't replace the status message
addSystemProperty(String, String) - Method in DefaultCommandLine
addUndeclaredOption(String, Object) - Method in DefaultCommandLine
addWatchDirectory(File, String) - Method in DirectoryWatcher
Adds a directory to watch for the given file and extensions.
addWatchFile(File) - Method in DirectoryWatcher
Adds a file to the watch list
AGENT_ARGUMENT - Field in CommandLine
ansiWrap(OutputStream) - Method in GrailsConsole
Hook method that allows controlling whether or not output streams should be wrapped by AnsiConsole.wrapOutputStream.
ansiWrap(OutputStream) - Method in GrailsEclipseConsole
AntPathMatcher - Class in org.grails.io.support
PathMatcher implementation for Ant-style path patterns.
APP_BASE_DIR - Field in BuildSettings
The base directory of the application
append(char) - Method in DevNullPrintStream
append(String) - Method in GrailsConsole
appendPiecesForUri(String) - Method in GrailsResourceUtils
Takes any number of Strings and appends them into a uri, making sure that a forward slash is inserted between each piece and making sure that no duplicate slashes are in the uri
APPLICATION_GRAILS_VERSION - Field in Metadata
APPLICATION_NAME - Field in Metadata
APPLICATION_VERSION - Field in Metadata
applyRelativePath(String, String) - Method in GrailsResourceUtils
Apply the given relative path to the given path, assuming standard Java folder separation (i.e. "/" separators).
asBoolean() - Method in CodeGenConfig
asBoolean() - Method in NavigableMap.NullSafeNavigator
asMap() - Method in Model
@return The model as a map
assertNotNull(Object, String) - Method in FileSystemResource
asType(Class) - Method in CodeGenConfig
asType(Class) - Method in NavigableMap.NullSafeNavigator
AUTHENTICATOR - Field in BuildSettings
The authenticator to use when connecting remotely from the CLI

B

BASE_DIR - Field in BuildSettings
The base directory of the project
beforeShutdown() - Method in GrailsConsole
bindSystemOutAndErr(PrintStream, PrintStream) - Method in GrailsConsole
BUFFER_SIZE - Field in SpringIOUtils
BUILD_CLASSES_PATH - Field in BuildSettings
The path to the build classes directory
BUILD_INFO_FILE - Field in Metadata
BUILD_RESOURCES_PATH - Field in BuildSettings
The path to the build resources directory
BUILD_SCOPE - Field in BuildSettings
BUILD_SCOPE_DESC - Field in BuildSettings
buildFinished(BuildEvent) - Method in GrailsConsoleBuildListener
BuildSettings - Class in grails.util
Build time settings and configuration
buildStarted(BuildEvent) - Method in GrailsConsoleBuildListener
ByteArrayResource - Class in org.grails.io.support
A Resource impl used represent a Resource as an array of bytes
ByteArrayResource(byte[], String) - Constructor in ByteArrayResource
byteArrayToHexString(byte[]) - Method in SpringIOUtils
Convert a byte[] array to readable string format.

C

CandidateListCompletionHandler - Class in org.grails.build.interactive
Fixes issues with the default CandidateListCompletionHandler such as clearing out the whole buffer when a completion matches a list of candidates
capture() - Method in SystemOutErrCapturer
CATEGORY_SEPARATOR - Field in GrailsConsole
checkError() - Method in DevNullPrintStream
CLASS_EXTENSION - Field in GrailsResourceUtils
CLASSES_DIR - Field in BuildSettings
The classes directory of the project, null outside of the development environment
classNameToResourceCache - Field in ResourceLocator
classPackageAsResourcePath(Class<?>) - Method in GrailsResourceUtils
Given an input class object, return a string which consists of the class's package name as a pathname, i.e., all dots ('.') are replaced by slashes ('/').
CLASSPATH_URL_PREFIX - Field in GrailsResourceUtils
Pseudo URL prefix for loading from the class path: "classpath:"
CLASSPATH_URL_PREFIX - Field in ResourceLoader
Pseudo URL prefix for loading from the class path: "classpath:"
ClassPathResource - Class in org.grails.io.support
Resource implementation for class path resources.
ClassPathResource(String, ClassLoader, Class<?>) - Constructor in ClassPathResource
Create a new ClassPathResource with optional ClassLoader and Class.
classSearchDirectories - Field in ResourceLocator
clean() - Method in MetaClassRegistryCleaner
cleanAndRemove(MetaClassRegistryCleaner) - Method in MetaClassRegistryCleaner
cleanlyExit(int) - Method in GrailsConsole
cleanPath(String) - Method in GrailsResourceUtils
Normalize the path by suppressing sequences like "path/.." and inner simple dots.
clear() - Method in CodeGenConfig
clear() - Method in NavigableMap
clear() - Method in NavigableMap.NullSafeNavigator
clearError() - Method in DevNullPrintStream
clone() - Method in CodeGenConfig
clone() - Method in NavigableMap
close() - Method in DevNullPrintStream
close() - Method in SystemOutErrCapturer
closeQuietly(Closeable) - Method in SpringIOUtils
Closes a closeable gracefully without throwing exceptions etc.
CLOSURE_MARKER - Field in ResourceLocator
CodeGenConfig - Class in org.grails.config
A ConfigMap implementation used at codegen time
CodeGenConfig(Map<String, Object>) - Constructor in CodeGenConfig
CodeSnippetPrinter - Interface in org.grails.exceptions.reporting
Interfaces for classes to implement that print code snippets
CollectionUtils - Class in grails.util
Collection utility methods.
combine(String, String) - Method in AntPathMatcher
Combines two patterns into a new pattern that is returned.
CommandLine - Interface in org.grails.build.parsing
Represents the parsed command line options.
CommandLineParser - Class in org.grails.build.parsing
Command line parser that parses arguments to the command line.
compare(String, String) - Method in VersionComparator
COMPILE_SCOPE - Field in BuildSettings
COMPILE_SCOPE_DESC - Field in BuildSettings
COMPILER_ROOT_PATTERNS - Field in GrailsResourceUtils
COMPILER_SOURCE_LEVEL - Field in BuildSettings
The compiler source level to use
COMPILER_TARGET_LEVEL - Field in BuildSettings
The compiler source level to use
complete(ConsoleReader, List<CharSequence>, int) - Method in CandidateListCompletionHandler
computeChecksum(File, String) - Method in SpringIOUtils
ConfigMap - Interface in grails.config
API onto application configuration
ConsoleLogger - Interface in grails.build.logging
Interface containing methods for logging to the Grails console
containsKey(Object) - Method in CodeGenConfig
containsKey(Object) - Method in NavigableMap
containsKey(Object) - Method in NavigableMap.NullSafeNavigator
containsValue(Object) - Method in CodeGenConfig
containsValue(Object) - Method in NavigableMap
containsValue(Object) - Method in NavigableMap.NullSafeNavigator
contentLength() - Method in AbstractFileResolvingResource
contentLength() - Method in ByteArrayResource
contentLength() - Method in FileSystemResource
This implementation returns the underlying File's length.
contentLength() - Method in Resource
Determine the content length for this resource.
convention(String) - Method in Model
Returns the convention of this model for the given name.
CONVERT_CLOSURES_KEY - Field in BuildSettings
A property name to enable/disable AST conversion of closures actions&tags to methods
convertClassLoaderURL(URL) - Method in PathMatchingResourcePatternResolver
Convert the given URL as returned from the ClassLoader into a Resource object.
convertToOtherTypes(Object, Class<T>) - Method in CodeGenConfig
convertToType(Object, Class<T>) - Method in CodeGenConfig
copy(InputStream, Writer, String) - Method in IOUtils
Copy an InputStream to the given writer with the given encoding
copy(String, Writer) - Method in SpringIOUtils
Copy the contents of the given String to the given output Writer.
copyAll(Resource, Resource, File) - Method in SpringIOUtils
Copies all the resources for the given target directory.
copyToByteArray(InputStream) - Method in SpringIOUtils
Copy the contents of the given InputStream into a new byte array.
copyToString(Reader) - Method in SpringIOUtils
Copy the contents of the given Reader into a String.
CORE_WORKING_DIR_NAME - Field in BuildSettings
The name of the working directory for commands that don't belong to a project (like create-app)
CosineSimilarity - Class in grails.util
Uses cosine similarity to find matches from a candidate set for a specified input.
countOccurrencesOf(String, String) - Method in AntPathMatcher
Count the occurrences of the substring in string s.
create(InputStream, PrintStream, PrintStream) - Method in SystemStreamsRedirector
createAndRegister() - Method in MetaClassRegistryCleaner
createAntProject() - Method in GrailsConsoleAntBuilder
@return Factory method to create new Project instances
createCommandLine() - Method in CommandLineParser
createConsoleReader(InputStream) - Method in GrailsConsole
createInstance() - Method in GrailsConsole
createRelative(String) - Method in ByteArrayResource
createRelative(String) - Method in ClassPathResource
This implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor.
createRelative(String) - Method in FileSystemResource
This implementation creates a FileSystemResource, applying the given path relative to the path of the underlying file of this resource descriptor.
createRelative(String) - Method in Resource
Creates a new resource relative to this one
createRelative(String) - Method in UrlResource
This implementation creates a UrlResource, applying the given path relative to the path of the underlying URL of this resource descriptor.
createTerminal() - Method in GrailsConsole
Creates the instance of Terminal used directly in GrailsConsole.
createTerminal() - Method in GrailsEclipseConsole
createXmlSlurper() - Method in SpringIOUtils
current() - Method in SystemStreamsRedirector

D

DEBUG_FORK - Field in CommandLine
DEFAULT_PATH_SEPARATOR - Field in AntPathMatcher
Default path separator: "/"
DEFAULT_SERVLET_VERSION - Field in Metadata
DefaultCommandLine - Class in org.grails.build.parsing
Implementation of the CommandLine interface.
DefaultCommandLine.SpecifiedOption - Class in org.grails.build.parsing
DefaultResourceLoader - Class in org.grails.io.support
Default implementation of the ResourceLoader interface.
DefaultResourceLoader(ClassLoader) - Constructor in DefaultResourceLoader
Create a new DefaultResourceLoader.
defaultResourceLoader - Field in ResourceLocator
DefaultStackTraceFilterer - Class in org.grails.exceptions.reporting
Default implementation of StackTraceFilterer.
DefaultStackTraceFilterer(boolean) - Constructor in DefaultStackTraceFilterer
DefaultStackTracePrinter - Class in org.grails.exceptions.reporting
@since 2.2
Described - Interface in grails.util
Interface for classes that are described
deSnapshot(String) - Method in VersionComparator
Removes any suffixes that indicate that the version is a kind of snapshot
determineRootDir(String) - Method in PathMatchingResourcePatternResolver
Determine the root directory for the given location.
DevNullPrintStream - Class in org.grails.io.support
PrintStream that does nothing
DevNullPrintStream() - Constructor in DevNullPrintStream
DirectoryWatcher - Class in org.grails.io.watch
Utility class to watch directories for changes.
DirectoryWatcher.FileChangeListener - Interface in org.grails.io.watch
Interface for FileChangeListeners
DirectoryWatcher() - Constructor in DirectoryWatcher
Constructor.
doFindMatchingFileSystemResources(File, String) - Method in PathMatchingResourcePatternResolver
Find all resources in the file system that match the given location pattern via the Ant-style PathMatcher.
doFindPathMatchingFileResources(Resource, String) - Method in PathMatchingResourcePatternResolver
Find all resources in the file system that match the given location pattern via the Ant-style PathMatcher.
doFindPathMatchingJarResources(Resource, String) - Method in PathMatchingResourcePatternResolver
Find all resources in jar files that match the given location pattern via the Ant-style PathMatcher.
DOMAIN_DIR_PATH - Field in GrailsResourceUtils
DOMAIN_PATH_PATTERN - Field in GrailsResourceUtils
doMatch(String, String, boolean, Map<String, String>) - Method in AntPathMatcher
Actually match the given path against the given pattern.
doRetrieveMatchingFiles(String, File, Set<File>) - Method in PathMatchingResourcePatternResolver
Recursively retrieve files that match the given pattern, adding them to the given result list.

E

echoStatus() - Method in GrailsConsole
Replays the last status message
ENABLE_INTERACTIVE - Field in GrailsConsole
ENABLE_TERMINAL - Field in GrailsConsole
entrySet() - Method in CodeGenConfig
entrySet() - Method in NavigableMap
entrySet() - Method in NavigableMap.NullSafeNavigator
equals(Object) - Method in ClassPathResource
This implementation compares the underlying class path locations.
equals(Object) - Method in FileSystemResource
This implementation compares the underlying File references.
equals(Object) - Method in NavigableMap
equals(Object) - Method in NavigableMap.NullSafeNavigator
equals(Object) - Method in UrlResource
This implementation compares the underlying URL references.
equals(def) - Method in VersionComparator
error(Throwable) - Method in ConsoleLogger
Use to log an error
ERROR - Field in GrailsConsole
EXCEPTION_ATTRIBUTE - Field in ExceptionUtils
ExceptionUtils - Class in org.grails.exceptions
Utility methods for dealing with exception
exists() - Method in AbstractFileResolvingResource
exists() - Method in ByteArrayResource
exists() - Method in ClassPathResource
This implementation checks for the resolution of a resource URL.
exists() - Method in FileSystemResource
This implementation returns whether the underlying file exists.
exists() - Method in Resource
Return whether this resource actually exists in physical form.
extractJarFileURL(URL) - Method in GrailsResourceUtils
Extract the URL for the actual jar file from the given URL (which may point to a resource in a jar file or to a jar file itself).
extractLineNumber(CompilationFailedException) - Method in ExceptionUtils
extractPathWithinPattern(String, String) - Method in AntPathMatcher
Given a pattern and a full path, determine the pattern-mapped part.
extractUriTemplateVariables(String, String) - Method in AntPathMatcher

F

FactoriesLoaderSupport - Class in org.grails.io.support
Base functionality for loading grails.factories
FILE - Field in Metadata
FILE_SEPARATOR - Field in ResourceLocator
FILE_URL_PREFIX - Field in GrailsResourceUtils
URL prefix for loading from the file system: "file:"
FileExtensionFileChangeListener - Class in org.grails.io.watch
A org.grails.io.watch.DirectoryWatcher.FileChangeListener that only fires for specific extension or list of extensions
FileExtensionFileChangeListener(List<String>) - Constructor in FileExtensionFileChangeListener
FileSystemResource - Class in org.grails.io.support
Based on Spring FileSystemResource implementation.
FileSystemResource(String) - Constructor in FileSystemResource
Create a new FileSystemResource from a file path.
FileSystemResourceLoader - Class in org.grails.io.support
ResourceLoader implementation that resolves plain paths as file system resources rather than as class path resources (the latter is DefaultResourceLoader's default strategy).
filter(Throwable) - Method in DefaultStackTraceFilterer
filter(Throwable) - Method in StackTraceFilterer
findAllClassPathResources(String) - Method in PathMatchingResourcePatternResolver
Find all class location resources with the given location via the ClassLoader.
findApplicationDirectory() - Method in IOUtils
Finds the directory where the Application class is contained
findApplicationDirectoryFile(Class) - Method in IOUtils
Finds the application directory for the given class
findClassResource(Class) - Method in IOUtils
Returns the URL resource for the location on disk of the given class or null if it cannot be found
findJarFile(URL) - Method in IOUtils
Finds a JAR for the given resource
findJarResource(Class) - Method in IOUtils
Returns the URL resource for the location on disk of the given class or null if it cannot be found
findMainClass(File) - Method in MainClassFinder
findPathMatchingResources(String) - Method in PathMatchingResourcePatternResolver
Find all resources that match the given location pattern via the Ant-style PathMatcher.
findResourceForClassName(String) - Method in ResourceLocator
findResourceForURI(String) - Method in ResourceLocator
findResourceRelativeToClass(Class, String) - Method in IOUtils
Finds a URL within a JAR relative (from the root) to the given class
findRootResource(Class) - Method in IOUtils
Returns a URL that represents the root classpath resource where the given class was loaded from
findRootResourcesURL(Class) - Method in IOUtils
This method differs from findRootResource(java.lang.Class) in that it will find the root URL where to load resources defined in src/main/resources
findSourceFile(String) - Method in IOUtils
Finds a source file for the given class name
flush() - Method in DevNullPrintStream
flush() - Method in GrailsConsole
Makes sure that the console has been reset to the default state and that the out stream has been flushed.
format(Locale, String, Object) - Method in DevNullPrintStream
FULL_STACK_TRACE_MESSAGE - Field in StackTraceFilterer
FUNCTIONAL_BASE_URL_PROPERTY - Field in BuildSettings
A system property with this name is populated in the preparation phase of functional testing with the base URL that tests should be run against.

G

get(String) - Method in CodeGenConfig
get(boolean) - Method in Holder
get() - Method in Metadata.FinalReference
get(Object) - Method in NavigableMap
get(Object) - Method in NavigableMap.NullSafeNavigator
getAppDir(Resource) - Method in GrailsResourceUtils
getApplicationName() - Method in Metadata
@return The application name
getApplicationVersion() - Method in Metadata
@return The application version
getArtefactDirectory(String) - Method in GrailsResourceUtils
Takes a file path and returns the name of the folder under grails-app i.e:
getAt(Object) - Method in CodeGenConfig
getAt(Object) - Method in ConfigMap
Enables the object[foo] syntax
getAt(Object) - Method in NavigableMap
getAt(Object) - Method in NavigableMap.NullSafeNavigator
getCategory() - Method in GrailsConsole
getClassLoader() - Method in ClassPathResource
Return the ClassLoader that this resource will be obtained from.
getClassLoader() - Method in DefaultResourceLoader
Return the ClassLoader to load class path resources with.
getClassLoader() - Method in PathMatchingResourcePatternResolver
Return the ClassLoader that this pattern resolver works with (never null).
getClassLoader() - Method in ResourceLoader
Expose the ClassLoader used by this ResourceLoader.
getClassLoader() - Method in StaticResourceLoader
getClassName(String) - Method in GrailsNameUtils
Return the class name for the given logical name.
getClassName(String) - Method in GrailsResourceUtils
Returns the class name for a Grails resource.
getClassName() - Method in Model
@return The class name excluding package
getClassNameForClassFile(String, String) - Method in GrailsResourceUtils
Returns the class name for a compiled class file
getClassNameRepresentation(String) - Method in GrailsNameUtils
Returns the class name representation of the given name
getCommandName() - Method in CommandLine
@return The command name specified
getCommandName() - Method in DefaultCommandLine
getCurrent() - Method in Metadata
@return the metadata for the current application
getCurrentCommandLine() - Method in CommandLineParser
getDefaultClassLoader() - Method in DefaultResourceLoader
getDefaultInputMask() - Method in GrailsConsole
getDefaultResourceLoader() - Method in ResourceLocator
getDescription() - Method in ClassPathResource
This implementation returns a description that includes the class path location.
getDescription() - Method in Described
@return The description
getDescription() - Method in FileSystemResource
This implementation returns a description that includes the absolute path of the file.
getDescription() - Method in Option
getDescription() - Method in Resource
Return a description for this resource, to be used for error output when working with the resource.
getDescription() - Method in UrlResource
This implementation returns a description that includes the URL.
getDescriptor() - Method in GrailsPluginInfo
Returns the location of the Resource that represents the plugin descriptor (the *GrailsPlugin.groovy file)
getEnvironment() - Method in CommandLine
@return The environment specified
getEnvironment() - Method in DefaultCommandLine
getEnvironment() - Method in Metadata
@return The environment the application expects to run in
getErr() - Method in GrailsConsole
getFile(URI) - Method in AbstractFileResolvingResource
This implementation returns a File reference for the underlying class path resource, provided that it refers to a file in the file system.
getFile() - Method in ByteArrayResource
getFile() - Method in FileSystemResource
This implementation returns the underlying File reference.
getFile(URI) - Method in GrailsResourceUtils
Resolve the given resource URI to a java.io.File, i.e. to a file in the file system.
getFile() - Method in Resource
Return a File handle for this resource.
getFile() - Method in UrlResource
This implementation returns a File reference for the underlying URL/URI, provided that it refers to a file in the file system.
getFileForLastModifiedCheck() - Method in AbstractFileResolvingResource
This implementation determines the underlying File (or jar file, in case of a resource in a jar/zip).
getFilename() - Method in ByteArrayResource
getFilename() - Method in ClassPathResource
This implementation returns the name of the file that this class path resource refers to.
getFileName(StackTraceElement) - Method in DefaultStackTracePrinter
getFilename() - Method in FileSystemResource
This implementation returns the name of the file.
getFilename(String) - Method in GrailsResourceUtils
Extract the filename from the given path, e.g.
getFilename() - Method in Resource
Determine a filename for this resource, i.e. typically the last part of the path: for example, "myfile.txt".
getFileName() - Method in SourceCodeAware
getFilename() - Method in UrlResource
This implementation returns the name of the file that this URL refers to.
getFirstRuntimeException(Throwable) - Method in ExceptionUtils
getFullClassName(String) - Method in GrailsNameUtils
Returns the class name, including package, for the given class.
getFullName() - Method in GrailsPluginInfo
@return The full name of the plugin including version
getFullName() - Method in Model
@return The class name including package
getGetterName(String) - Method in GrailsNameUtils
Calculate the name for a getter method to retrieve the specified property
getGrailsVersion() - Method in BuildSettings
@return The version of Grails being used
getGrailsVersion() - Method in Metadata
@return The Grails version used to build the application
getInput() - Method in GrailsConsole
@return The input stream being read from
getInputStream() - Method in ByteArrayResource
getInputStream() - Method in ClassPathResource
This implementation opens an InputStream for the given class path resource.
getInputStream() - Method in FileSystemResource
This implementation opens a FileInputStream for the underlying file.
getInputStream() - Method in Resource
An input stream
getInputStream() - Method in UrlResource
This implementation opens an InputStream for the given URL.
getInstance() - Method in GrailsConsole
getInstance(Resource) - Method in Metadata
Loads and returns a new Metadata object for the given File.
getJarFile(String) - Method in PathMatchingResourcePatternResolver
Resolve the given jar file URL into a JarFile object.
getLastMessage() - Method in GrailsConsole
@return The last message logged
getLineNumber() - Method in SourceCodeAware
getLogicalName(String, String) - Method in GrailsNameUtils
Retrieves the logical name of the class without the trailing name
getLogicalPropertyName(String, String) - Method in GrailsNameUtils
getLowerCaseName() - Method in Model
A lower case version of the class name separated by hyphens.
getLowerVersion(String) - Method in GrailsVersionUtils
Returns the lower version of a Grails version number expression in a plugin
getMetadataFile() - Method in Metadata
getModelName() - Method in Model
A property name version of the class name.
getName() - Method in GrailsPluginInfo
@return The name of the plug-in
getName() - Method in Named
@return The name of the object
getName() - Method in Option
getNameFromScript(String) - Method in GrailsNameUtils
Calculates the class name from a script name in the form my-funk-grails-script.
getNaturalName(String) - Method in GrailsNameUtils
Converts a property name into its natural language equivalent eg ('firstName' becomes 'First Name')
getOption() - Method in DefaultCommandLine.SpecifiedOption
getOptionsHelpMessage() - Method in CommandLineParser
getOrCreateChildMap(Map, String) - Method in CollectionUtils
Gets a child map of the given parent map or returns an empty map if it doesn't exist
getOut() - Method in GrailsConsole
getOutputStream() - Method in FileSystemResource
This implementation opens a FileOutputStream for the underlying file.
getPackageName(String) - Method in GrailsNameUtils
Returns the package prefix without the class name eg ('a.b.ClassName' becomes 'a.b').
getPackageName() - Method in Model
@return The package name
getPackagePath() - Method in Model
@return The package name
getPasswordAuthentication() - Method in SystemPropertiesAuthenticator
getPath() - Method in ClassPathResource
Return the path for this resource (as resource path within the class path).
getPath() - Method in FileSystemResource
Return the file path for this resource.
getPathFromBaseDir(String) - Method in GrailsResourceUtils
Gets the path relative to the project base directory.
getPathFromRoot(String) - Method in GrailsResourceUtils
Get the path relative to an artefact folder under grails-app i.e:
getPathMatcher() - Method in PathMatchingResourcePatternResolver
Return the PathMatcher that this resource pattern resolver uses.
getPatternComparator(String) - Method in AntPathMatcher
Given a full path, returns a java.util.Comparator suitable for sorting patterns in order of explicitness.
getPluginDir() - Method in GrailsPluginInfo
@return The directory where the plugin exists or null if it cannot be read
getPluginName(String) - Method in GrailsNameUtils
Returns the name of a plugin given the name of the *GrailsPlugin.groovy descriptor file.
getPluginName(Class) - Method in GrailsVersionUtils
Get the name of the a plugin for a particular class.
getPluginVersion(Class) - Method in GrailsVersionUtils
Get the version of the a plugin for a particular class.
getProjectPackageNames(File) - Method in ResourceUtils
getProperties() - Method in GrailsPluginInfo
Gets the properties of the plugin as a map
getProperty(String, Class<T>, T) - Method in CodeGenConfig
getProperty(String, Class<T>, T) - Method in ConfigMap
Return the property value associated with the given key, or null if the key cannot be resolved.
getProperty(String, Class<T>, T) - Method in Metadata
getProperty(String) - Method in NavigableMap
getProperty(String) - Method in NavigableMap.NullSafeNavigator
getPropertyForGetter(String, String) - Method in 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) - Method in GrailsNameUtils
Returns a property name equivalent for the given setter name or null if it is not a valid setter.
getPropertyName(Class<?>) - Method in GrailsNameUtils
Shorter version of getPropertyNameRepresentation.
getPropertyName() - Method in Model
A property name version of the class name.
getPropertyNameConvention(Object, String) - Method in GrailsNameUtils
Returns an appropriate property name for the given object.
getPropertyNameForLowerCaseHyphenSeparatedName(String) - Method in GrailsNameUtils
Converts foo-bar into fooBar.
getPropertyNameRepresentation(String) - Method in GrailsNameUtils
Returns the property name representation of the given name.
getRawArguments() - Method in CommandLine
getRawArguments() - Method in DefaultCommandLine
getReader() - Method in GrailsConsole
getRelativeInsideWebInf(Resource) - Method in GrailsResourceUtils
Takes a Grails resource (one located inside the grails-app dir) and gets its relative path inside the WEB-INF directory when deployed.
getRemainingArgs() - Method in CommandLine
@return The remaining arguments after the command name
getRemainingArgs() - Method in DefaultCommandLine
getRemainingArgsArray() - Method in CommandLine
@return The remaining arguments as an array
getRemainingArgsArray() - Method in DefaultCommandLine
getRemainingArgsLineSeparated() - Method in CommandLine
@return The remaining args separated by the line separator char
getRemainingArgsLineSeparated() - Method in DefaultCommandLine
getRemainingArgsString() - Method in CommandLine
@return The remaining args as one big string
getRemainingArgsString() - Method in DefaultCommandLine
getRemainingArgsWithOptionsString() - Method in CommandLine
@return The remaining args as one big string without undeclared options
getRemainingArgsWithOptionsString() - Method in DefaultCommandLine
getRequiredProperty(String, Class<T>) - Method in CodeGenConfig
getRequiredProperty(String, Class<T>) - Method in ConfigMap
Return the property value associated with the given key, converted to the given targetType (never null).
getRequiredProperty(String, Class<T>) - Method in Metadata
getResource(String) - Method in DefaultResourceLoader
getResource(String) - Method in PathMatchingResourcePatternResolver
getResource(String) - Method in ResourceLoader
Return a Resource handle for the specified resource.
getResource(String) - Method in StaticResourceLoader
getResourceByPath(String) - Method in DefaultResourceLoader
Return a Resource handle for the resource at the given path.
getResourceByPath(String) - Method in FileSystemResourceLoader
Resolve resource paths as file system paths.
getResourceLoader() - Method in PathMatchingResourcePatternResolver
Return the ResourceLoader that this pattern resolver works with.
getResources(String) - Method in PathMatchingResourcePatternResolver
getRootCause(Throwable) - Method in ExceptionUtils
Obtains the root cause of the given exception
getScriptName(String) - Method in GrailsNameUtils
Retrieves the script name representation of the given class name.
getServletVersion() - Method in Metadata
@return The version of the servlet spec the application was created for
getSetterName(String) - Method in GrailsNameUtils
Retrieves the name of a setter for the specified property name
getShortName(String) - Method in GrailsNameUtils
Returns the class name without the package prefix.
getSimpleName() - Method in Model
@return The class name without package
getSource() - Method in Metadata
@return The source of the metadata
getStaticResourcePathForResource(Resource, String) - Method in GrailsResourceUtils
Retrieves the static resource path for the given Grails resource artifact (controller/taglib etc.)
getSystemProperties() - Method in CommandLine
@return The system properties specified
getSystemProperties() - Method in DefaultCommandLine
getTargetOut() - Method in GrailsConsoleErrorPrintStream
getTargetOut() - Method in GrailsConsolePrintStream
getTerminal() - Method in GrailsConsole
getUndeclaredOptions() - Method in CommandLine
getUndeclaredOptions() - Method in DefaultCommandLine
getUpperVersion(String) - Method in GrailsVersionUtils
Returns the upper version of a Grails version number expression in a plugin
getURI() - Method in ByteArrayResource
getURI() - Method in ClassPathResource
getURI() - Method in FileSystemResource
This implementation returns a URI for the underlying file.
getURI() - Method in Resource
Return a URI handle for this resource.
getURI() - Method in UrlResource
This implementation returns the underlying URI directly, if possible.
getURL() - Method in ByteArrayResource
getURL() - Method in ClassPathResource
This implementation returns a URL for the underlying class path resource.
getURL() - Method in FileSystemResource
This implementation returns a URL for the underlying file.
getURL() - Method in Resource
Return a URL handle for this resource.
getURL() - Method in UrlResource
This implementation returns the underlying URL reference.
getValue() - Method in DefaultCommandLine.SpecifiedOption
getVersion() - Method in GrailsPluginInfo
@return The version of the plug-in
getViewsDir(Resource) - Method in GrailsResourceUtils
GRAILS_APP_DIR - Field in GrailsResourceUtils
The name of the Grails application directory
GRAILS_APP_DIR_PRESENT - Field in BuildSettings
Whether the application is running inside the development environment or deployed
GRAILS_HOME - Field in BuildSettings
The location of the local Grails installation.
GRAILS_RESOURCE_PATTERN_EIGHTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_ELEVENTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_FIFTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_FIRST_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_FOURTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_NINTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_SECOND_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_SEVENTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_SIXTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_TENTH_MATCH - Field in GrailsResourceUtils
GRAILS_RESOURCE_PATTERN_THIRD_MATCH - Field in GrailsResourceUtils
grailsAppResourcePatterns - Field in GrailsResourceUtils
GrailsConsole - Class in grails.build.logging
Utility class for delivering console output in a nicely formatted way.
GrailsConsole() - Constructor in GrailsConsole
GrailsConsoleAntBuilder - Class in org.grails.build.logging
Silences ant builder output.
GrailsConsoleAntBuilder() - Constructor in GrailsConsoleAntBuilder
GrailsConsoleBuildListener - Class in org.grails.build.logging
Mainly silences a lot of redundant Ant output.
GrailsConsoleBuildListener(GrailsConsole) - Constructor in GrailsConsoleBuildListener
GrailsConsoleErrorPrintStream - Class in org.grails.build.logging
Used to replace default System.err with one that routes calls through GrailsConsole.
GrailsConsoleErrorPrintStream(PrintStream) - Constructor in GrailsConsoleErrorPrintStream
GrailsConsolePrintStream - Class in org.grails.build.logging
Used to replace default System.out with one that routes calls through GrailsConsole.
GrailsConsolePrintStream(PrintStream) - Constructor in GrailsConsolePrintStream
GrailsEclipseConsole - Class in grails.build.logging
This class is meant to keep changes made in support of Eclipse separate from the standard GrailsConsole implementation.
GrailsEclipseConsole() - Constructor in GrailsEclipseConsole
Create a GrailsConsole that has some customizations to work better with STS.
GrailsNameUtils - Class in grails.util
Utility methods for converting between different name types, for example from class names -> property names and vice-versa.
GrailsPlugin - Annotation Type in grails.plugins.metadata
Annotation that appears on classes of a particular plugin.
GrailsPluginInfo - Interface in grails.plugins
Base interface that just contains information about a particular plugin.
GrailsResourceUtils - Class in org.grails.io.support
Utility methods for resource handling / figuring out class names.
GrailsVersionUtils - Class in grails.plugins

H

hashCode() - Method in ClassPathResource
This implementation returns the hash code of the underlying class path location.
hashCode() - Method in FileSystemResource
This implementation returns the hash code of the underlying File reference.
hashCode() - Method in NavigableMap
hashCode() - Method in UrlResource
This implementation returns the hash code of the underlying URL reference.
hasOption(String) - Method in CommandLine
@param name The name of the option
hasOption(String) - Method in DefaultCommandLine
HELP_ARGUMENT - Field in CommandLine
HISTORYFILE - Field in GrailsConsole
Holder - Class in grails.util
@author Burt Beckwith
Holder(String) - Constructor in Holder

I

indicateProgress(int) - Method in ConsoleLogger
Indicates progress by number
indicateProgress(int) - Method in GrailsConsole
Indicates progress by number
indicateProgressPercentage(long, long) - Method in ConsoleLogger
Indicates progress as a percentage for the given number and total
indicateProgressPercentage(long, long) - Method in GrailsConsole
Indicates progress as a percentage for the given number and total
info(String) - Method in ConsoleLogger
Synonym for #log
info(String) - Method in GrailsConsole
Synonym for #log
initialize(InputStream, PrintStream, PrintStream) - Method in GrailsConsole
instantiateFromConfig(ConfigObject, String, String) - Method in GrailsResourceUtils
instantiateFromFlatConfig(Map<String, Object>, String, String) - Method in GrailsResourceUtils
InvalidVersionException - Class in grails.plugins
Throw when a specified version number is invalid.
InvalidVersionException(Throwable) - Constructor in InvalidVersionException
invokeMethod(String, Object) - Method in NavigableMap.NullSafeNavigator
IOUtils - Class in grails.io
Utility methods for performing I/O operations.
is(Object) - Method in NavigableMap.NullSafeNavigator
isAnsiEnabled() - Method in GrailsConsole
isApplicationClass(String) - Method in DefaultStackTraceFilterer
Whether the given class name is an internal class and should be filtered
isBlank(String) - Method in GrailsNameUtils
isDevelopmentEnvironmentAvailable() - Method in Metadata
@return True if the development sources are present
isDevelopmentGrailsVersion() - Method in BuildSettings
@return Whether the current version of Grails being used is a development version
isDomainClass(URL) - Method in GrailsResourceUtils
Checks whether the file referenced by the given url is a domain class
isEmpty() - Method in CodeGenConfig
isEmpty() - Method in NavigableMap
isEmpty() - Method in NavigableMap.NullSafeNavigator
isEnvironmentSet() - Method in CommandLine
@return Whether the environment is user specified
isEnvironmentSet() - Method in DefaultCommandLine
isFileURL(URL) - Method in GrailsResourceUtils
Determine whether the given URL points to a resource in the file system, that is, has protocol "file" or "vfs".
isGetter(String, Class, Class<?>) - Method in GrailsNameUtils
Returns true if the name of the method specified and the number of arguments make it a javabean property getter.
isGrailsPath(String) - Method in GrailsResourceUtils
Checks whether the specified path is a Grails path.
isGrailsResource(Resource) - Method in GrailsResourceUtils
Checks whether the specific resources is a Grails resource.
isInteractiveEnabled() - Method in GrailsConsole
isJarResource(Resource) - Method in PathMatchingResourcePatternResolver
Return whether the given resource handle indicates a jar resource that the doFindPathMatchingJarResources method can handle.
isJarURL(URL) - Method in GrailsResourceUtils
Determine whether the given URL points to a resource in a jar file, that is, has protocol "jar", "zip", "wsjar" or "code-source".
isMainClass(ClassReader) - Method in MainClassFinder
isPattern(String) - Method in AntPathMatcher
isProjectSource(Resource) - Method in GrailsResourceUtils
Checks whether the specified path is a Grails path.
isPropertyMethodSuffix(String) - Method in GrailsNameUtils
This method is used when interrogating a method name to determine if the method represents a property getter.
isReadable() - Method in AbstractFileResolvingResource
isReadable() - Method in ByteArrayResource
isReadable() - Method in FileSystemResource
This implementation checks whether the underlying file is marked as readable (and corresponds to an actual file with content, not to a directory).
isReadable() - Method in Resource
Return whether the contents of this resource can be read, e.g. via getInputStream() or getFile().
isSnapshot(String) - Method in VersionComparator
isStacktrace() - Method in GrailsConsole
@return Whether to show stack traces
isValidJavaIdentifier(String) - Method in GrailsNameUtils
Test whether the given name is a valid Java identifier
isValidJavaPackage(String) - Method in GrailsNameUtils
Test whether the give package name is a valid Java package
isValidVersion(String, String) - Method in GrailsVersionUtils
Check if the required version is a valid for the given plugin version.
isVerbose() - Method in GrailsConsole
@return Whether verbose output is being used
isVersionGreaterThan(String, String) - Method in GrailsVersionUtils
Returns true if rightVersion is greater than leftVersion
isWarDeployed() - Method in Metadata
@return true if this application is deployed as a WAR
isWindows() - Method in GrailsConsole
isWithinBinary(URL) - Method in IOUtils
Whether the given URL is within a binary like a JAR or WAR file
isWritable() - Method in FileSystemResource
This implementation checks whether the underlying file is marked as writable (and corresponds to an actual file with content, not to a directory).
iterator() - Method in CodeGenConfig
iterator() - Method in Metadata
iterator() - Method in NavigableMap.NullSafeNavigator

J

JAR_PATTERN - Field in BuildSettings
JAR_URL_SEPARATOR - Field in GrailsResourceUtils

K

keySet() - Method in CodeGenConfig
keySet() - Method in NavigableMap
keySet() - Method in NavigableMap.NullSafeNavigator

L

lastModified() - Method in AbstractFileResolvingResource
lastModified() - Method in ByteArrayResource
lastModified() - Method in FileSystemResource
lastModified() - Method in Resource
Determine the last-modified timestamp for this resource.
lastOption() - Method in CommandLine
@return The last specified option
lastOption() - Method in DefaultCommandLine
LINE_SEPARATOR - Field in GrailsConsole
loadFactoryNames(String, ClassLoader) - Method in FactoriesLoaderSupport
Loads the names of the classes from grails.factories without loading the classes themselves
loadGroovy(File) - Method in CodeGenConfig
loadYml(InputStream) - Method in CodeGenConfig
log(String) - Method in ConsoleLogger
Logs a message below the current status message
log(String) - Method in GrailsConsole
Logs a message below the current status message
lookupEnvironmentForCommand() - Method in CommandLine
lookupEnvironmentForCommand() - Method in DefaultCommandLine
lookupSecondary() - Method in Holder

M

MAIN_CLASS_NAME - Field in BuildSettings
Name of the System property that specifies the main class name
MainClassFinder - Class in org.grails.io.support
@author Graeme Rocher
MainClassFinder.MainMethodFinder - Class in org.grails.io.support
MainClassFinder.MainMethodFinder() - Constructor in MainClassFinder.MainMethodFinder
makeRelativeIfPossible(String) - Method in DefaultStackTracePrinter
match(String, String) - Method in AntPathMatcher
matchStart(String, String) - Method in AntPathMatcher
merge(Map, boolean) - Method in NavigableMap
mergeMap(Map, boolean) - Method in CodeGenConfig
mergeMapEntry(NavigableMap, String, def) - Method in NavigableMap
messageLogged(BuildEvent) - Method in GrailsConsoleBuildListener
MetaClassRegistryCleaner - Class in grails.build.support
Allows clean-up of changes made to the MetaClassRegistry.
Metadata - Class in grails.util
Represents the application Metadata and loading mechanics.
Metadata.FinalReference - Class in grails.util
Metadata.FinalReference(T) - Constructor in Metadata.FinalReference
Model - Interface in grails.codegen.model
The model of the naming conventions of a class used for Codegen
model(Resource) - Method in ModelBuilder
A model for the given class name
ModelBuilder - Trait in grails.codegen.model
Used to build a Model for the purposes of codegen
mostSimilar(String, def, double) - Method in CosineSimilarity
Sort the candidates by their similarity to the specified input.

N

name - Field in GrailsPlugin
NAME - Field in GrailsPluginInfo
The name of the plugin
Named - Interface in grails.util
A interface for objects that have been assigned a name
NavigableMap - Class in org.grails.config
NavigableMap.NullSafeNavigator - Class in org.grails.config
NavigableMap.NullSafeNavigator(NavigableMap, List<String>) - Constructor in NavigableMap.NullSafeNavigator
NavigableMap(NavigableMap, List<String>) - Constructor in NavigableMap
navigate(String) - Method in CodeGenConfig
navigate(String) - Method in ConfigMap
Navigate the map for the given path
navigate(String) - Method in NavigableMap
navigateSubMap(List<String>, boolean) - Method in NavigableMap
newList(T) - Method in CollectionUtils
newMap(Object) - Method in CollectionUtils
newSAXParser() - Method in SpringIOUtils
newSet(T) - Method in CollectionUtils
NOANSI_ARGUMENT - Field in CommandLine
NON_INTERACTIVE_ARGUMENT - Field in CommandLine
NULL_RESOURCE - Field in ResourceLocator

O

OFFLINE_ARGUMENT - Field in CommandLine
OFFLINE_MODE - Field in BuildSettings
onChange(File) - Method in DirectoryWatcher.FileChangeListener
Fired when a file changes
onChange(File, List<String>) - Method in FileExtensionFileChangeListener
onNew(File) - Method in DirectoryWatcher.FileChangeListener
Fired when a new file is created
onNew(File, List<String>) - Method in FileExtensionFileChangeListener
openStream(File) - Method in IOUtils
Gracefully opens a stream for a file, throwing exceptions where appropriate.
Option - Class in org.grails.build.parsing
Represents a command line option.
Option(String, String) - Constructor in Option
optionValue(String) - Method in CommandLine
The value of an option
optionValue(String) - Method in DefaultCommandLine
original() - Method in SystemStreamsRedirector

P

parse(DefaultCommandLine, String) - Method in CommandLineParser
ParseException - Class in org.grails.build.parsing
Exception that is thrown in command line parsing fails.
ParseException(Throwable) - Constructor in ParseException
parseNew(String) - Method in CommandLine
Parses a new CommandLine instance that combines this instance with the given arguments
parseNew(String) - Method in DefaultCommandLine
parseString(String, String) - Method in CommandLineParser
Parses a string of all the command line options converting them into an array of arguments to pass to #parse(String..args)
patchMatchingResolver - Field in ResourceLocator
PathMatchingResourcePatternResolver - Class in org.grails.io.support
A ResourcePatternResolver implementation that is able to resolve a specified resource location path into one or more matching Resources.
PathMatchingResourcePatternResolver(ResourceLoader) - Constructor in PathMatchingResourcePatternResolver
Create a new PathMatchingResourcePatternResolver.
patterns - Field in GrailsResourceUtils
persistHistory() - Method in GrailsConsole
PluginException - Class in grails.plugins.exceptions
PluginException(Throwable) - Constructor in PluginException
PluginSource - Annotation Type in grails.plugins.metadata
Source level annotation that indicates that a given source file is part of a plugin
plus(Object) - Method in NavigableMap.NullSafeNavigator
populatePackages(File, File, Collection<String>, String) - Method in ResourceUtils
prepareHistory() - Method in GrailsConsole
Prepares a history file to be used by the ConsoleReader.
prettyPrint(Throwable) - Method in DefaultStackTracePrinter
prettyPrint(Throwable) - Method in StackTracePrinter
Pretty print the given stack trace and return the result
prettyPrintCodeSnippet(Throwable) - Method in CodeSnippetPrinter
Attempts to present a preview code snippet of the code that went wrong
print(Object) - Method in DevNullPrintStream
print(String) - Method in GrailsConsoleErrorPrintStream
print(String) - Method in GrailsConsolePrintStream
printCausedByMessage(PrintWriter, Throwable) - Method in DefaultStackTracePrinter
printf(Locale, String, Object) - Method in DevNullPrintStream
printFailureLocation(PrintWriter, String, String, String) - Method in DefaultStackTracePrinter
printHeader(PrintWriter, String) - Method in DefaultStackTracePrinter
printLastEntry(PrintWriter, String, String, String) - Method in DefaultStackTracePrinter
println(Object) - Method in DevNullPrintStream
println(Object) - Method in GrailsConsoleErrorPrintStream
println(Object) - Method in GrailsConsolePrintStream
printStackLine(PrintWriter, String, String, String) - Method in DefaultStackTracePrinter
processOption(DefaultCommandLine, String) - Method in CommandLineParser
processSystemArg(DefaultCommandLine, String) - Method in CommandLineParser
PROFILE - Field in BuildSettings
The name of the profile being used
PROFILE_REPOSITORIES - Field in BuildSettings
Specifies the profile repositories to use
PROJECT_AUTODEPLOY_DIR - Field in BuildSettings
The name of the WAR file of the project
PROJECT_CLASSES_DIR - Field in BuildSettings
The name of the system property for the project classes directory.
PROJECT_DOCS_OUTPUT_DIR - Field in BuildSettings
The name of the system property for documentation output directory
PROJECT_RESOURCES_DIR - Field in BuildSettings
The name of the system property for #.
PROJECT_SOURCE_DIR - Field in BuildSettings
The name of the system property for project source directory.
PROJECT_TARGET_DIR - Field in BuildSettings
The name of the system property for the the project target directory.
PROJECT_TEST_CLASSES_DIR - Field in BuildSettings
The name of the system property for project test classes directory.
PROJECT_TEST_REPORTS_DIR - Field in BuildSettings
The name of the system property for test reported directory
PROJECT_TEST_SOURCE_DIR - Field in BuildSettings
The name of the property specification test locations, must be set of the directory is changed from src/test/groovy
PROJECT_WAR_FILE - Field in BuildSettings
The name of the WAR file of the project
PROJECT_WORK_DIR - Field in BuildSettings
The name of the system property for the project work directory
PROMPT - Field in GrailsConsole
PROVIDED_SCOPE - Field in BuildSettings
PROVIDED_SCOPE_DESC - Field in BuildSettings
PROXY_HTTP_PASSWORD - Field in BuildSettings
The http proxy password
PROXY_HTTP_USER - Field in BuildSettings
The http proxy username
PROXY_SELECTOR - Field in BuildSettings
The proxy selector object to use when connecting remotely from the CLI
put(String, Object) - Method in CodeGenConfig
put(String, Object) - Method in NavigableMap
put(String, Object) - Method in NavigableMap.NullSafeNavigator
putAll(Map<? extends String, ?>) - Method in CodeGenConfig
putAll(Map<? extends String, ?>) - Method in NavigableMap
putAll(Map<? extends String, ?>) - Method in NavigableMap.NullSafeNavigator

Q

R

redirect() - Method in SystemStreamsRedirector
redirectSystemOutAndErr(boolean) - Method in GrailsConsole
redirectToNull() - Method in SystemOutErrCapturer
REFRESH_DEPENDENCIES_ARGUMENT - Field in CommandLine
REGEX_FILE_SEPARATOR - Field in GrailsResourceUtils
reinitialize(InputStream, PrintStream, PrintStream) - Method in GrailsConsole
Use in testing when System.out, System.err or System.in change
reload() - Method in Metadata
Reloads the application metadata.
remove(Object) - Method in CodeGenConfig
remove(Object) - Method in NavigableMap
remove(Object) - Method in NavigableMap.NullSafeNavigator
removeInstance() - Method in GrailsConsole
removeListener(DirectoryWatcher.FileChangeListener) - Method in DirectoryWatcher
Removes a file listener from the current list
removeShutdownHook() - Method in GrailsConsole
reset() - Method in Metadata
Resets the current state of the Metadata so it is re-read.
resetCompleters() - Method in GrailsConsole
resolveRootDirResource(Resource) - Method in PathMatchingResourcePatternResolver
Resolve the specified resource for path matching.
resolvesTo(String, String) - Method in ScriptNameResolver
Matches a camelCase scriptName to a potential scriptFileName in canonical form.
Resource - Interface in org.grails.io.support
Interface for a resource descriptor that abstracts from the actual type of underlying resource, such as a file or class path resource.
RESOURCE_JAR_PREFIX - Field in IOUtils
RESOURCE_PATH_PATTERN - Field in GrailsResourceUtils
RESOURCE_WAR_PREFIX - Field in IOUtils
ResourceLoader - Interface in org.grails.io.support
Strategy interface for loading resources (e.. class path or file system resources).
ResourceLocator - Class in org.grails.io.support
Used to locate resources at build / development time
RESOURCES_DIR - Field in BuildSettings
The resources directory of the project, null outside of the development environment
resourceSearchDirectories - Field in ResourceLocator
ResourceUtils - Class in grails.io
Utility methods for interacting with resources
restoreOriginalSystemOutAndErr() - Method in GrailsConsole
restoreTerminal() - Method in GrailsConsole
retrieveMatchingFiles(File, String) - Method in PathMatchingResourcePatternResolver
Retrieve files that match the given path pattern, checking the given directory and its subdirectories.
run() - Method in DirectoryWatcher
RUN_EXECUTED - Field in BuildSettings
RUNTIME_SCOPE - Field in BuildSettings
RUNTIME_SCOPE_DESC - Field in BuildSettings

S

SCOPE_TO_DESC - Field in BuildSettings
ScriptNameResolver - Class in org.grails.build.parsing
@author Andres Almiray
searchMainClass(URI) - Method in MainClassFinder
Searches for the main class relative to the give path that is within the project tree
SECURE_MASK_CHAR - Field in GrailsConsole
secureUserInput(String) - Method in GrailsConsole
Like userInput(String) except that the user's entered characters will be replaced with '*' on the CLI, masking the input (i.e. suitable for capturing passwords etc.).
SERVLET_VERSION - Field in BuildSettings
The version of the servlet API
SERVLET_VERSION - Field in Metadata
set(T) - Method in Holder
setActive(boolean) - Method in DirectoryWatcher
Sets whether to stop the directory watcher
setAlwaysIncludeNewline(boolean) - Method in CandidateListCompletionHandler
setAnsiEnabled(boolean) - Method in GrailsConsole
setAt(Object, Object) - Method in CodeGenConfig
setAt(Object, Object) - Method in ConfigMap
Enables the object[foo] = 'stuff' syntax
setAt(Object, Object) - Method in NavigableMap
setAt(Object, Object) - Method in NavigableMap.NullSafeNavigator
setClassLoader(ClassLoader) - Method in DefaultResourceLoader
Specify the ClassLoader to load class path resources with, or null for using the thread context class loader at the time of actual resource access.
setCommand(String) - Method in CommandLine
setCommand(String) - Method in DefaultCommandLine
setCommandName(String) - Method in DefaultCommandLine
setCutOffPackage(String) - Method in DefaultStackTraceFilterer
setCutOffPackage(String) - Method in StackTraceFilterer
Sets the package where the stack trace should end
setDefaultInputMask(Character) - Method in GrailsConsole
setEnvironment(String) - Method in DefaultCommandLine
setErr(PrintStream) - Method in GrailsConsole
setError() - Method in DevNullPrintStream
setInstance(GrailsConsole) - Method in GrailsConsole
setLastMessage(String) - Method in GrailsConsole
setOut(PrintStream) - Method in GrailsConsole
setPathMatcher(AntPathMatcher) - Method in PathMatchingResourcePatternResolver
Set the PathMatcher implementation to use for this resource pattern resolver.
setPathSeparator(String) - Method in AntPathMatcher
Set the path separator to use for pattern parsing.
setProperty(String, Object) - Method in CodeGenConfig
setProperty(String, Object) - Method in NavigableMap
setProperty(String, Object) - Method in NavigableMap.NullSafeNavigator
setRawArguments(String) - Method in DefaultCommandLine
setResourceLoader(ResourceLoader) - Method in ResourceLocator
setSearchLocation(String) - Method in ResourceLocator
setSearchLocations(Collection<String>) - Method in ResourceLocator
setServletVersion(String) - Method in Metadata
setShouldFilter(boolean) - Method in DefaultStackTraceFilterer
setShouldFilter(boolean) - Method in StackTraceFilterer
@param shouldFilter Whether to filter stack traces or not
setSleepTime(long) - Method in DirectoryWatcher
Sets the amount of time to sleep between checks
setStacktrace(boolean) - Method in GrailsConsole
@param stacktrace Sets whether to show stack traces on errors
SETTINGS_FILE - Field in BuildSettings
setVerbose(boolean) - Method in GrailsConsole
@param verbose Sets whether verbose output should be used
shouldSkipNextCause(Throwable) - Method in DefaultStackTracePrinter
showPrompt() - Method in GrailsConsole
Shows the prompt to request user input
size() - Method in CodeGenConfig
size() - Method in NavigableMap
size() - Method in NavigableMap.NullSafeNavigator
SourceCodeAware - Interface in org.grails.exceptions.reporting
An interface that represents an exception that is capable of providing more information about the source code
SPACE - Field in GrailsConsole
SPRING_SCRIPTS_PATH_PATTERN - Field in GrailsResourceUtils
SpringIOUtils - Class in org.grails.io.support
Simple utility methods for file and stream copying.
STACK_LOG - Field in DefaultStackTraceFilterer
STACK_LOG_NAME - Field in DefaultStackTraceFilterer
STACKTRACE_ARGUMENT - Field in CommandLine
STACKTRACE_FILTERED_MESSAGE - Field in GrailsConsole
STACKTRACE_MESSAGE - Field in GrailsConsole
StackTraceFilterer - Interface in org.grails.exceptions.reporting
Improves the output of stack traces produced by exceptions in a Grails application.
StackTracePrinter - Interface in org.grails.exceptions.reporting
Defines method for pretty printing Stack traces.
StaticResourceLoader - Class in org.grails.io.support
Loads relative to a static base resource
StaticResourceLoader(Resource) - Constructor in StaticResourceLoader
supportsAtLeastVersion(String, String) - Method in GrailsVersionUtils
SVN_DIR_NAME - Field in DirectoryWatcher
SYS_PROP_DISPLAY_FULL_STACKTRACE - Field in StackTraceFilterer
SystemOutErrCapturer - Class in grails.io.support
Utility for capturing the result of calls to System.out / System.err
SystemOutErrCapturer.NullOutputStream - Class in grails.io.support
SystemPropertiesAuthenticator - Class in grails.build.proxy
An Authenticator that authenticates via System properties
SystemStreamsRedirector - Class in grails.io.support

T

TARGET_DIR - Field in BuildSettings
The target directory of the project, null outside of the development environment
targetFinished(BuildEvent) - Method in GrailsConsoleBuildListener
targetStarted(BuildEvent) - Method in GrailsConsoleBuildListener
taskFinished(BuildEvent) - Method in GrailsConsoleBuildListener
taskStarted(BuildEvent) - Method in GrailsConsoleBuildListener
TEST_SCOPE - Field in BuildSettings
TEST_SCOPE_DESC - Field in BuildSettings
toFlatConfig() - Method in NavigableMap
toProperties() - Method in NavigableMap
toString() - Method in FileSystemResource
toString(InputStream, String) - Method in IOUtils
Convert a stream to a String, reading the data from the stream
toString() - Method in NavigableMap
toString() - Method in NavigableMap.NullSafeNavigator
toString() - Method in UrlResource
toURI(String) - Method in GrailsResourceUtils
Create a URI instance for the given location String, replacing spaces with "%20" quotes first.
TRAILING_NAME - Field in GrailsPluginInfo
Defines the convention that appears within plugin class names
translateCommandline(String) - Method in CommandLineParser
Crack a command line.

U

updateConstantMetaClass(MetaClassRegistryChangeEvent) - Method in MetaClassRegistryCleaner
updateStatus(String) - Method in ConsoleLogger
Updates the current state message
updateStatus(String) - Method in GrailsConsole
Updates the current state message
uriToResourceCache - Field in ResourceLocator
URL_PROTOCOL_CODE_SOURCE - Field in GrailsResourceUtils
URL protocol for an entry from an OC4J jar file: "code-source"
URL_PROTOCOL_FILE - Field in GrailsResourceUtils
URL protocol for a file in the file system: "file"
URL_PROTOCOL_JAR - Field in GrailsResourceUtils
URL protocol for an entry from a jar file: "jar"
URL_PROTOCOL_VFS - Field in GrailsResourceUtils
URL protocol for a JBoss VFS resource: "vfs"
URL_PROTOCOL_VFSZIP - Field in GrailsResourceUtils
URL protocol for an entry from a JBoss jar file: "vfszip"
URL_PROTOCOL_WSJAR - Field in GrailsResourceUtils
URL protocol for an entry from a WebSphere jar file: "wsjar"
URL_PROTOCOL_ZIP - Field in GrailsResourceUtils
URL protocol for an entry from a zip file: "zip"
UrlResource - Class in org.grails.io.support
Resource implementation for java.net.URL locators.
UrlResource(String) - Constructor in UrlResource
Create a new UrlResource.
useCachesIfNecessary(URLConnection) - Method in GrailsResourceUtils
userInput(String, String) - Method in GrailsConsole
Replacement for AntBuilder.input() to eliminate dependency of GrailsScriptRunner on the Ant libraries.

V

values() - Method in CodeGenConfig
values() - Method in NavigableMap
values() - Method in NavigableMap.NullSafeNavigator
VERBOSE_ARGUMENT - Field in CommandLine
verbose(String) - Method in ConsoleLogger
Outputs a verbose message
verbose(String) - Method in GrailsConsole
VERSION_ARGUMENT - Field in CommandLine
version - Field in GrailsPlugin
VERSION - Field in GrailsPluginInfo
Defines the name of the property that specifies the plugin version
VersionComparator - Class in grails.plugins
A comparator capable of sorting versions from from newest to oldest
VIEWS_DIR_PATH - Field in GrailsResourceUtils
The path to the views directory
VIEWS_DIR_PATH_NO_SLASH - Field in GrailsResourceUtils
The path to the views directory without a trailing slash
visitMethod(int, String, String, String, String) - Method in MainClassFinder.MainMethodFinder

W

WAR_DEPLOYED - Field in Metadata
warDeployed - Field in ResourceLocator
warn(String) - Method in ConsoleLogger
Prints a warning message
warn(String) - Method in GrailsConsole
Prints a warn message
warning(String) - Method in ConsoleLogger
Prints a warning message
WARNING - Field in GrailsConsole
WEB_APP_DIR - Field in GrailsResourceUtils
The name of the Web app dir within Grails
WEB_APP_DIR - Field in ResourceLocator
WEB_INF - Field in GrailsResourceUtils
The relative path to the WEB-INF directory
WILDCARD - Field in ResourceLocator
withCapturedOutput(Closure<T>) - Method in SystemOutErrCapturer
withNullOutput(Closure<T>) - Method in SystemOutErrCapturer
withOriginalIO(Closure<T>) - Method in SystemStreamsRedirector
withRedirectedIO(Closure<T>) - Method in SystemStreamsRedirector
WORK_DIR - Field in BuildSettings
The name of the system property for the Grails work directory.
write(byte[]) - Method in DevNullPrintStream
write(byte[], int, int) - Method in SystemOutErrCapturer.NullOutputStream

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _