Package-level declarations
Types
Compiles Koremods Scripts in source form with the supplied libraries.
Evaluates compiled Koremods Scripts.
Uniquely identifies objects within Koremods, such as scripts and transformers. Both namespaces and names must follow a set of rules and are check against their respective patterns - NAMESPACE_PATTERN for namespaces and NAME_PATTERN for names.
Represents a CompiledScript loaded from a Path. The script will prefer the ClassLoader created by the active KoremodsLaunchPlugin if available.
Handles locating, parsing, evaluating and optionally compiling Koremods Scripts and Koremods Script Packs.
Dedicated Koremods script pack config
A loaded and initialized Koremods Script.
A loaded and initialized Koremods Script Pack.
Defines behavior for how Koremods should proceed when loading Script Packs.
Loads classes from bytes stored in program memory. Used by KJvmCompiledScriptLoadedFromJar to load compiled script classes.
A Script Source that points to a java NIO Path.
Represents a Koremods Script in raw, unfinalized form with a source attached.
An exception thrown when an error is encountered during the script evaluation process.
Properties
Functions
Transform an ASM node using Koremods Transformers
Invoke the kotlin script compiler.
Process and compile scripts from each script pack, returning a new list of packs with the compiled results.
Compile a source script and ensure the process was successful.
Compile a Source script with additional configuration and return the compilation result.
Evaluate a compiled script by loading its classes and return the evaluation result.
Evaluate a set of raw, compiled koremods scripts by loading their classes into the JVM and retrieving their list of transformers.
Evaluate a compiled script by loading its classes and retrieving its defined transformers.
Load a compiled script from a Path that points to a valid jar file.
Dump errors from a ResultWithDiagnostics to a Log4J Logger.
Measure and log code execution time in milliseconds.
Parses a config object from a raw data stream.
Read the bytecode contents of compiled scripts from script packs.
Read the byte contents of all entries in a JarInputStream.
Read the contents of a Koremods Script Pack at the specified path
Read the contents of a script from a Path and return its SourceCode.
Read the Source Code contents of pack scripts.