Skip navigation links
Grengine
A B C D E F G H I L M N R S T U V W 

A

activate() - Static method in class ch.grengine.Grengine.Grape
activate Grape.
activate(Object) - Static method in class ch.grengine.Grengine.Grape
activate Grape.
addToCompilationUnit(CompilationUnit, Source, Sources) - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler
adds the given source to the given compilation unit and returns the resulting source unit.
asClassLoader(Loader) - Method in class ch.grengine.BaseGrengine
returns a new class loader based on the engine and the given loader.
asClassLoader() - Method in class ch.grengine.BaseGrengine
returns a new class loader based on the engine and its default attached loader.
asClassLoader(Loader) - Method in interface ch.grengine.engine.Engine
returns a class loader based on this engine and the given loader.
asClassLoader(Loader) - Method in class ch.grengine.engine.LayeredEngine
 

B

BaseGrengine - Class in ch.grengine
Abstract base Grengine.
BaseGrengine() - Constructor for class ch.grengine.BaseGrengine
constructor.
BaseSource - Class in ch.grengine.source
Abstract base implementation of the Source interface.
BaseSource() - Constructor for class ch.grengine.source.BaseSource
protected constructor.
BaseSources - Class in ch.grengine.sources
Abstract base class for implementing Sources.
BaseSources() - Constructor for class ch.grengine.sources.BaseSources
constructor.
binding() - Method in class ch.grengine.BaseGrengine
creates an empty binding.
binding(String, Object) - Method in class ch.grengine.BaseGrengine
creates a binding using the given key and value.
binding(String, Object, String, Object) - Method in class ch.grengine.BaseGrengine
creates a binding using the given keys and values.
binding(String, Object, String, Object, String, Object) - Method in class ch.grengine.BaseGrengine
creates a binding using the given keys and values.
binding(String, Object, String, Object, String, Object, String, Object) - Method in class ch.grengine.BaseGrengine
creates a binding using the given keys and values.
binding(String, Object, String, Object, String, Object, String, Object, String, Object, Object...) - Method in class ch.grengine.BaseGrengine
creates a binding using the given keys and values.
build() - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler.Builder
builds a new instance of DefaultGroovyCompiler.
build() - Method in class ch.grengine.code.groovy.DefaultGroovyCompilerFactory.Builder
builds a new instance of DefaultGroovyCompilerFactory.
build() - Method in class ch.grengine.engine.LayeredEngine.Builder
builds a new instance of LayeredEngine.
build() - Method in class ch.grengine.Grengine.Builder
builds a new instance of Grengine.
build() - Method in class ch.grengine.load.DefaultTopCodeCache.Builder
builds a new instance of DefaultGroovyCompiler.
build() - Method in class ch.grengine.load.DefaultTopCodeCacheFactory.Builder
builds a new instance of DefaultTopCodeCacheFactory.
build() - Method in class ch.grengine.source.DefaultSourceFactory.Builder
builds an instance of DefaultSourceFactory.
build() - Method in class ch.grengine.sources.CompositeSources.Builder
builds a new instance of CompositeSources.
build() - Method in class ch.grengine.sources.DirBasedSources.Builder
builds a new instance of DirBasedSources.
build() - Method in class ch.grengine.sources.FixedSetSources.Builder
builds a new instance of FixedSetSources.
Builder() - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompiler.Builder
constructor.
Builder() - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompilerFactory.Builder
constructor.
Builder() - Constructor for class ch.grengine.engine.LayeredEngine.Builder
constructor.
Builder() - Constructor for class ch.grengine.Grengine.Builder
constructor.
Builder(ClassLoader) - Constructor for class ch.grengine.load.DefaultTopCodeCache.Builder
constructor from parent class loader.
Builder() - Constructor for class ch.grengine.load.DefaultTopCodeCacheFactory.Builder
constructor.
Builder() - Constructor for class ch.grengine.load.LayeredClassLoader.Builder
constructor.
Builder() - Constructor for class ch.grengine.source.DefaultSourceFactory.Builder
constructor.
Builder(Collection<Sources>) - Constructor for class ch.grengine.sources.CompositeSources.Builder
constructor from a collection of sources.
Builder(File) - Constructor for class ch.grengine.sources.DirBasedSources.Builder
constructor from script file directory.
Builder(Set<Source>) - Constructor for class ch.grengine.sources.FixedSetSources.Builder
constructor from fixed source set.
buildFromCodeLayers() - Method in class ch.grengine.load.LayeredClassLoader.Builder
builds a new instance of LayeredClassLoader based on already compiled code layers.
buildFromSourcesLayers() - Method in class ch.grengine.load.LayeredClassLoader.Builder
builds a new instance of LayeredClassLoader based on sources to compile to code layers.
Bytecode - Class in ch.grengine.code
Bytecode with class name.
Bytecode(String, byte[]) - Constructor for class ch.grengine.code.Bytecode
constructor from class name and bytecode bytes.
BytecodeClassLoader - Class in ch.grengine.load
Bytecode-based class loader that also implements the SourceClassLoader interface.
BytecodeClassLoader(ClassLoader, LoadMode, Code) - Constructor for class ch.grengine.load.BytecodeClassLoader
constructor.

C

ch.grengine - package ch.grengine
Grengine.
ch.grengine.code - package ch.grengine.code
Compiler and compiled code.
ch.grengine.code.groovy - package ch.grengine.code.groovy
Groovy compiler.
ch.grengine.engine - package ch.grengine.engine
Engines.
ch.grengine.except - package ch.grengine.except
Exceptions.
ch.grengine.load - package ch.grengine.load
Class loaders.
ch.grengine.source - package ch.grengine.source
Groovy script source.
ch.grengine.sources - package ch.grengine.sources
Groovy script sources.
ClassNameConflictAnalyzer - Class in ch.grengine.code
Helper class for analyzing class name conflicts.
ClassNameConflictAnalyzer() - Constructor for class ch.grengine.code.ClassNameConflictAnalyzer
 
ClassNameConflictException - Exception in ch.grengine.except
Exception optionally thrown if code layers or code layers and parent class loader contain classes with the same name.
ClassNameConflictException(String, Map<String, List<Code>>, Map<String, List<Code>>) - Constructor for exception ch.grengine.except.ClassNameConflictException
constructor from exception message and maps with class conflict information.
ClassReleaser - Interface in ch.grengine.load
Interface for releasing class metadata when done using it.
clear() - Method in class ch.grengine.load.DefaultTopCodeCache
 
clear() - Method in interface ch.grengine.load.TopCodeCache
clears the cache.
clearCache() - Method in class ch.grengine.source.DefaultSourceFactory
clears the cache of URL content hashes.
clone() - Method in class ch.grengine.load.BytecodeClassLoader
 
clone() - Method in class ch.grengine.load.DefaultTopCodeCache
 
clone() - Method in class ch.grengine.load.LayeredClassLoader
creates a clone with the same code layers and with shared top code cache.
clone() - Method in class ch.grengine.load.SourceClassLoader
creates a clone with identical behavior, typically sharing the same bytecode.
clone() - Method in interface ch.grengine.load.TopCodeCache
creates a clone with the same cached bytecode.
cloneWithSeparateTopCodeCache() - Method in class ch.grengine.load.LayeredClassLoader
creates a clone with the same code layers and a separate top code cache (initially with the same cached bytecode).
close() - Method in class ch.grengine.BaseGrengine
release metadata for all classed ever loaded using this engine.
close() - Method in interface ch.grengine.engine.Engine
release metadata for all classed ever loaded using this engine.
close() - Method in class ch.grengine.engine.LayeredEngine
 
