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.
accept(java.io.File) - Method in IOUtils.1
accept(java.io.File) - Method in ResourceLocator
addAll(java.lang.Object, java.lang.Object) - Method in SpringIOUtils
Adds the contents of 1 array to another
addAlteredMetaClass(java.lang.Class, groovy.lang.MetaClass) - Method in MetaClassRegistryCleaner
addDeclaredOption(java.lang.String, org.grails.build.parsing.Option, java.lang.Object) - Method in DefaultCommandLine
addGrailsConsoleBuildListener(org.apache.tools.ant.Project) - Method in GrailsConsoleAntBuilder
addInternalPackage(java.lang.String) - Method in DefaultStackTraceFilterer
addInternalPackage(java.lang.String) - Method in StackTraceFilterer
Adds a package name that should be filtered
addListener(org.grails.io.watch.DirectoryWatcher.FileChangeListener) - Method in DirectoryWatcher
Adds a file listener that can react to change events
addOption(java.lang.String, java.lang.String) - Method in CommandLineParser
Adds a declared option
addRemainingArg(java.lang.String) - Method in DefaultCommandLine
addShutdownHook() - Method in GrailsConsole
addStatus(java.lang.String) - Method in ConsoleLogger
Adds a new message that won't be overwritten by {#updateStatus(String)}
addStatus(java.lang.String) - Method in GrailsConsole
Keeps doesn't replace the status message
addSystemProperty(java.lang.String, java.lang.String) - Method in DefaultCommandLine
addUndeclaredOption(java.lang.String, java.lang.Object) - Method in DefaultCommandLine
addWatchDirectory(java.io.File, java.lang.String) - Method in DirectoryWatcher
Adds a directory to watch for the given file and extensions.
addWatchFile(java.io.File) - Method in DirectoryWatcher
Adds a file to the watch list
ansiWrap(java.io.OutputStream) - Method in GrailsConsole
Hook method that allows controlling whether or not output streams should be wrapped by AnsiConsole.wrapOutputStream.
ansiWrap(java.io.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(java.lang.String) - Method in GrailsConsole
appendPiecesForUri(java.lang.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 - Enum Constant in Environment
For the application data source, primarily for backward compatibility for those applications that use ApplicationDataSource.groovy.
APPLICATION_GRAILS_VERSION - Field in Metadata
APPLICATION_NAME - Field in Metadata
APPLICATION_VERSION - Field in Metadata
applyRelativePath(java.lang.String, java.lang.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
Returns:
The model as a map
assertNotNull(java.lang.Object, java.lang.String) - Method in FileSystemResource
asType(java.lang.Class) - Method in CodeGenConfig
asType(java.lang.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(java.io.PrintStream, java.io.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(org.apache.tools.ant.BuildEvent) - Method in GrailsConsoleBuildListener
BuildSettings - Class in grails.util
Build time settings and configuration
BuildSettings() - Constructor in BuildSettings
buildStarted(org.apache.tools.ant.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[], java.lang.String) - Constructor in ByteArrayResource
byteArrayToHexString(byte[]) - Method in SpringIOUtils
Convert a byte[] array to readable string format.
bytes - Property in ByteArrayResource

C

call(java.lang.Object) - Method in GrailsResourceUtils
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:"
ClassPathResource - Class in org.grails.io.support
Resource implementation for class path resources.
ClassPathResource(java.lang.String, java.lang.ClassLoader, Class<?>) - Constructor in ClassPathResource
Create a new ClassPathResource with optional ClassLoader and Class.
classSearchDirectories - Field in ResourceLocator
clean() - Method in MetaClassRegistryCleaner
cleanAndRemove(grails.build.support.MetaClassRegistryCleaner) - Method in MetaClassRegistryCleaner
cleanlyExit(int) - Method in GrailsConsole
cleanPath(java.lang.String) - Method in GrailsResourceUtils
Normalize the path by suppressing sequences like "path/.." and inner simple dots.
clear() - Method in CodeGenConfig
clear() - Method in Metadata
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(java.io.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(java.lang.String, java.lang.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(java.lang.String, java.lang.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(jline.console.ConsoleReader, List<CharSequence>, int) - Method in CandidateListCompletionHandler
computeChecksum(java.io.File, java.lang.String) - Method in SpringIOUtils
ConfigMap - Interface in grails.config
API onto application configuration
configMap - Property in CodeGenConfig
ConsoleLogger - Interface in grails.build.logging
Interface containing methods for logging to the Grails console
containsKey(java.lang.Object) - Method in CodeGenConfig
containsKey(java.lang.Object) - Method in Metadata
containsKey(java.lang.Object) - Method in NavigableMap
containsKey(java.lang.Object) - Method in NavigableMap.NullSafeNavigator
containsValue(java.lang.Object) - Method in CodeGenConfig
containsValue(java.lang.Object) - Method in NavigableMap
containsValue(java.lang.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(java.lang.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(java.net.URL) - Method in PathMatchingResourcePatternResolver
Convert the given URL as returned from the ClassLoader into a Resource object.
convertToOtherTypes(java.lang.Object, Class<T>) - Method in CodeGenConfig
convertToType(java.lang.Object, Class<T>) - Method in CodeGenConfig
copy(java.io.InputStream, java.io.Writer, java.lang.String) - Method in IOUtils
Copy an InputStream to the given writer with the given encoding
copy(java.lang.String, java.io.Writer) - Method in SpringIOUtils
Copy the contents of the given String to the given output Writer.
copyAll(org.grails.io.support.Resource, org.grails.io.support.Resource, java.io.File) - Method in SpringIOUtils
Copies all the resources for the given target directory.
copyToByteArray(java.io.InputStream) - Method in SpringIOUtils
Copy the contents of the given InputStream into a new byte array.
copyToString(java.io.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.
CosineSimilarity() - Constructor in CosineSimilarity
countOccurrencesOf(java.lang.String, java.lang.String) - Method in AntPathMatcher
Count the occurrences of the substring in string s.
create(java.io.InputStream, java.io.PrintStream, java.io.PrintStream) - Method in SystemStreamsRedirector
createAndRegister() - Method in MetaClassRegistryCleaner
createAntProject() - Method in GrailsConsoleAntBuilder
Returns:
Factory method to create new Project instances
createCommandLine() - Method in CommandLineParser
createConsoleReader(java.io.InputStream) - Method in GrailsConsole
createInstance() - Method in GrailsConsole
createRelative(java.lang.String) - Method in ByteArrayResource
createRelative(java.lang.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(java.lang.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(java.lang.String) - Method in Resource
Creates a new resource relative to this one
createRelative(java.lang.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
currentCompilationError - Field in Environment
currentReloadError - Field in Environment
CUSTOM - Enum Constant in Environment
A custom environment

D

DEFAULT_APPLICATION_NAME - Field in Metadata
DEFAULT - Field in Environment
Constants that indicates whether this GrailsApplication is running in the default environment
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
defaultPackage - Property in ModelBuilder
DefaultResourceLoader - Class in org.grails.io.support
Default implementation of the ResourceLoader interface.
DefaultResourceLoader(java.lang.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
DefaultStackTracePrinter() - Constructor in DefaultStackTracePrinter
delegateMap - Property in NavigableMap
Described - Interface in grails.util
Interface for classes that are described
description - Property in ByteArrayResource
deSnapshot(java.lang.String) - Method in VersionComparator
Removes any suffixes that indicate that the version is a kind of snapshot
determineRootDir(java.lang.String) - Method in PathMatchingResourcePatternResolver
Determine the root directory for the given location.
DEVELOPMENT - Enum Constant in Environment
The development environment
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(java.io.File, java.lang.String) - Method in PathMatchingResourcePatternResolver
Find all resources in the file system that match the given location pattern via the Ant-style PathMatcher.
doFindPathMatchingFileResources(org.grails.io.support.Resource, java.lang.String) - Method in PathMatchingResourcePatternResolver
Find all resources in the file system that match the given location pattern via the Ant-style PathMatcher.
doFindPathMatchingJarResources(org.grails.io.support.Resource, java.lang.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(java.lang.String, java.lang.String, boolean, Map<String,String>) - Method in AntPathMatcher
Actually match the given path against the given pattern.
doRetrieveMatchingFiles(java.lang.String, java.io.File, Set<File>) - Method in PathMatchingResourcePatternResolver
Recursively retrieve files that match the given pattern, adding them to the given result list.
dottedPath - Property in NavigableMap

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
ENV_GRAILS_HOME - Field in Environment
The name of the GRAILS_HOME environment variable
ENV_KEY - Field in Environment
Constant used to resolve the environment via System.getenv(Environment.ENV_KEY).
Environment - Enum in grails.util
Represents the current environment.
equals(java.lang.Object) - Method in ClassPathResource
This implementation compares the underlying class path locations.
equals(java.lang.Object) - Method in FileSystemResource
This implementation compares the underlying File references.
equals(java.lang.Object) - Method in NavigableMap
equals(java.lang.Object) - Method in NavigableMap.NullSafeNavigator
equals(java.lang.Object) - Method in UrlResource
This implementation compares the underlying URL references.
equals(java.lang.Object) - Method in VersionComparator
err - Property in SystemOutErrCapturer
err - Property in SystemStreamsRedirector
error(java.lang.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
ExceptionUtils() - Constructor in ExceptionUtils
executeForCurrentEnvironment(Closure<?>) - Method in Environment
Takes an environment specific DSL block like:
executeForEnvironment(grails.util.Environment, Closure<?>) - Method in Environment
Takes an environment specific DSL block like:
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.
extensions - Property in FileExtensionFileChangeListener
extractJarFileURL(java.net.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(org.codehaus.groovy.control.CompilationFailedException) - Method in ExceptionUtils
extractPathWithinPattern(java.lang.String, java.lang.String) - Method in AntPathMatcher
Given a pattern and a full path, determine the pattern-mapped part.
extractUriTemplateVariables(java.lang.String, java.lang.String) - Method in AntPathMatcher

F

FACTORIES_RESOURCE_LOCATION - Property in FactoriesLoaderSupport
The location to look for the factories.
FactoriesLoaderSupport - Class in org.grails.io.support
Base functionality for loading grails.factories
FactoriesLoaderSupport() - Constructor in FactoriesLoaderSupport
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(java.lang.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(java.lang.Throwable) - Method in DefaultStackTraceFilterer
filter(java.lang.Throwable) - Method in StackTraceFilterer
FinalReference(T) - Constructor in Metadata.FinalReference
findAllClassPathResources(java.lang.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(java.lang.Class) - Method in IOUtils
Finds the application directory for the given class
findClassResource(java.lang.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(java.net.URL) - Method in IOUtils
Finds a JAR for the given resource
findJarResource(java.lang.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(java.io.File) - Method in MainClassFinder
findPathMatchingResources(java.lang.String) - Method in PathMatchingResourcePatternResolver
Find all resources that match the given location pattern via the Ant-style PathMatcher.
findResourceForClassName(java.lang.String) - Method in ResourceLocator
findResourceForURI(java.lang.String) - Method in ResourceLocator
findResourceRelativeToClass(java.lang.Class, java.lang.String) - Method in IOUtils
Finds a URL within a JAR relative (from the root) to the given class
findRootResource(java.lang.Class) - Method in IOUtils
Returns a URL that represents the root classpath resource where the given class was loaded from
findRootResourcesURL(java.lang.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(java.lang.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(java.util.Locale, java.lang.String, java.lang.Object) - Method in DevNullPrintStream
found - Property in MainClassFinder.MainMethodFinder
FULL_STACKTRACE - Field in Environment
Whether the display of full stack traces is needed
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(java.lang.String) - Method in CodeGenConfig
get(boolean) - Method in Holder
get(java.lang.Object) - Method in Metadata
get() - Method in Metadata.FinalReference
get(java.lang.Object) - Method in NavigableMap
get(java.lang.Object) - Method in NavigableMap.NullSafeNavigator
get() - Method in SupplierUtil
getAppDir(org.grails.io.support.Resource) - Method in GrailsResourceUtils
getApplicationName() - Method in Metadata
Returns:
The application name
getApplicationVersion() - Method in Metadata
Returns:
The application version
getArtefactDirectory(java.lang.String) - Method in GrailsResourceUtils
Takes a file path and returns the name of the folder under grails-app i.e:
getAt(java.lang.Object) - Method in CodeGenConfig
getAt(java.lang.Object) - Method in ConfigMap
Enables the object[foo] syntax
getAt(java.lang.Object) - Method in NavigableMap
getAt(java.lang.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(java.lang.String) - Method in GrailsNameUtils
Return the class name for the given logical name.
getClassName(java.lang.String) - Method in GrailsResourceUtils
Returns the class name for a Grails resource.
getClassName() - Method in Model
Returns:
The class name excluding package
getClassNameForClassFile(java.lang.String, java.lang.String) - Method in GrailsResourceUtils
Returns the class name for a compiled class file
getClassNameRepresentation(java.lang.String) - Method in GrailsNameUtils
Returns the class name representation of the given name
getCommandName() - Method in CommandLine
Returns:
The command name specified
getCommandName() - Method in DefaultCommandLine
getCurrent() - Method in Environment
Returns the current environment which is typcally either DEVELOPMENT, PRODUCTION or TEST.
getCurrent() - Method in Metadata
Returns:
the metadata for the current application
getCurrentCommandLine() - Method in CommandLineParser
getCurrentCompilationError() - Method in Environment
getCurrentEnvironment() - Method in Environment
See Also:
getCurrent()
getCurrentReloadError() - Method in Environment
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
Returns:
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
Returns:
The environment specified
getEnvironment() - Method in DefaultCommandLine
getEnvironment(java.lang.String) - Method in Environment
Returns the environment for the given short name
getEnvironment() - Method in Metadata
Returns:
The environment the application expects to run in
getEnvironmentSpecificBlock(grails.util.Environment, Closure<?>) - Method in Environment
Takes an environment specific DSL block like:
getErr() - Method in GrailsConsole
getFile(java.net.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(java.net.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(java.lang.StackTraceElement) - Method in DefaultStackTracePrinter
getFilename() - Method in FileSystemResource
This implementation returns the name of the file.
getFilename(java.lang.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(java.lang.Throwable) - Method in ExceptionUtils
getFullClassName(java.lang.String) - Method in GrailsNameUtils
Returns the class name, including package, for the given class.
getFullName() - Method in GrailsPluginInfo
Returns:
The full name of the plugin including version
getFullName() - Method in Model
Returns:
The class name including package
getGetterName(java.lang.String) - Method in GrailsNameUtils
Calculate the name for a getter method to retrieve the specified property
getGrailsVersion() - Method in BuildSettings
Returns:
The version of Grails being used
getGrailsVersion() - Method in Environment
Returns:
The current Grails version
getGrailsVersion() - Method in Metadata
Returns:
The Grails version used to build the application
getInput() - Method in GrailsConsole
Returns:
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(org.grails.io.support.Resource) - Method in Metadata
Loads and returns a new Metadata object for the given File.
getJarFile(java.lang.String) - Method in PathMatchingResourcePatternResolver
Resolve the given jar file URL into a JarFile object.
getLastMessage() - Method in GrailsConsole
Returns:
The last message logged
getLineNumber() - Method in SourceCodeAware
getLogicalName(java.lang.String, java.lang.String) - Method in GrailsNameUtils
Retrieves the logical name of the class without the trailing name
getLogicalPropertyName(java.lang.String, java.lang.String) - Method in GrailsNameUtils
getLowerCaseName() - Method in Model
A lower case version of the class name separated by hyphens.
getLowerVersion(java.lang.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 Environment
Returns:
the name of the environment
getName() - Method in GrailsPluginInfo
Returns:
The name of the plug-in
getName() - Method in Named
Returns:
The name of the object
getName() - Method in Option
getNameFromScript(java.lang.String) - Method in GrailsNameUtils
Calculates the class name from a script name in the form my-funk-grails-script.
getNaturalName(java.lang.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(java.util.Map, java.lang.String) - Method in CollectionUtils
Gets a child map of the given parent map or returns an empty map if it doesn't exist
getOrDefault(java.lang.Object, java.lang.Object) - Method in Metadata
getOut() - Method in GrailsConsole
getOutputStream() - Method in FileSystemResource
This implementation opens a FileOutputStream for the underlying file.
getPackageName(java.lang.String) - Method in GrailsNameUtils
Returns the package prefix without the class name eg ('a.b.ClassName' becomes 'a.b').
getPackageName() - Method in Model
Returns:
The package name
getPackagePath() - Method in Model
Returns:
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(java.lang.String) - Method in GrailsResourceUtils
Gets the path relative to the project base directory.
getPathFromRoot(java.lang.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(java.lang.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
Returns:
The directory where the plugin exists or null if it cannot be read
getPluginName(java.lang.String) - Method in GrailsNameUtils
Returns the name of a plugin given the name of the *GrailsPlugin.groovy descriptor file.
getPluginName(java.lang.Class) - Method in GrailsVersionUtils
Get the name of the a plugin for a particular class.
getPluginVersion(java.lang.Class) - Method in GrailsVersionUtils
Get the version of the a plugin for a particular class.
getProjectPackageNames(java.io.File) - Method in ResourceUtils
getProperties() - Method in GrailsPluginInfo
Gets the properties of the plugin as a map
getProperty(java.lang.String, Class<T>, T) - Method in CodeGenConfig
getProperty(java.lang.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(java.lang.String) - Method in Metadata
getProperty(java.lang.String) - Method in NavigableMap
getProperty(java.lang.String) - Method in NavigableMap.NullSafeNavigator
getPropertyForGetter(java.lang.String, java.lang.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(java.lang.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(java.lang.Object, java.lang.String) - Method in GrailsNameUtils
Returns an appropriate property name for the given object.
getPropertyNameForLowerCaseHyphenSeparatedName(java.lang.String) - Method in GrailsNameUtils
Converts foo-bar into fooBar.
getPropertyNameRepresentation(java.lang.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(org.grails.io.support.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.
getReloadLocation() - Method in Environment
Returns:
Obtains the location to reload resources from
getRemainingArgs() - Method in CommandLine
Returns:
The remaining arguments after the command name
getRemainingArgs() - Method in DefaultCommandLine
getRemainingArgsArray() - Method in CommandLine
Returns:
The remaining arguments as an array
getRemainingArgsArray() - Method in DefaultCommandLine
getRemainingArgsLineSeparated() - Method in CommandLine
Returns:
The remaining args separated by the line separator char
getRemainingArgsLineSeparated() - Method in DefaultCommandLine
getRemainingArgsString() - Method in CommandLine
Returns:
The remaining args as one big string
getRemainingArgsString() - Method in DefaultCommandLine
getRemainingArgsWithOptionsString() - Method in CommandLine
Returns:
The remaining args as one big string without undeclared options
getRemainingArgsWithOptionsString() - Method in DefaultCommandLine
getRequiredProperty(java.lang.String, Class<T>) - Method in CodeGenConfig
getRequiredProperty(java.lang.String, Class<T>) - Method in ConfigMap
Return the property value associated with the given key, converted to the given targetType (never null).
getRequiredProperty(java.lang.String, Class<T>) - Method in Metadata
getResource(java.lang.String) - Method in DefaultResourceLoader
getResource(java.lang.String) - Method in PathMatchingResourcePatternResolver
getResource(java.lang.String) - Method in ResourceLoader
Return a Resource handle for the specified resource.
getResource(java.lang.String) - Method in StaticResourceLoader
getResourceByPath(java.lang.String) - Method in DefaultResourceLoader
Return a Resource handle for the resource at the given path.
getResourceByPath(java.lang.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(java.lang.String) - Method in PathMatchingResourcePatternResolver
getRootCause(java.lang.Throwable) - Method in ExceptionUtils
Obtains the root cause of the given exception
getScriptName(java.lang.String) - Method in GrailsNameUtils
Retrieves the script name representation of the given class name.
getServletVersion() - Method in Metadata
Returns:
The version of the servlet spec the application was created for
getSetterName(java.lang.String) - Method in GrailsNameUtils
Retrieves the name of a setter for the specified property name
getShortName(java.lang.String) - Method in GrailsNameUtils
Returns the class name without the package prefix.
getSimpleName() - Method in Model
Returns:
The class name without package
getStaticResourcePathForResource(org.grails.io.support.Resource, java.lang.String) - Method in GrailsResourceUtils
Retrieves the static resource path for the given Grails resource artifact (controller/taglib etc.)
getSystemProperties() - Method in CommandLine
Returns:
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(java.lang.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
Returns:
The version of the plug-in
getViewsDir(org.grails.io.support.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(grails.build.logging.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(java.io.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(java.io.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
GrailsVersionUtils() - Constructor in GrailsVersionUtils
groovyClassLoader - Property in CodeGenConfig

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(java.lang.String) - Method in CommandLine
Parameters:
name - The name of the option
hasOption(java.lang.String) - Method in DefaultCommandLine
hasReloadLocation() - Method in Environment
Returns:
Whether a reload location is specified
HISTORYFILE - Field in GrailsConsole
Holder - Class in grails.util
Authors:
Burt Beckwith
Holder(java.lang.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(java.lang.String) - Method in ConsoleLogger
Synonym for #log
info(java.lang.String) - Method in GrailsConsole
Synonym for #log
initialize(java.io.InputStream, java.io.PrintStream, java.io.PrintStream) - Method in GrailsConsole
INITIALIZING - Field in Environment
Whether Grails is in the middle of bootstrapping or not
input - Property in SystemStreamsRedirector
instantiateFromConfig(groovy.util.ConfigObject, java.lang.String, java.lang.String) - Method in GrailsResourceUtils
instantiateFromFlatConfig(Map<String,Object>, java.lang.String, java.lang.String) - Method in GrailsResourceUtils
INTERACTIVE_MODE_ENABLED - Field in Environment
Whether interactive mode is enabled
InvalidVersionException - Class in grails.plugins
Throw when a specified version number is invalid.
InvalidVersionException(java.lang.Throwable) - Constructor in InvalidVersionException
invokeMethod(java.lang.String, java.lang.Object) - Method in NavigableMap.NullSafeNavigator
IOUtils - Class in grails.io
Utility methods for performing I/O operations.
IOUtils.1 - Class in grails.io
IOUtils.1() - Constructor in IOUtils.1
IOUtils() - Constructor in IOUtils
is(java.lang.Object) - Method in NavigableMap.NullSafeNavigator
isAnsiEnabled() - Method in GrailsConsole
isApplicationClass(java.lang.String) - Method in DefaultStackTraceFilterer
Whether the given class name is an internal class and should be filtered
isBlank(java.lang.String) - Method in GrailsNameUtils
isDevelopmentEnvironmentAvailable() - Method in Environment
This method will return true if the 'grails-app' directory was found, regardless of whether reloading is active or not
isDevelopmentEnvironmentAvailable() - Method in Metadata
Returns:
True if the development sources are present
isDevelopmentGrailsVersion() - Method in BuildSettings
Returns:
Whether the current version of Grails being used is a development version
isDevelopmentMode() - Method in Environment
isDevelopmentRun() - Method in Environment
This method will return true the application is run
isDevtoolsRestart() - Method in Environment
Checks if the run of the app is due to spring dev-tools or not.
isDomainClass(java.net.URL) - Method in GrailsResourceUtils
isEmpty() - Method in CodeGenConfig
isEmpty() - Method in NavigableMap
isEmpty() - Method in NavigableMap.NullSafeNavigator
isEnvironmentSet() - Method in CommandLine
Returns:
Whether the environment is user specified
isEnvironmentSet() - Method in DefaultCommandLine
isFileURL(java.net.URL) - Method in GrailsResourceUtils
Determine whether the given URL points to a resource in the file system, that is, has protocol "file" or "vfs".
isFork() - Method in Environment
Whether this is a fork of the Grails command line environment
isGetter(java.lang.String, java.lang.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(java.lang.String) - Method in GrailsResourceUtils
isGrailsResource(org.grails.io.support.Resource) - Method in GrailsResourceUtils
Checks whether the specific resources is a Grails resource.
isInitializing() - Method in Environment
Returns:
Whether interactive mode is enabled
isInteractiveEnabled() - Method in GrailsConsole
isInteractiveMode() - Method in Environment
Returns:
Whether interactive mode is enabled
isJarResource(org.grails.io.support.Resource) - Method in PathMatchingResourcePatternResolver
Return whether the given resource handle indicates a jar resource that the doFindPathMatchingJarResources method can handle.
isJarURL(java.net.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(groovyjarjarasm.asm.ClassReader) - Method in MainClassFinder
isPattern(java.lang.String) - Method in AntPathMatcher
isProjectSource(org.grails.io.support.Resource) - Method in GrailsResourceUtils
Checks whether the specified path is a Grails path.
isPropertyMethodSuffix(java.lang.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().
isReloadEnabled() - Method in Environment
Returns:
Returns whether reload is enabled for the environment
isReloadingAgentEnabled() - Method in Environment
isReloadInProgress() - Method in Environment
isSnapshot(java.lang.String) - Method in VersionComparator
isStacktrace() - Method in GrailsConsole
Returns:
Whether to show stack traces
isStandalone() - Method in Environment
Whether the application has been executed standalone via static void main.
isStandaloneDeployed() - Method in Environment
Whether the application is running standalone within a JAR
isSystemSet() - Method in Environment
Returns:
Return true if the environment has been set as a System property
isValidJavaIdentifier(java.lang.String) - Method in GrailsNameUtils
Test whether the given name is a valid Java identifier
isValidJavaPackage(java.lang.String) - Method in GrailsNameUtils
Test whether the give package name is a valid Java package
isValidVersion(java.lang.String, java.lang.String) - Method in GrailsVersionUtils
Check if the required version is a valid for the given plugin version.
isVerbose() - Method in GrailsConsole
Returns:
Whether verbose output is being used
isVersionGreaterThan(java.lang.String, java.lang.String) - Method in GrailsVersionUtils
Returns true if rightVersion is greater than leftVersion
isWarDeployed() - Method in Environment
Check whether the application is deployed
isWarDeployed() - Method in Metadata
Returns:
true if this application is deployed as a WAR
isWindows() - Method in GrailsConsole
isWithinBinary(java.net.URL) - Method in IOUtils
Whether the given URL is within a binary like a JAR or WAR file
isWithinShell() - Method in Environment
Returns whether the environment is running within the Grails shell (executed via the 'grails' command line in a terminal window)
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 NavigableMap.NullSafeNavigator

J

JAR_PATTERN - Field in BuildSettings
JAR_URL_SEPARATOR - Field in GrailsResourceUtils

K

KEY - Field in Environment
Constant used to resolve the environment via System.getProperty(Environment.KEY)
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
Returns:
The last specified option
lastOption() - Method in DefaultCommandLine
LINE_SEPARATOR - Field in GrailsConsole
loadFactoryNames(java.lang.String, java.lang.ClassLoader) - Method in FactoriesLoaderSupport
Loads the names of the classes from grails.factories without loading the classes themselves
loadGroovy(java.io.File) - Method in CodeGenConfig
loadYml(java.io.InputStream) - Method in CodeGenConfig
log(java.lang.String) - Method in ConsoleLogger
Logs a message below the current status message
log(java.lang.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
mainClasses - Property in MainClassFinder
MainClassFinder - Class in org.grails.io.support
Authors:
Graeme Rocher
MainClassFinder.MainMethodFinder - Class in org.grails.io.support
MainClassFinder() - Constructor in MainClassFinder
MainMethodFinder() - Constructor in MainClassFinder.MainMethodFinder
makeRelativeIfPossible(java.lang.String) - Method in DefaultStackTracePrinter
match(java.lang.String, java.lang.String) - Method in AntPathMatcher
matchStart(java.lang.String, java.lang.String) - Method in AntPathMatcher
memoized(Supplier<T>) - Method in SupplierUtil
Caches the result of supplier in a thread safe manner.
memoizedNonEmpty(Supplier<T>) - Method in SupplierUtil
Caches the result of supplier in a thread safe manner.
merge(java.util.Map, boolean) - Method in NavigableMap
mergeMap(java.util.Map, boolean) - Method in CodeGenConfig
mergeMapEntry(org.grails.config.NavigableMap, java.lang.String, java.lang.Object) - Method in NavigableMap
messageLogged(org.apache.tools.ant.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
Model - Interface in grails.codegen.model
The model of the naming conventions of a class used for Codegen
model(org.grails.io.support.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(java.lang.String, java.lang.Object, double) - Method in CosineSimilarity
Sort the candidates by their similarity to the specified input.

N

name - Field in GrailsPlugin
Named - Interface in grails.util
A interface for objects that have been assigned a name
NavigableMap - Class in org.grails.config
deprecated:
This class is deprecated to reduce complexity, improve performance, and increase maintainability.
NavigableMap.NullSafeNavigator - Class in org.grails.config
deprecated:
This class will be removed in future.
NavigableMap(org.grails.config.NavigableMap, List<String>) - Constructor in NavigableMap
navigate(java.lang.String) - Method in CodeGenConfig
navigate(java.lang.String) - Method in ConfigMap
Navigate the map for the given path
navigate(java.lang.String) - Method in Metadata
navigate(java.lang.String) - Method in NavigableMap
navigateSubMap(List<String>, boolean) - Method in NavigableMap
newList(T) - Method in CollectionUtils
newMap(java.lang.Object) - Method in CollectionUtils
newSAXParser() - Method in SpringIOUtils
newSet(T) - Method in CollectionUtils
NULL_RESOURCE - Field in ResourceLocator
NullSafeNavigator(org.grails.config.NavigableMap, List<String>) - Constructor in NavigableMap.NullSafeNavigator

O

OFFLINE_MODE - Field in BuildSettings
onChange(java.io.File) - Method in DirectoryWatcher.FileChangeListener
Fired when a file changes
onChange(java.io.File, List<String>) - Method in FileExtensionFileChangeListener
onNew(java.io.File) - Method in DirectoryWatcher.FileChangeListener
Fired when a new file is created
onNew(java.io.File, List<String>) - Method in FileExtensionFileChangeListener
openStream(java.io.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(java.lang.String, java.lang.String) - Constructor in Option
optionValue(java.lang.String) - Method in CommandLine
The value of an option
optionValue(java.lang.String) - Method in DefaultCommandLine
original() - Method in SystemStreamsRedirector
out - Property in SystemOutErrCapturer
out - Property in SystemStreamsRedirector

P

parent - Property in NavigableMap.NullSafeNavigator
parse(org.grails.build.parsing.DefaultCommandLine, java.lang.String) - Method in CommandLineParser
ParseException - Class in org.grails.build.parsing
Exception that is thrown in command line parsing fails.
ParseException(java.lang.Throwable) - Constructor in ParseException
parseNew(java.lang.String) - Method in CommandLine
Parses a new CommandLine instance that combines this instance with the given arguments
parseNew(java.lang.String) - Method in DefaultCommandLine
parseString(java.lang.String, java.lang.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
path - Property in NavigableMap
path - Property in NavigableMap.NullSafeNavigator
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(org.grails.io.support.ResourceLoader) - Constructor in PathMatchingResourcePatternResolver
Create a new PathMatchingResourcePatternResolver.
patterns - Field in GrailsResourceUtils
persistHistory() - Method in GrailsConsole
PluginException - Class in grails.plugins.exceptions
PluginException(java.lang.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(java.lang.Object) - Method in NavigableMap.NullSafeNavigator
populatePackages(java.io.File, java.io.File, Collection<String>, java.lang.String) - Method in ResourceUtils
prepareHistory() - Method in GrailsConsole
Prepares a history file to be used by the ConsoleReader.
prettyPrint(java.lang.Throwable) - Method in DefaultStackTracePrinter
prettyPrint(java.lang.Throwable) - Method in StackTracePrinter
Pretty print the given stack trace and return the result
prettyPrintCodeSnippet(java.lang.Throwable) - Method in CodeSnippetPrinter
Attempts to present a preview code snippet of the code that went wrong
previousState - Property in SystemOutErrCapturer
print(java.lang.Object) - Method in DevNullPrintStream
print(java.lang.String) - Method in GrailsConsoleErrorPrintStream
print(java.lang.String) - Method in GrailsConsolePrintStream
printCausedByMessage(java.io.PrintWriter, java.lang.Throwable) - Method in DefaultStackTracePrinter
printf(java.util.Locale, java.lang.String, java.lang.Object) - Method in DevNullPrintStream
printFailureLocation(java.io.PrintWriter, java.lang.String, java.lang.String, java.lang.String) - Method in DefaultStackTracePrinter
printHeader(java.io.PrintWriter, java.lang.String) - Method in DefaultStackTracePrinter
printLastEntry(java.io.PrintWriter, java.lang.String, java.lang.String, java.lang.String) - Method in DefaultStackTracePrinter
println(java.lang.Object) - Method in DevNullPrintStream
println(java.lang.Object) - Method in GrailsConsoleErrorPrintStream
println(java.lang.Object) - Method in GrailsConsolePrintStream
printStackLine(java.io.PrintWriter, java.lang.String, java.lang.String, java.lang.String) - Method in DefaultStackTracePrinter
processOption(org.grails.build.parsing.DefaultCommandLine, java.lang.String) - Method in CommandLineParser
processSystemArg(org.grails.build.parsing.DefaultCommandLine, java.lang.String) - Method in CommandLineParser
PRODUCTION - Enum Constant in Environment
The production environment
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(java.lang.String, java.lang.Object) - Method in CodeGenConfig
put(java.lang.String, java.lang.Object) - Method in NavigableMap
put(java.lang.String, java.lang.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
REGEX_FILE_SEPARATOR - Field in GrailsResourceUtils
reinitialize(java.io.InputStream, java.io.PrintStream, java.io.PrintStream) - Method in GrailsConsole
Use in testing when System.out, System.err or System.in change
RELOAD_ENABLED - Field in Environment
Specify whether reloading is enabled for this environment
RELOAD_LOCATION - Field in Environment
The location where to reload resources from
reload() - Method in Metadata
Reloads the application metadata.
remove(java.lang.Object) - Method in CodeGenConfig
remove(java.lang.Object) - Method in NavigableMap
remove(java.lang.Object) - Method in NavigableMap.NullSafeNavigator
removeEldestEntry(Map.Entry<String,Boolean>) - Method in GrailsResourceUtils
removeInstance() - Method in GrailsConsole
removeListener(org.grails.io.watch.DirectoryWatcher.FileChangeListener) - Method in DirectoryWatcher
Removes a file listener from the current list
removeShutdownHook() - Method in GrailsConsole
reset() - Method in Environment
Reset the current environment
reset() - Method in Metadata
Resets the current state of the Metadata so it is re-read.
resetCompleters() - Method in GrailsConsole
resolveRootDirResource(org.grails.io.support.Resource) - Method in PathMatchingResourcePatternResolver
Resolve the specified resource for path matching.
resolvesTo(java.lang.String, java.lang.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
ResourceUtils() - Constructor in ResourceUtils
restoreOriginalSystemOutAndErr() - Method in GrailsConsole
restoreTerminal() - Method in GrailsConsole
retrieveMatchingFiles(java.io.File, java.lang.String) - Method in PathMatchingResourcePatternResolver
Retrieve files that match the given path pattern, checking the given directory and its subdirectories.
rootConfig - Property in NavigableMap
RUN_ACTIVE - Field in Environment
Constant indicating whether run-app or test-app was executed
run() - Method in DirectoryWatcher
RUN_EXECUTED - Field in BuildSettings
run() - Method in GrailsConsole
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
Authors:
Andres Almiray
ScriptNameResolver() - Constructor in ScriptNameResolver
searchMainClass(java.net.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(java.lang.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(java.lang.Object, java.lang.Object) - Method in CodeGenConfig
setAt(java.lang.Object, java.lang.Object) - Method in ConfigMap
Enables the object[foo] = 'stuff' syntax
setAt(java.lang.Object, java.lang.Object) - Method in NavigableMap
setAt(java.lang.Object, java.lang.Object) - Method in NavigableMap.NullSafeNavigator
setClassLoader(java.lang.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(java.lang.String) - Method in CommandLine
setCommand(java.lang.String) - Method in DefaultCommandLine
setCommandName(java.lang.String) - Method in DefaultCommandLine
setCurrentReloadError(java.lang.Throwable) - Method in Environment
setCutOffPackage(java.lang.String) - Method in DefaultStackTraceFilterer
setCutOffPackage(java.lang.String) - Method in StackTraceFilterer
Sets the package where the stack trace should end
setDefaultInputMask(java.lang.Character) - Method in GrailsConsole
setEnvironment(java.lang.String) - Method in DefaultCommandLine
setErr(java.io.PrintStream) - Method in GrailsConsole
setError() - Method in DevNullPrintStream
setInitializing(boolean) - Method in Environment
setInstance(grails.build.logging.GrailsConsole) - Method in GrailsConsole
setLastMessage(java.lang.String) - Method in GrailsConsole
setName(java.lang.String) - Method in Environment
Set the name.
setOut(java.io.PrintStream) - Method in GrailsConsole
setPathMatcher(org.grails.io.support.AntPathMatcher) - Method in PathMatchingResourcePatternResolver
Set the PathMatcher implementation to use for this resource pattern resolver.
setPathSeparator(java.lang.String) - Method in AntPathMatcher
Set the path separator to use for pattern parsing.
setProperty(java.lang.String, java.lang.Object) - Method in CodeGenConfig
setProperty(java.lang.String, java.lang.Object) - Method in NavigableMap
setProperty(java.lang.String, java.lang.Object) - Method in NavigableMap.NullSafeNavigator
setRawArguments(java.lang.String) - Method in DefaultCommandLine
setResourceLoader(org.grails.io.support.ResourceLoader) - Method in ResourceLocator
setSearchLocation(java.lang.String) - Method in ResourceLocator
setSearchLocations(Collection<String>) - Method in ResourceLocator
setServletVersion(java.lang.String) - Method in Metadata
setShouldFilter(boolean) - Method in DefaultStackTraceFilterer
setShouldFilter(boolean) - Method in StackTraceFilterer
Parameters:
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
Parameters:
stacktrace - Sets whether to show stack traces on errors
SETTINGS_FILE - Field in BuildSettings
setVerbose(boolean) - Method in GrailsConsole
Parameters:
verbose - Sets whether verbose output should be used
shouldSkipNextCause(java.lang.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_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.
STANDALONE - Field in Environment
Whether Grails has been executed standalone via the static void main method and not loaded in via the container
StaticResourceLoader - Class in org.grails.io.support
Loads relative to a static base resource
StaticResourceLoader(org.grails.io.support.Resource) - Constructor in StaticResourceLoader
SupplierUtil - Class in grails.util
Helper methods for dealing with java.util.function.Supplier.
supportsAtLeastVersion(java.lang.String, java.lang.String) - Method in GrailsVersionUtils
SVN_DIR_NAME - Field in DirectoryWatcher
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
SystemOutErrCapturer.NullOutputStream() - Constructor in SystemOutErrCapturer.NullOutputStream
SystemOutErrCapturer() - Constructor in SystemOutErrCapturer
SystemPropertiesAuthenticator - Class in grails.build.proxy
An Authenticator that authenticates via System properties
SystemPropertiesAuthenticator() - Constructor in SystemPropertiesAuthenticator
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(org.apache.tools.ant.BuildEvent) - Method in GrailsConsoleBuildListener
targetStarted(org.apache.tools.ant.BuildEvent) - Method in GrailsConsoleBuildListener
taskFinished(org.apache.tools.ant.BuildEvent) - Method in GrailsConsoleBuildListener
taskStarted(org.apache.tools.ant.BuildEvent) - Method in GrailsConsoleBuildListener
TEST - Enum Constant in Environment
The test environment
TEST_SCOPE - Field in BuildSettings
TEST_SCOPE_DESC - Field in BuildSettings
toFlatConfig() - Method in NavigableMap
toProperties() - Method in NavigableMap
toString() - Method in FileSystemResource
toString() - Method in GrailsConsole
toString(java.io.InputStream, java.lang.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(java.lang.String) - Method in GrailsResourceUtils
Create a URI instance for the given location String, replacing spaces with "%20" quotes first.
translateCommandline(java.lang.String) - Method in CommandLineParser
Crack a command line.

U

updateConstantMetaClass(groovy.lang.MetaClassRegistryChangeEvent) - Method in MetaClassRegistryCleaner
updateStatus(java.lang.String) - Method in ConsoleLogger
Updates the current state message
updateStatus(java.lang.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(java.lang.String) - Constructor in UrlResource
Create a new UrlResource.
useCachesIfNecessary(java.net.URLConnection) - Method in GrailsResourceUtils
userInput(java.lang.String, java.lang.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(java.lang.String) - Method in ConsoleLogger
Outputs a verbose message
verbose(java.lang.String) - Method in GrailsConsole
version - Field in GrailsPlugin
VersionComparator - Class in grails.plugins
A comparator capable of sorting versions from from newest to oldest
VersionComparator() - Constructor in VersionComparator
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, java.lang.String, java.lang.String, java.lang.String, java.lang.String) - Method in MainClassFinder.MainMethodFinder

W

WAR_DEPLOYED - Field in Metadata
warDeployed - Field in ResourceLocator
warn(java.lang.String) - Method in ConsoleLogger
Prints a warning message
warn(java.lang.String) - Method in GrailsConsole
Prints a warn message
warning(java.lang.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 _