- 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
-
- 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.
- 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 for tracking file last modified (1000ms = 1 second).
- 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
-
- DefaultGroovyCompilerFactory - Class in ch.grengine.code.groovy
-
- 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
-
- DefaultSingleSourceCode - Class in ch.grengine.code
-
- 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
-
- 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
-
- 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
-
- DefaultTopCodeCache(DefaultTopCodeCache.Builder) - Constructor for class ch.grengine.load.DefaultTopCodeCache
-
constructor from builder.
- DefaultTopCodeCache.Builder - Class in ch.grengine.load
-
- DefaultTopCodeCacheFactory - Class in ch.grengine.load
-
- 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
-
- 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
-
- 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.
- 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
-
- 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.
- LATENCY_MS_INFINITE_STATIC - Static variable in class ch.grengine.Grengine
-
constant for an infinite latency (static).
- LayeredClassLoader - Class in ch.grengine.load
-
- 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
-
- LayeredEngine - Class in ch.grengine.engine
-
- LayeredEngine(LayeredEngine.Builder) - Constructor for class ch.grengine.engine.LayeredEngine
-
constructor from builder.
- LayeredEngine.Builder - Class in ch.grengine.engine
-
- 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
-
- 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.
- 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.
- 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
-
- 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
-
- setCompilerFactory(CompilerFactory) - Method in class ch.grengine.load.DefaultTopCodeCacheFactory.Builder
-
- setCompilerFactory(CompilerFactory) - Method in class ch.grengine.sources.CompositeSources.Builder
-
- setCompilerFactory(CompilerFactory) - Method in class ch.grengine.sources.DirBasedSources.Builder
-
- setCompilerFactory(CompilerFactory) - Method in class ch.grengine.sources.FixedSetSources.Builder
-
- 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
-
- setLatencyMs(long) - Method in class ch.grengine.Grengine.Builder
-
- setLatencyMs(long) - Method in class ch.grengine.sources.CompositeSources.Builder
-
- setLatencyMs(long) - Method in class ch.grengine.sources.DirBasedSources.Builder
-
- setLatencyMs(long) - Method in class ch.grengine.sources.FixedSetSources.Builder
-
- 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
-
- 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
-
- 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
-