close() - Method in class ch.grengine.engine.Loader
release metadata for all classed ever loaded using this loader.
Code - Interface in ch.grengine.code
Interface for code from compiling an instance of Sources.
compile(Sources) - Method in interface ch.grengine.code.Compiler
compiles the given sources to an instance of Code in memory.
compile(Sources) - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler
compiles the given Groovy script sources to an instance of Code in memory.
CompiledSourceInfo - Class in ch.grengine.code
Information about compiled source.
CompiledSourceInfo(Source, String, Set<String>, long) - Constructor for class ch.grengine.code.CompiledSourceInfo
constructor.
CompileException - Exception in ch.grengine.except
Exception thrown when (Groovy script) compilation failed.
CompileException(String, Sources) - Constructor for exception ch.grengine.except.CompileException
constructor from exception message and sources for which compilation failed.
CompileException(String, Throwable, Sources) - Constructor for exception ch.grengine.except.CompileException
constructor from exception message, causing throwable and sources for which compilation failed.
Compiler - Interface in ch.grengine.code
Compiler.
CompilerFactory - Interface in ch.grengine.code
Compiler factory.
CompositeSources - Class in ch.grengine.sources
Sources based on a collection of Sources.
CompositeSources(CompositeSources.Builder) - Constructor for class ch.grengine.sources.CompositeSources
constructor from builder.
CompositeSources.Builder - Class in ch.grengine.sources
Builder for instances of CompositeSources.
create(Class<?>) - Method in class ch.grengine.BaseGrengine
creates an instance of Script from the given class.
create(String) - Method in class ch.grengine.BaseGrengine
creates a script (default loader, text-based source), compiling and loading first if necessary.
create(Loader, String) - Method in class ch.grengine.BaseGrengine
creates a script (given loader, text-based source), compiling and loading first if necessary.
create(String, String) - Method in class ch.grengine.BaseGrengine
creates a script (default loader, text-based source with desired class name), compiling and loading first if necessary.
create(Loader, String, String) - Method in class ch.grengine.BaseGrengine
creates a script (given loader, text-based source with desired class name), compiling and loading first if necessary.
create(File) - Method in class ch.grengine.BaseGrengine
creates a script (default loader, file-based source), compiling and loading first if necessary.
create(Loader, File) - Method in class ch.grengine.BaseGrengine
creates a script (given loader, file-based source), compiling and loading first if necessary.
create(URL) - Method in class ch.grengine.BaseGrengine
creates a script (default loader, URL-based source), compiling and loading first if necessary.
create(Loader, URL) - Method in class ch.grengine.BaseGrengine
creates a script (given loader, URL-based source), compiling and loading first if necessary.
create(Source) - Method in class ch.grengine.BaseGrengine
creates a script (default loader, given source), compiling and loading first if necessary.
create(Loader, Source) - Method in class ch.grengine.BaseGrengine
creates a script (given loader, given source), compiling and loading first if necessary.
CreateException - Exception in ch.grengine.except
Exception thrown when creating an instance of Script failed.
CreateException(String) - Constructor for exception ch.grengine.except.CreateException
constructor from exception message.
CreateException(String, Throwable) - Constructor for exception ch.grengine.except.CreateException
constructor from exception message and causing throwable.

D

deactivate() - Static method in class ch.grengine.Grengine.Grape
deactivate Grape.
DEFAULT_FILE_LAST_MODIFIED_TRACKING_LATENCY_MS - Static variable in class ch.grengine.source.DefaultSourceFactory.Builder
 
DEFAULT_LATENCY_MS - Static variable in class ch.grengine.Grengine.Builder
the default latency (5000ms = five seconds).
DEFAULT_LATENCY_MS - Static variable in class ch.grengine.sources.CompositeSources.Builder
the default latency (5000ms = five seconds).
DEFAULT_LATENCY_MS - Static variable in class ch.grengine.sources.DirBasedSources.Builder
the default latency (5000ms = five seconds).
DEFAULT_LATENCY_MS - Static variable in class ch.grengine.sources.FixedSetSources.Builder
the default latency (5000ms = five seconds).
DEFAULT_SCRIPT_EXTENSIONS - Static variable in class ch.grengine.code.groovy.DefaultGroovyCompilerFactory
default script extensions, namely just the single extension "groovy".
DEFAULT_URL_TRACKING_LATENCY_MS - Static variable in class ch.grengine.source.DefaultSourceFactory.Builder
default latency for tracking URL content (60000ms = one minute).
DefaultClassReleaser - Class in ch.grengine.load
Default implementation for releasing class metadata when done using it.
DefaultCode - Class in ch.grengine.code
Default implementation of Code with all bytecode in memory.
DefaultCode(String, Map<Source, CompiledSourceInfo>, Map<String, Bytecode>) - Constructor for class ch.grengine.code.DefaultCode
constructor (typically called by the compiler).
DefaultFileSource - Class in ch.grengine.source
File-based script source, default implementation of the FileSource interface.
DefaultFileSource(File) - Constructor for class ch.grengine.source.DefaultFileSource
constructor from script file.
DefaultGroovyCompiler - Class in ch.grengine.code.groovy
Default Groovy compiler.
DefaultGroovyCompiler(DefaultGroovyCompiler.Builder) - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompiler
constructor from builder.
DefaultGroovyCompiler() - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompiler
constructor from parent class loader set to the context class loader of the current thread and from default compiler configuration.
DefaultGroovyCompiler(ClassLoader) - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompiler
constructor from given parent class loader and default compiler configuration.
DefaultGroovyCompiler(ClassLoader, CompilerConfiguration) - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompiler
constructor from given parent class loader and compiler configuration.
DefaultGroovyCompiler.Builder - Class in ch.grengine.code.groovy
Builder for instances of DefaultGroovyCompiler.
DefaultGroovyCompilerFactory - Class in ch.grengine.code.groovy
Factory for instances of DefaultGroovyCompiler
DefaultGroovyCompilerFactory(DefaultGroovyCompilerFactory.Builder) - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompilerFactory
constructor from builder.
DefaultGroovyCompilerFactory() - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompilerFactory
constructor from defaults for all settings.
DefaultGroovyCompilerFactory(CompilerConfiguration) - Constructor for class ch.grengine.code.groovy.DefaultGroovyCompilerFactory
constructor from given compiler configuration and defaults for all other settings.
DefaultGroovyCompilerFactory.Builder - Class in ch.grengine.code.groovy
Builder for instances of DefaultGroovyCompilerFactory.
DefaultSingleSourceCode - Class in ch.grengine.code
Default implementation of SingleSourceCode with all bytecode in memory.
DefaultSingleSourceCode(String, Map<Source, CompiledSourceInfo>, Map<String, Bytecode>) - Constructor for class ch.grengine.code.DefaultSingleSourceCode
constructor (typically called by the compiler).
DefaultSourceFactory - Class in ch.grengine.source
Default implementation of the SourceFactory interface.
DefaultSourceFactory(DefaultSourceFactory.Builder) - Constructor for class ch.grengine.source.DefaultSourceFactory
constructor from builder.
DefaultSourceFactory() - Constructor for class ch.grengine.source.DefaultSourceFactory
constructor from default builder (no URL tracking).
DefaultSourceFactory.Builder - Class in ch.grengine.source
Builder for SourceFactory instances.
DefaultTextSource - Class in ch.grengine.source
Text-based script source, default implementation of the TextSource interface.
DefaultTextSource(String) - Constructor for class ch.grengine.source.DefaultTextSource
constructor from script text.
DefaultTextSource(String, String) - Constructor for class ch.grengine.source.DefaultTextSource
constructor from script text and desired class name.
DefaultTopCodeCache - Class in ch.grengine.load
Default implementation of the SourceFactory interface.
DefaultTopCodeCache(DefaultTopCodeCache.Builder) - Constructor for class ch.grengine.load.DefaultTopCodeCache
constructor from builder.
DefaultTopCodeCache.Builder - Class in ch.grengine.load
Builder for instances of DefaultTopCodeCache.
DefaultTopCodeCacheFactory - Class in ch.grengine.load
Factory for instances of DefaultTopCodeCache
DefaultTopCodeCacheFactory(DefaultTopCodeCacheFactory.Builder) - Constructor for class ch.grengine.load.DefaultTopCodeCacheFactory
constructor from builder.
DefaultTopCodeCacheFactory() - Constructor for class ch.grengine.load.DefaultTopCodeCacheFactory
constructor from defaults for all settings.
DefaultTopCodeCacheFactory(CompilerFactory) - Constructor for class ch.grengine.load.DefaultTopCodeCacheFactory
constructor from given compiler factory and defaults for all other settings.
DefaultTopCodeCacheFactory.Builder - Class in ch.grengine.load
Builder for instances of DefaultTopCodeCacheFactory.
DefaultUrlSource - Class in ch.grengine.source
URL-based script source with content considered static, default implementation of the UrlSource interface.
DefaultUrlSource(URL) - Constructor for class ch.grengine.source.DefaultUrlSource
constructor from URL.
DirBasedSources - Class in ch.grengine.sources
Sources based on a directory with script files.
DirBasedSources(DirBasedSources.Builder) - Constructor for class ch.grengine.sources.DirBasedSources
constructor from builder.
DirBasedSources.Builder - Class in ch.grengine.sources
Builder for instances of DirBasedSources.
DirMode - Enum in ch.grengine.sources
Mode for parsing directories for files.
disableGrapeSupport() - Static method in class ch.grengine.code.groovy.DefaultGroovyCompiler
disable Grape support.

E

enableGrapeSupport() - Static method in class ch.grengine.code.groovy.DefaultGroovyCompiler
enable Grape support with the Grape class as lock.
enableGrapeSupport(Object) - Static method in class ch.grengine.code.groovy.DefaultGroovyCompiler
enable Grape support with the given class as lock.
engine - Variable in class ch.grengine.BaseGrengine
the engine that powers this Grengine.
Engine - Interface in ch.grengine.engine
Engine interface.
EngineId - Class in ch.grengine.engine
Engine ID used to authenticate instances of Loader.
EngineId() - Constructor for class ch.grengine.engine.EngineId
constructor.
equals(Object) - Method in class ch.grengine.engine.Loader
two loaders are equal if and only if their loader number and their engine ID are equal.
equals(Object) - Method in class ch.grengine.source.BaseSource
implementation based on the protected member variable id.
equals(Object) - Method in interface ch.grengine.source.Source
two sources are equal if and only if their source IDs are equal.

F

FileSource - Interface in ch.grengine.source
Interface for a file-based script source.
filesToSourceSet(Collection<File>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given collections of script files, using the default source factory.
filesToSourceSet(File...) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given script files, using the default source factory.
filesToSourceSet(SourceFactory, Collection<File>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given collections of script files, using the given source factory.
filesToSourceSet(SourceFactory, File...) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given script files, using the given source factory.
findBytecodeClassLoaderBySource(Source) - Method in class ch.grengine.load.BytecodeClassLoader
 
findBytecodeClassLoaderBySource(Source) - Method in class ch.grengine.load.LayeredClassLoader
tries to find the bytecode class loader that can load classes that were created by compiling the given source.
findBytecodeClassLoaderBySource(Source) - Method in class ch.grengine.load.SourceClassLoader
tries to find the bytecode class loader that can load classes that were created by compiling the given source.
findClass(String) - Method in class ch.grengine.load.BytecodeClassLoader
 
FixedSetSources - Class in ch.grengine.sources
Sources based on a fixed set of Source.
FixedSetSources(FixedSetSources.Builder) - Constructor for class ch.grengine.sources.FixedSetSources
constructor from builder.
FixedSetSources.Builder - Class in ch.grengine.sources
Builder for instances of FixedSetSources.
fromFile(File) - Method in class ch.grengine.source.DefaultSourceFactory
 
fromFile(File) - Method in interface ch.grengine.source.SourceFactory
gets source from script file.
fromText(String) - Method in class ch.grengine.source.DefaultSourceFactory
 
fromText(String, String) - Method in class ch.grengine.source.DefaultSourceFactory
 
fromText(String) - Method in interface ch.grengine.source.SourceFactory
gets source from script text.
fromText(String, String) - Method in interface ch.grengine.source.SourceFactory
gets source from script text and desired class name.
fromUrl(URL) - Method in class ch.grengine.source.DefaultSourceFactory
 
fromUrl(URL) - Method in interface ch.grengine.source.SourceFactory
gets source from script URL.

G

getAllClassNamesMap(List<Code>) - Static method in class ch.grengine.code.ClassNameConflictAnalyzer
gets a map of class name to a list of all Code layers that contain a class with that name.
getBuilder() - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler
gets the builder.
getBuilder() - Method in class ch.grengine.code.groovy.DefaultGroovyCompilerFactory
gets the builder.
getBuilder() - Method in class ch.grengine.engine.LayeredEngine
gets the builder.
getBuilder() - Method in class ch.grengine.Grengine
gets the builder.
getBuilder() - Method in class ch.grengine.load.DefaultTopCodeCache
gets the builder.
getBuilder() - Method in class ch.grengine.load.DefaultTopCodeCacheFactory
gets the builder.
getBuilder() - Method in class ch.grengine.load.LayeredClassLoader
gets the builder.
getBuilder() - Method in class ch.grengine.source.DefaultSourceFactory
gets the builder.
getBuilder() - Method in class ch.grengine.sources.CompositeSources
gets the builder.
getBuilder() - Method in class ch.grengine.sources.DirBasedSources
gets the builder.
getBuilder() - Method in class ch.grengine.sources.FixedSetSources
gets the builder.
getBytecode(String) - Method in interface ch.grengine.code.Code
gets the bytecode for the given class name.
getBytecode(String) - Method in class ch.grengine.code.DefaultCode
 
getBytecode(String) - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getBytes() - Method in class ch.grengine.code.Bytecode
gets the bytecode bytes.
getClassName() - Method in class ch.grengine.code.Bytecode
gets the class name.
getClassNames(Source) - Method in interface ch.grengine.code.Code
gets all class names of the given source.
getClassNames() - Method in class ch.grengine.code.CompiledSourceInfo
gets all class names.
getClassNames(Source) - Method in class ch.grengine.code.DefaultCode
 
getClassNames(Source) - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getClassNames() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getClassNames() - Method in interface ch.grengine.code.SingleSourceCode
gets all class names for the single source.
getClassNameSet() - Method in interface ch.grengine.code.Code
gets the set of all class names for which bytecode is in this code.
getClassNameSet() - Method in class ch.grengine.code.DefaultCode
 
getClassNameSet() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getClassReleaser() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets the class releaser.
getCode() - Method in class ch.grengine.load.BytecodeClassLoader
gets the code.
getCodeLayers() - Method in class ch.grengine.load.LayeredClassLoader.Builder
gets the code layers.
getCodeLayers() - Method in class ch.grengine.load.LayeredClassLoader
gets the code layers.
getCompilerConfiguration() - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler.Builder
gets the compiler configuration.
getCompilerConfiguration() - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler
gets the compiler configuration.
getCompilerConfiguration() - Method in class ch.grengine.code.groovy.DefaultGroovyCompilerFactory.Builder
gets the compiler configuration.
getCompilerConfiguration() - Method in class ch.grengine.code.groovy.DefaultGroovyCompilerFactory
gets the compiler configuration.
getCompilerFactory() - Method in class ch.grengine.load.DefaultTopCodeCache.Builder
gets the compiler factory.
getCompilerFactory() - Method in class ch.grengine.load.DefaultTopCodeCache
gets the compiler factory.
getCompilerFactory() - Method in class ch.grengine.load.DefaultTopCodeCacheFactory.Builder
gets the compiler factory.
getCompilerFactory() - Method in class ch.grengine.load.DefaultTopCodeCacheFactory
gets the compiler factory.
getCompilerFactory() - Method in class ch.grengine.sources.BaseSources
 
getCompilerFactory() - Method in class ch.grengine.sources.CompositeSources.Builder
gets the compiler factory.
getCompilerFactory() - Method in class ch.grengine.sources.DirBasedSources.Builder
gets the compiler factory.
getCompilerFactory() - Method in class ch.grengine.sources.FixedSetSources.Builder
gets the compiler factory.
getCompilerFactory() - Method in interface ch.grengine.sources.Sources
gets the compiler factory that should be used to compile the sources.
getDateThrown() - Method in exception ch.grengine.except.GrengineException
gets the date (with time) when the exception was thrown.
getDir() - Method in class ch.grengine.sources.DirBasedSources.Builder
gets the script file directory.
getDir() - Method in class ch.grengine.sources.DirBasedSources
gets the script file directory.
getDirMode() - Method in class ch.grengine.sources.DirBasedSources.Builder
gets the dir mode.
getDirMode() - Method in class ch.grengine.sources.DirBasedSources
gets the dir mode.
getEngine() - Method in class ch.grengine.BaseGrengine
gets the engine.
getEngine() - Method in class ch.grengine.Grengine.Builder
gets the engine.
getFile() - Method in class ch.grengine.source.DefaultFileSource
 
getFile() - Method in interface ch.grengine.source.FileSource
gets the canonical file of this source, with fallback to the absolute file.
getFileLastModifiedTrackingLatencyMs() - Method in class ch.grengine.source.DefaultSourceFactory.Builder
gets latency for tracking file last modified of file sources.
getId() - Method in class ch.grengine.source.BaseSource
gets the protected member variable id.
getId() - Method in interface ch.grengine.source.Source
gets the unique ID of this source.
getInstance() - Static method in class ch.grengine.load.DefaultClassReleaser
gets the singleton instance of the default class releaser.
getLastChecked() - Method in class ch.grengine.source.SourceSetState
gets last checked.
getLastModified() - Method in class ch.grengine.source.BaseSource
always returns 0.
getLastModified() - Method in class ch.grengine.source.DefaultFileSource
 
getLastModified() - Method in interface ch.grengine.source.Source
gets the date and time the source was last recognized to have been modified, in milliseconds since 1970.
getLastModified() - Method in class ch.grengine.source.SourceSetState
gets last modified.
getLastModified() - Method in class ch.grengine.sources.BaseSources
 
getLastModified() - Method in interface ch.grengine.sources.Sources
updates the source set, if necessary, and returns the last modified of when last found changed.
getLastModifiedAtCompileTime(Source) - Method in interface ch.grengine.code.Code
gets the last modified at compile time of the given source.
getLastModifiedAtCompileTime() - Method in class ch.grengine.code.CompiledSourceInfo
gets the last modified at compile time.
getLastModifiedAtCompileTime(Source) - Method in class ch.grengine.code.DefaultCode
 
getLastModifiedAtCompileTime(Source) - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getLastModifiedAtCompileTime() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getLastModifiedAtCompileTime() - Method in interface ch.grengine.code.SingleSourceCode
gets the last modified at compile time for the single source.
getLastUpdateException() - Method in class ch.grengine.Grengine
updates code layers if necessary and gets the exception that occurred at the last update.
getLatencyMs() - Method in class ch.grengine.Grengine.Builder
gets the latency in milliseconds.
getLatencyMs() - Method in class ch.grengine.sources.CompositeSources.Builder
gets the latency in milliseconds.
getLatencyMs() - Method in class ch.grengine.sources.DirBasedSources.Builder
gets the latency in milliseconds.
getLatencyMs() - Method in class ch.grengine.sources.FixedSetSources.Builder
gets the latency in milliseconds.
getLoader() - Method in class ch.grengine.BaseGrengine
gets the default loader instance, which is implicitly used when no specific loader is indicated.
getLoader() - Method in interface ch.grengine.engine.Engine
gets the default attached loader.
getLoader() - Method in class ch.grengine.engine.LayeredEngine
 
getLoadMode() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets the load mode for the (static) code layers.
getLoadMode() - Method in class ch.grengine.load.BytecodeClassLoader
 
getLoadMode() - Method in class ch.grengine.load.LayeredClassLoader.Builder
gets the load mode for the (static) code layers.
getLoadMode() - Method in class ch.grengine.load.LayeredClassLoader
 
getLoadMode() - Method in class ch.grengine.load.SourceClassLoader
gets the load mode.
getMainClassName(Source) - Method in interface ch.grengine.code.Code
gets the main class name of the given source.
getMainClassName() - Method in class ch.grengine.code.CompiledSourceInfo
gets the main class name.
getMainClassName(Source) - Method in class ch.grengine.code.DefaultCode
 
getMainClassName(Source) - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getMainClassName() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getMainClassName() - Method in interface ch.grengine.code.SingleSourceCode
gets the main class name for the single source.
getMessage() - Method in exception ch.grengine.except.GrengineException
gets the exception message given in the constructor, with the exception message of the causing throwable appended, if there was one.
getName() - Method in class ch.grengine.sources.BaseSources
 
getName() - Method in class ch.grengine.sources.CompositeSources.Builder
gets the sources name.
getName() - Method in class ch.grengine.sources.DirBasedSources.Builder
gets the sources name.
getName() - Method in class ch.grengine.sources.FixedSetSources.Builder
gets the sources name.
getName() - Method in interface ch.grengine.sources.Sources
gets the name of the sources.
getNumber() - Method in class ch.grengine.engine.Loader
gets the loader number.
getParent() - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler.Builder
gets the parent class loader.
getParent() - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler
gets the parent class loader.
getParent() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets the parent class loader.
getParent() - Method in class ch.grengine.load.DefaultTopCodeCache.Builder
gets the parent class loader.
getParent() - Method in class ch.grengine.load.DefaultTopCodeCache
 
getParent() - Method in class ch.grengine.load.LayeredClassLoader.Builder
gets the parent class loader.
getParent() - Method in interface ch.grengine.load.TopCodeCache
gets the parent class loader.
getSameClassNamesInMultipleCodeLayersMap(List<Code>) - Static method in class ch.grengine.code.ClassNameConflictAnalyzer
gets a map of class name to a list of all Code layers that contain a class with that name, but only if the class name occurs more than once in the code layers.
getSameClassNamesInMultipleCodeLayersMap() - Method in exception ch.grengine.except.ClassNameConflictException
gets a map of class name to a list of all Code layers that contain a class with that name, but only if the class name occurred more than once in the code layers.
getSameClassNamesInParentAndCodeLayersMap(ClassLoader, List<Code>) - Static method in class ch.grengine.code.ClassNameConflictAnalyzer
gets a map of class name to a list of all Code layers that contain a class with that name, but only if the class name occurs also in the given parent class loader.
getSameClassNamesInParentAndCodeLayersMap() - Method in exception ch.grengine.except.ClassNameConflictException
gets a map of class name to a list of all Code layers that contain a class with that name, but only if the class name occurred also in the parent class loader.
getScriptExtensions() - Method in class ch.grengine.sources.DirBasedSources.Builder
gets the script extensions.
getScriptExtensions() - Method in class ch.grengine.sources.DirBasedSources
gets the set of script extensions.
getSource() - Method in class ch.grengine.code.CompiledSourceInfo
gets the originating Source instance.
getSource() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getSource() - Method in interface ch.grengine.code.SingleSourceCode
gets the source.
getSourceClassLoader(EngineId) - Method in class ch.grengine.engine.Loader
gets the source class loader (if the engine ID matches).
getSourceFactory() - Method in class ch.grengine.BaseGrengine
gets the source factory used to create instances of Source, often implicitly from script text or file or URL.
getSourceFactory() - Method in class ch.grengine.Grengine.Builder
gets the source factory for creating sources.
getSourceFactory() - Method in class ch.grengine.sources.DirBasedSources.Builder
gets the source factory.
getSources() - Method in exception ch.grengine.except.CompileException
gets sources for which compilation failed.
getSourcesCollection() - Method in class ch.grengine.sources.CompositeSources.Builder
gets the collection of sources.
getSourceSet() - Method in interface ch.grengine.code.Code
gets the set of all sources which had been compiled to this code.
getSourceSet() - Method in class ch.grengine.code.DefaultCode
 
getSourceSet() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getSourceSet() - Method in class ch.grengine.source.SourceSetState
gets the source set.
getSourceSet() - Method in class ch.grengine.sources.BaseSources
 
getSourceSet() - Method in class ch.grengine.sources.FixedSetSources.Builder
gets the fixed source set.
getSourceSet() - Method in interface ch.grengine.sources.Sources
updates the source set, if necessary, and returns it.
getSourceSetNew() - Method in class ch.grengine.sources.BaseSources
gets the updated source set.
getSourceSetNew() - Method in class ch.grengine.sources.CompositeSources
 
getSourceSetNew() - Method in class ch.grengine.sources.DirBasedSources
gets the updated source set.
getSourceSetNew() - Method in class ch.grengine.sources.FixedSetSources
 
getSourcesLayers() - Method in class ch.grengine.Grengine.Builder
gets the sources layers.
getSourcesLayers() - Method in class ch.grengine.load.LayeredClassLoader.Builder
gets the sources layers.
getSourcesName() - Method in interface ch.grengine.code.Code
gets the name of the originating Sources instance, or a similar name that can help a human reader to identify the originating sources.
getSourcesName() - Method in class ch.grengine.code.DefaultCode
 
getSourcesName() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
getText() - Method in class ch.grengine.source.DefaultTextSource
 
getText() - Method in interface ch.grengine.source.TextSource
gets the script text.
getTextStartNoLineBreaks(String, int) - Static method in class ch.grengine.source.SourceUtil
gets the start of the given text with line breaks removed.
getTopCodeCache() - Method in class ch.grengine.load.LayeredClassLoader.Builder
gets the top code cache.
getTopCodeCache() - Method in class ch.grengine.load.LayeredClassLoader
gets the top code cache.
getTopCodeCacheFactory() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets the top code cache factory.
getTopLoadMode() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets the load mode for the top code cache.
getTopLoadMode() - Method in class ch.grengine.load.LayeredClassLoader.Builder
gets the top load mode.
getUpdateExceptionNotifier() - Method in class ch.grengine.Grengine.Builder
gets the update notification notifier.
getUpToDateCode(Source) - Method in class ch.grengine.load.DefaultTopCodeCache
 
getUpToDateCode(Source) - Method in interface ch.grengine.load.TopCodeCache
gets the code from the cache, recompiling the given source if it had been modified.
getUrl() - Method in class ch.grengine.source.DefaultUrlSource
 
getUrl() - Method in interface ch.grengine.source.UrlSource
gets the script URL.
getUrlTrackingLatencyMs() - Method in class ch.grengine.source.DefaultSourceFactory.Builder
gets latency for tracking URL content.
Grape() - Constructor for class ch.grengine.Grengine.Grape
 
Grengine - Class in ch.grengine
Grengine.
Grengine(Grengine.Builder) - Constructor for class ch.grengine.Grengine
constructor from builder.
Grengine() - Constructor for class ch.grengine.Grengine
constructor for a Grengine without any (static) code layers, but with a top code cache.
Grengine(CompilerConfiguration) - Constructor for class ch.grengine.Grengine
constructor for a Grengine without any (static) code layers, but with a top code cache.
Grengine(ClassLoader) - Constructor for class ch.grengine.Grengine
constructor for a Grengine without any (static) code layers, but with a top code cache.
Grengine(ClassLoader, CompilerConfiguration) - Constructor for class ch.grengine.Grengine
constructor for a Grengine without any (static) code layers, but with a top code cache.
Grengine(File) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, without subdirectories, and with a top code cache.
Grengine(ClassLoader, File) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, without subdirectories, and with a top code cache.
Grengine(CompilerConfiguration, File) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, without subdirectories, and with a top code cache.
Grengine(ClassLoader, CompilerConfiguration, File) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, without subdirectories, and with a top code cache.
Grengine(File, DirMode) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, optionally including subdirectories (recursively), and with a top code cache.
Grengine(ClassLoader, File, DirMode) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, optionally including subdirectories (recursively), and with a top code cache.
Grengine(CompilerConfiguration, File, DirMode) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, optionally including subdirectories (recursively), and with a top code cache.
Grengine(ClassLoader, CompilerConfiguration, File, DirMode) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on scripts in a given script directory, optionally including subdirectories (recursively), and with a top code cache.
Grengine(Collection<URL>) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on a collection of URL-based scripts, with a top code cache, and with tracking URLs based on content.
Grengine(ClassLoader, Collection<URL>) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on a collection of URL-based scripts, with a top code cache, and with tracking URLs based on content.
Grengine(CompilerConfiguration, Collection<URL>) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on a collection of URL-based scripts, with a top code cache, and with tracking URLs based on content.
Grengine(ClassLoader, CompilerConfiguration, Collection<URL>) - Constructor for class ch.grengine.Grengine
constructor for a Grengine based on a collection of URL-based scripts, with a top code cache, and with tracking URLs based on content.
Grengine.Builder - Class in ch.grengine
Builder for instances of Grengine.
Grengine.Grape - Class in ch.grengine
Convenience class for easily getting a Grengine that works with Grape, eliminating also a Groovy issue related to Grape (GROOVY-7407).
GrengineException - Exception in ch.grengine.except
General Grengine exception.
GrengineException(String) - Constructor for exception ch.grengine.except.GrengineException
constructor from exception message.
GrengineException(String, Throwable) - Constructor for exception ch.grengine.except.GrengineException
constructor from exception message and causing throwable.

H

hash(String, String) - Static method in class ch.grengine.source.SourceUtil
calculates a cryptographic hash function (message digest).
hashCode() - Method in class ch.grengine.engine.Loader
implementation based on loader number and engine ID.
hashCode() - Method in class ch.grengine.source.BaseSource
implementation based on the protected member variable id.
hashCode() - Method in interface ch.grengine.source.Source
returns the hash code of the source ID.

I

id - Variable in class ch.grengine.source.BaseSource
the source id.
init(String, CompilerFactory, long) - Method in class ch.grengine.sources.BaseSources
initialize.
isAllowSameClassNamesInMultipleCodeLayers() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets whether to allow the same class names in multiple code layers.
isAllowSameClassNamesInParentAndCodeLayers() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets whether to allow the same class names in code layers and parent class loader.
isAttached() - Method in class ch.grengine.engine.Loader
gets whether the loader is attached to the engine or not.
isForSource(Source) - Method in interface ch.grengine.code.Code
returns true if the given source is for this code, i.e. had been part of the sources compiled to this code.
isForSource(Source) - Method in class ch.grengine.code.DefaultCode
 
isForSource(Source) - Method in class ch.grengine.code.DefaultSingleSourceCode
 
isTrackFileSourceLastModified() - Method in class ch.grengine.source.DefaultSourceFactory.Builder
gets whether to track (cache) file source last modified, default is not to track.
isTrackTextSourceIds() - Method in class ch.grengine.source.DefaultSourceFactory.Builder
gets whether to track (cache) text source IDs, default is not to track.
isTrackUrlContent() - Method in class ch.grengine.source.DefaultSourceFactory.Builder
gets whether to track URL content.
isWithTopCodeCache() - Method in class ch.grengine.engine.LayeredEngine.Builder
gets whether to use the a top code cache or not.
isWithTopCodeCache() - Method in class ch.grengine.load.LayeredClassLoader.Builder
gets whether to use the a top code cache or not.

L

LATENCY_MS_INFINITE_STATIC - Static variable in class ch.grengine.Grengine
constant for an infinite latency (static).
LayeredClassLoader - Class in ch.grengine.load
SourceClassLoader based on layers of BytecodeClassLoader plus optionally a TopCodeCache.
LayeredClassLoader(LayeredClassLoader.Builder) - Constructor for class ch.grengine.load.LayeredClassLoader
constructor from builder, based on already compiled code layers.
LayeredClassLoader(LayeredClassLoader.Builder, boolean) - Constructor for class ch.grengine.load.LayeredClassLoader
constructor from builder, based on sources to compile to code layers or on already compiled code layers.
LayeredClassLoader.Builder - Class in ch.grengine.load
Builder for instances of LayeredClassLoader.
LayeredEngine - Class in ch.grengine.engine
Engine based on instances of LayeredClassLoader.
LayeredEngine(LayeredEngine.Builder) - Constructor for class ch.grengine.engine.LayeredEngine
constructor from builder.
LayeredEngine.Builder - Class in ch.grengine.engine
Builder for instances of LayeredEngine.
load(String) - Method in class ch.grengine.BaseGrengine
loads a class (default loader, text-based source), compiling first if necessary.
load(Loader, String) - Method in class ch.grengine.BaseGrengine
loads a class (given loader, text-based source), compiling first if necessary.
load(String, String) - Method in class ch.grengine.BaseGrengine
loads a class (default loader, text-based source with desired class name), compiling first if necessary.
load(Loader, String, String) - Method in class ch.grengine.BaseGrengine
loads a class (given loader, text-based source with desired class name), compiling first if necessary.
load(File) - Method in class ch.grengine.BaseGrengine
loads a class (default loader, file-based source), compiling first if necessary.
load(Loader, File) - Method in class ch.grengine.BaseGrengine
loads a class (given loader, file-based source), compiling first if necessary.
load(URL) - Method in class ch.grengine.BaseGrengine
loads a class (default loader, URL-based source), compiling first if necessary.
load(Loader, URL) - Method in class ch.grengine.BaseGrengine
loads a class (given loader, URL-based source), compiling first if necessary.
load(Source) - Method in class ch.grengine.BaseGrengine
loads a class (default loader, given source), compiling first if necessary.
load(Loader, Source) - Method in class ch.grengine.BaseGrengine
loads a class (given loader, given source), compiling first if necessary.
loadClass(Loader, Source, String) - Method in class ch.grengine.BaseGrengine
loads a class with the given name and from the given source from the given loader.
loadClass(Source, String) - Method in class ch.grengine.BaseGrengine
loads a class with the given name and from the given source from the default loader.
loadClass(Loader, String) - Method in class ch.grengine.BaseGrengine
loads a class by name from the given loader.
loadClass(String) - Method in class ch.grengine.BaseGrengine
loads a class by name from the default loader.
loadClass(Loader, Source, String) - Method in interface ch.grengine.engine.Engine
loads a class with the given name and from the given source from the given loader.
loadClass(Loader, String) - Method in interface ch.grengine.engine.Engine
loads a class by name from the given loader.
loadClass(Loader, Source, String) - Method in class ch.grengine.engine.LayeredEngine
 
loadClass(Loader, String) - Method in class ch.grengine.engine.LayeredEngine
 
loadClass(Loader, Source, String) - Method in class ch.grengine.Grengine
 
loadClass(Source, String) - Method in class ch.grengine.Grengine
 
loadClass(Loader, String) - Method in class ch.grengine.Grengine
 
loadClass(String) - Method in class ch.grengine.Grengine
 
loadClass(String, boolean) - Method in class ch.grengine.load.BytecodeClassLoader
 
loadClass(Source, String) - Method in class ch.grengine.load.BytecodeClassLoader
 
loadClass(String, boolean) - Method in class ch.grengine.load.LayeredClassLoader
 
loadClass(Source, String) - Method in class ch.grengine.load.LayeredClassLoader
loads a class with the given name and from the given source.
loadClass(Source, String) - Method in class ch.grengine.load.SourceClassLoader
loads a class with the given name and from the given source.
loadClassBySourceAndName(ClassLoader, Source, String) - Static method in class ch.grengine.load.BytecodeClassLoader
Helper method for loading a class with the given name and from the given source from the given class loader.
loader - Variable in class ch.grengine.BaseGrengine
the default loader instance, which is implicitly used when no specific loader is indicated.
Loader - Class in ch.grengine.engine
Wrapper for a SourceClassLoader that can only be used by the Engine that created it.
Loader(EngineId, long, boolean, SourceClassLoader) - Constructor for class ch.grengine.engine.Loader
constructor, with default class releaser.
Loader(EngineId, long, boolean, ClassReleaser, SourceClassLoader) - Constructor for class ch.grengine.engine.Loader
constructor, with given class releaser.
LoadException - Exception in ch.grengine.except
Exception thrown when loading a class failed.
LoadException(String) - Constructor for exception ch.grengine.except.LoadException
constructor from exception message.
LoadException(String, Throwable) - Constructor for exception ch.grengine.except.LoadException
constructor from exception message and causing throwable.
loadMainClass(Loader, Source) - Method in class ch.grengine.BaseGrengine
loads the main class of the given source from the given loader.
loadMainClass(Source) - Method in class ch.grengine.BaseGrengine
loads the main class of the given source from the default loader.
loadMainClass(Loader, Source) - Method in interface ch.grengine.engine.Engine
loads the main class of the given source from the given loader.
loadMainClass(Loader, Source) - Method in class ch.grengine.engine.LayeredEngine
 
loadMainClass(Loader, Source) - Method in class ch.grengine.Grengine
 
loadMainClass(Source) - Method in class ch.grengine.Grengine
 
loadMainClass(Source) - Method in class ch.grengine.load.BytecodeClassLoader
 
loadMainClass(Source) - Method in class ch.grengine.load.LayeredClassLoader
loads the main class of the given source.
loadMainClass(Source) - Method in class ch.grengine.load.SourceClassLoader
loads the main class of the given source.
loadMainClassBySource(ClassLoader, Source) - Static method in class ch.grengine.load.BytecodeClassLoader
Helper method for loading the main class of the given source from the given class loader.
LoadMode - Enum in ch.grengine.load
Mode for loading classes.

M

md5(String) - Static method in class ch.grengine.source.SourceUtil
calculates an MD5 hash.

N

newAttachedLoader() - Method in class ch.grengine.BaseGrengine
creates and gets a new attached loader, backed by the same bytecode as all other shared loaders created by this engine and automatically updated if code layers are set.
newAttachedLoader() - Method in interface ch.grengine.engine.Engine
creates and gets a new attached loader, backed by the same bytecode as all other shared loaders created by this engine and automatically updated if code layers are set.
newAttachedLoader() - Method in class ch.grengine.engine.LayeredEngine
creates and gets a new attached loader, backed by the same bytecode as all other shared loaders created by this engine, with a top code cache shared with all other attached loaders of this engine and automatically updated if code layers are set.
newCompiler(ClassLoader) - Method in interface ch.grengine.code.CompilerFactory
creates a new Compiler instance with given parent class loader.
newCompiler(ClassLoader) - Method in class ch.grengine.code.groovy.DefaultGroovyCompilerFactory
 
newDetachedLoader() - Method in class ch.grengine.BaseGrengine
creates and gets a new detached loader, backed initially by the same bytecode as all attached loaders created by this engine, but not updated if code layers are set.
newDetachedLoader() - Method in interface ch.grengine.engine.Engine
creates and gets a new detached loader, backed initially by the same bytecode as all attached loaders created by this engine, but not updated if code layers are set.
newDetachedLoader() - Method in class ch.grengine.engine.LayeredEngine
creates and gets a new detached loader, backed initially by the same bytecode as all attached loaders created by this engine (code layers and top code cache), but not updated if code layers are set and with a separate top code cache instance.
newGrengine() - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(), with the following differences.
newGrengine(CompilerConfiguration) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(CompilerConfiguration), with the following differences.
newGrengine(GroovyClassLoader) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(ClassLoader), with the following differences.
newGrengine(GroovyClassLoader, CompilerConfiguration) - Static method in class ch.grengine.Grengine.Grape
newGrengine(File) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(File), with the following differences.
newGrengine(CompilerConfiguration, File) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(CompilerConfiguration, File), with the following differences.
newGrengine(GroovyClassLoader, File) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(ClassLoader, File), with the following differences.
newGrengine(GroovyClassLoader, CompilerConfiguration, File) - Static method in class ch.grengine.Grengine.Grape
newGrengine(File, DirMode) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(File, DirMode), with the following differences.
newGrengine(CompilerConfiguration, File, DirMode) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(CompilerConfiguration, File, DirMode), with the following differences.
newGrengine(GroovyClassLoader, File, DirMode) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(ClassLoader, File, DirMode), with the following differences.
newGrengine(GroovyClassLoader, CompilerConfiguration, File, DirMode) - Static method in class ch.grengine.Grengine.Grape
newGrengine(Collection<URL>) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(Collection), with the following differences.
newGrengine(CompilerConfiguration, Collection<URL>) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(CompilerConfiguration, Collection), with the following differences.
newGrengine(GroovyClassLoader, Collection<URL>) - Static method in class ch.grengine.Grengine.Grape
equivalent to Grengine.Grengine(ClassLoader, Collection), with the following differences.
newGrengine(GroovyClassLoader, CompilerConfiguration, Collection<URL>) - Static method in class ch.grengine.Grengine.Grape
newTopCodeCache(ClassLoader) - Method in class ch.grengine.load.DefaultTopCodeCacheFactory
 
newTopCodeCache(ClassLoader) - Method in interface ch.grengine.load.TopCodeCacheFactory
creates a new TopCodeCache instance with given parent class loader.
notify(GrengineException) - Method in interface ch.grengine.UpdateExceptionNotifier
notification callback.

R

readUrlText(URL, String) - Static method in class ch.grengine.source.SourceUtil
reads the content from the given URL using the given character encoding.
release(Class<?>) - Method in interface ch.grengine.load.ClassReleaser
release class metadata when done using it.
release(Class<?>) - Method in class ch.grengine.load.DefaultClassReleaser
 
releaseClasses(ClassReleaser) - Method in class ch.grengine.load.BytecodeClassLoader
 
releaseClasses(ClassReleaser) - Method in class ch.grengine.load.LayeredClassLoader
 
releaseClasses(ClassReleaser) - Method in class ch.grengine.load.SourceClassLoader
release metadata for all classed ever loaded by this class loader.
run(Script) - Method in class ch.grengine.BaseGrengine
runs the given script (empty binding).
run(Script, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
runs the given script (given binding).
run(Script, Binding) - Method in class ch.grengine.BaseGrengine
runs the given script (given binding).
run(String) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, text-based source, empty binding), compiling and loading first if necessary.
run(String, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, text-based source, given binding), compiling and loading first if necessary.
run(String, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, text-based source, given binding), compiling and loading first if necessary.
run(Loader, String) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, text-based source, empty binding), compiling and loading first if necessary.
run(Loader, String, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, text-based source, given binding), compiling and loading first if necessary.
run(Loader, String, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, text-based source, given binding), compiling and loading first if necessary.
run(String, String) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, text-based source with desired class name, empty binding), compiling and loading first if necessary.
run(String, String, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, text-based source with desired class name, given binding), compiling and loading first if necessary.
run(String, String, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, text-based source with desired class name, given binding), compiling and loading first if necessary.
run(Loader, String, String) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, text-based source with desired class name, empty binding), compiling and loading first if necessary.
run(Loader, String, String, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, text-based source with desired class name, given binding), compiling and loading first if necessary.
run(Loader, String, String, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, text-based source with desired class name, given binding), compiling and loading first if necessary.
run(File) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, file-based source, empty binding), compiling and loading first if necessary.
run(File, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, file-based source, given binding), compiling and loading first if necessary.
run(File, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, file-based source, given binding), compiling and loading first if necessary.
run(Loader, File) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, file-based source, empty binding), compiling and loading first if necessary.
run(Loader, File, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, file-based source, given binding), compiling and loading first if necessary.
run(Loader, File, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, file-based source, given binding), compiling and loading first if necessary.
run(URL) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, URL-based source, empty binding), compiling and loading first if necessary.
run(URL, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, URL-based source, given binding), compiling and loading first if necessary.
run(URL, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, URL-based source, new binding), compiling and loading first if necessary.
run(Loader, URL) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, URL-based source, empty binding), compiling and loading first if necessary.
run(Loader, URL, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, URL-based source, given binding), compiling and loading first if necessary.
run(Loader, URL, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, URL-based source, given binding), compiling and loading first if necessary.
run(Source) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, given source, empty binding), compiling and loading first if necessary.
run(Source, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, given source, given binding), compiling and loading first if necessary.
run(Source, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (default loader, given source, given binding), compiling and loading first if necessary.
run(Loader, Source) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, given source, empty binding), compiling and loading first if necessary.
run(Loader, Source, Map<String, Object>) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, given source, given binding), compiling and loading first if necessary.
run(Loader, Source, Binding) - Method in class ch.grengine.BaseGrengine
creates and runs a script (given loader, given source, given binding), compiling and loading first if necessary.

S

setAllowSameClassNamesInMultipleCodeLayers(boolean) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets whether to allow the same class names in multiple code layers, default is true.
setAllowSameClassNamesInParentAndCodeLayers(boolean) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets whether to allow the same class names in code layers and parent class loader, default is true.
setClassReleaser(ClassReleaser) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets the class releaser, default is the DefaultClassReleaser singleton instance.
setCodeLayers(List<Code>) - Method in interface ch.grengine.engine.Engine
sets (replaces) code layers of the engine, based on already compiled code layers.
setCodeLayers(List<Code>) - Method in class ch.grengine.engine.LayeredEngine
 
setCodeLayers(List<Code>) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets the code layers, default is no layers.
setCodeLayers(Code...) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets the code layers, default is no layers.
setCodeLayersBySource(List<Sources>) - Method in interface ch.grengine.engine.Engine
sets (replaces) code layers of the engine, based on sources to compile to code layers.
setCodeLayersBySource(List<Sources>) - Method in class ch.grengine.engine.LayeredEngine
 
setCompilerConfiguration(CompilerConfiguration) - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler.Builder
sets the compiler configuration, default is a new instance of CompilerConfiguration with default settings.
setCompilerConfiguration(CompilerConfiguration) - Method in class ch.grengine.code.groovy.DefaultGroovyCompilerFactory.Builder
sets the compiler configuration, default is a new instance of CompilerConfiguration with default settings.
setCompilerFactory(CompilerFactory) - Method in class ch.grengine.load.DefaultTopCodeCache.Builder
sets the compiler factory, default is a new instance DefaultGroovyCompilerFactory with default settings
setCompilerFactory(CompilerFactory) - Method in class ch.grengine.load.DefaultTopCodeCacheFactory.Builder
sets the compiler factory, default is a new instance of DefaultGroovyCompilerFactory with default settings.
setCompilerFactory(CompilerFactory) - Method in class ch.grengine.sources.CompositeSources.Builder
sets the compiler factory for compiling sources, default is a new instance of DefaultGroovyCompilerFactory.
setCompilerFactory(CompilerFactory) - Method in class ch.grengine.sources.DirBasedSources.Builder
sets the compiler factory for compiling sources, default is a new instance of DefaultGroovyCompilerFactory.
setCompilerFactory(CompilerFactory) - Method in class ch.grengine.sources.FixedSetSources.Builder
sets the compiler factory for compiling sources, default is a new instance of DefaultGroovyCompilerFactory.
setDirMode(DirMode) - Method in class ch.grengine.sources.DirBasedSources.Builder
sets the dir mode, default is not to scan subdirectories.
setEngine(Engine) - Method in class ch.grengine.Grengine.Builder
sets the engine, default is a new instance of LayeredEngine with default settings.
setFileLastModifiedTrackingLatencyMs(long) - Method in class ch.grengine.source.DefaultSourceFactory.Builder
sets latency for tracking file last modified of file sources, defaults is DefaultSourceFactory.Builder.DEFAULT_FILE_LAST_MODIFIED_TRACKING_LATENCY_MS.
setLatencyMs(long) - Method in class ch.grengine.Grengine.Builder
sets the latency in milliseconds for checking if need to recompile sources layers, default is Grengine.Builder.DEFAULT_LATENCY_MS.
setLatencyMs(long) - Method in class ch.grengine.sources.CompositeSources.Builder
sets the latency in milliseconds for checking if script files in the directory have changed, default is CompositeSources.Builder.DEFAULT_LATENCY_MS.
setLatencyMs(long) - Method in class ch.grengine.sources.DirBasedSources.Builder
sets the latency in milliseconds for checking if script files in the directory have changed, default is DirBasedSources.Builder.DEFAULT_LATENCY_MS.
setLatencyMs(long) - Method in class ch.grengine.sources.FixedSetSources.Builder
sets the latency in milliseconds for checking if script files in the directory have changed, default is FixedSetSources.Builder.DEFAULT_LATENCY_MS.
setLoadMode(LoadMode) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets the load mode for the (static) code layers, default is "current first".
setLoadMode(LoadMode) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets the load mode for the (static) code layers, default is "current first".
setName(String) - Method in class ch.grengine.sources.CompositeSources.Builder
sets the sources name, default is a generated random ID.
setName(String) - Method in class ch.grengine.sources.DirBasedSources.Builder
sets the sources name, default is the canonical file path, with fallback to the absolute file path.
setName(String) - Method in class ch.grengine.sources.FixedSetSources.Builder
sets the sources name, default is a generated random ID.
setParent(ClassLoader) - Method in class ch.grengine.code.groovy.DefaultGroovyCompiler.Builder
sets the parent class loader, default is the context class loader of the current thread.
setParent(ClassLoader) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets the parent class loader, default is the context class loader of the current thread.
setParent(ClassLoader) - Method in class ch.grengine.load.DefaultTopCodeCache
 
setParent(ClassLoader) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets the parent class loader, default is the context class loader of the current thread.
setParent(ClassLoader) - Method in interface ch.grengine.load.TopCodeCache
sets the parent class loader and clears the cache.
setScriptExtensions(Set<String>) - Method in class ch.grengine.sources.DirBasedSources.Builder
sets the script extensions, default is only "groovy".
setScriptExtensions(String...) - Method in class ch.grengine.sources.DirBasedSources.Builder
sets the script extensions, default is only "groovy".
setSourceClassLoader(EngineId, SourceClassLoader) - Method in class ch.grengine.engine.Loader
sets the source class loader (if the engine ID matches).
setSourceFactory(SourceFactory) - Method in class ch.grengine.Grengine.Builder
sets the source factory for creating sources, default is a new instance of DefaultSourceFactory with default settings.
setSourceFactory(SourceFactory) - Method in class ch.grengine.sources.DirBasedSources.Builder
sets the source factory for creating sources from files, default is a new instance of DefaultSourceFactory.
setSourcesLayers(List<Sources>) - Method in class ch.grengine.Grengine.Builder
sets the sources layers, default is no layers.
setSourcesLayers(Sources...) - Method in class ch.grengine.Grengine.Builder
sets the sources layers, default is no layers.
setSourcesLayers(List<Sources>) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets the sources layers, default is no layers.
setSourcesLayers(Sources...) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets the sources layers, default is no layers.
setTopCodeCacheFactory(TopCodeCacheFactory) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets the top code cache factory, default is a new instance of DefaultTopCodeCacheFactory with default settings.
setTopLoadMode(LoadMode) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets the load mode for the top code cache, default is "parent first".
setTopLoadMode(LoadMode) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets the load mode for the top code cache, default is "parent first".
setTrackFileSourceLastModified(boolean) - Method in class ch.grengine.source.DefaultSourceFactory.Builder
sets whether to track (cache) file source last modified, default is not to track.
setTrackTextSourceIds(boolean) - Method in class ch.grengine.source.DefaultSourceFactory.Builder
sets whether to track (cache) text source IDs, default is not to track.
setTrackUrlContent(boolean) - Method in class ch.grengine.source.DefaultSourceFactory.Builder
sets whether to track URL content, default is not to track, i.e. to consider URL content static.
setUpdateExceptionNotifier(UpdateExceptionNotifier) - Method in class ch.grengine.Grengine.Builder
sets the update notification notifier, default none (null).
setUrlTrackingLatencyMs(long) - Method in class ch.grengine.source.DefaultSourceFactory.Builder
sets latency for tracking URL content, defaults is DefaultSourceFactory.Builder.DEFAULT_URL_TRACKING_LATENCY_MS.
setWithTopCodeCache(boolean) - Method in class ch.grengine.engine.LayeredEngine.Builder
sets whether to use the a top code cache or not, default is true.
setWithTopCodeCache(boolean, TopCodeCache) - Method in class ch.grengine.load.LayeredClassLoader.Builder
sets whether to use the a top code cache or not, along with the top code cache (OK to pass null if setting to false), default is not to use a top code cache.
SingleSourceCode - Interface in ch.grengine.code
Interface for code created by compiling a single Source script.
source(String) - Method in class ch.grengine.BaseGrengine
gets source from script text.
source(String, String) - Method in class ch.grengine.BaseGrengine
gets source from script text and desired class name.
source(File) - Method in class ch.grengine.BaseGrengine
gets source from script file.
source(URL) - Method in class ch.grengine.BaseGrengine
gets source from script URL.
Source - Interface in ch.grengine.source
Interface for a (Groovy script) source.
sourceArrayToSourceSet(Source...) - Static method in class ch.grengine.source.SourceUtil
converts the given source varargs or array of source to a set of source.
SourceClassLoader - Class in ch.grengine.load
Abstract class loader that can load the main and other classes of a source.
SourceClassLoader(ClassLoader) - Constructor for class ch.grengine.load.SourceClassLoader
constructor from parent class loader.
sourceCollectionToSourceSet(Collection<Source>) - Static method in class ch.grengine.source.SourceUtil
converts the given collection of source to a set of source.
sourceFactory - Variable in class ch.grengine.BaseGrengine
the source factory used to create instances of Source, often implicitly from script text, file or URL.
SourceFactory - Interface in ch.grengine.source
Source factory.
Sources - Interface in ch.grengine.sources
Interface for a set of Source that can change with time.
SourceSetState - Class in ch.grengine.source
Helper class for tracking updates of a set of Source.
SourceSetState(Set<Source>) - Constructor for class ch.grengine.source.SourceSetState
constructor from source set.
sourceSetToSources(Set<Source>, String) - Static method in class ch.grengine.sources.SourcesUtil
converts a set of source to sources with the given name and with the default Groovy compiler factory.
sourceSetToSources(Set<Source>, String, CompilerFactory) - Static method in class ch.grengine.sources.SourcesUtil
converts a set of source to sources with the given name and with the given compiler factory.
SourcesUtil - Class in ch.grengine.sources
Static utility methods around Sources.
SourcesUtil() - Constructor for class ch.grengine.sources.SourcesUtil
 
sourceToSources(Source) - Static method in class ch.grengine.sources.SourcesUtil
converts a source to sources with name set to the source ID and with the default Groovy compiler factory.
sourceToSources(Source, CompilerFactory) - Static method in class ch.grengine.sources.SourcesUtil
converts a source to sources with name set to the source ID and with the given compiler factory.
sourceToSourceSet(Source) - Static method in class ch.grengine.source.SourceUtil
converts the given source to a set of source that contains only the given source.
SourceUtil - Class in ch.grengine.source
Static utility methods around Source.
SourceUtil() - Constructor for class ch.grengine.source.SourceUtil
 

T

TextSource - Interface in ch.grengine.source
Interface for a text-based script source.
textsToSourceSet(Collection<String>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given collections of script texts, using the default source factory.
textsToSourceSet(String...) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given script texts, using the default source factory.
textsToSourceSet(SourceFactory, Collection<String>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given collections of script texts, using the given source factory.
textsToSourceSet(SourceFactory, String...) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given script texts, using the given source factory.
textsToSourceSet(Map<String, String>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given map of desired class name to script text, using the default source factory.
textsToSourceSet(SourceFactory, Map<String, String>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given map of of desired class name to script text, using the given source factory.
toCanonicalOrAbsoluteFile(File) - Static method in class ch.grengine.source.SourceUtil
converts the given file to the canonical file, with fallback to the absolute file if getting the canonical file failed.
TopCodeCache - Interface in ch.grengine.load
Code cache used to compile and cache code for single source instances.
TopCodeCacheFactory - Interface in ch.grengine.load
Factory of TopCodeCache instances.
toString() - Method in class ch.grengine.code.Bytecode
returns a string suitable for logging.
toString() - Method in interface ch.grengine.code.Code
returns a string suitable for logging.
toString() - Method in class ch.grengine.code.CompiledSourceInfo
returns a string suitable for logging.
toString() - Method in class ch.grengine.code.DefaultCode
 
toString() - Method in class ch.grengine.code.DefaultSingleSourceCode
 
toString() - Method in class ch.grengine.engine.Loader
returns a string suitable for logging.
toString() - Method in class ch.grengine.source.BaseSource
 
toString() - Method in class ch.grengine.source.DefaultTextSource
 
toString() - Method in interface ch.grengine.source.Source
returns a string suitable for logging.
toString() - Method in class ch.grengine.sources.BaseSources
 
toString() - Method in interface ch.grengine.sources.Sources
returns a string suitable for logging.

U

update(Set<Source>) - Method in class ch.grengine.source.SourceSetState
returns a new instance with given source set and updated last checked and last modified.
updateEngineIfSourcesLayersModified() - Method in class ch.grengine.Grengine
updates the engine if sources layers have been modified.
UpdateExceptionNotifier - Interface in ch.grengine
Interface for notifying about successful or failed Grengine updates.
UrlSource - Interface in ch.grengine.source
Interface for a URL-based script source.
urlsToSourceSet(Collection<URL>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given collections of script URLs, using the default source factory.
urlsToSourceSet(URL...) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given script URLs, using the default source factory.
urlsToSourceSet(SourceFactory, Collection<URL>) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given collections of script URLs, using the given source factory.
urlsToSourceSet(SourceFactory, URL...) - Static method in class ch.grengine.source.SourceUtil
creates a source set from the given script URLs, using the given source factory.

V

valueOf(String) - Static method in enum ch.grengine.load.LoadMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.grengine.sources.DirMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.grengine.load.LoadMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.grengine.sources.DirMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

withGrape(CompilerConfiguration, GroovyClassLoader) - Static method in class ch.grengine.code.groovy.DefaultGroovyCompiler
modifies the given compiler configuration for Grape support in this compiler.
A B C D E F G H I L M N R S T U V W 
Skip navigation links
Grengine