public final class Mixins
extends java.lang.Object
MixinEnvironment
delegating to the methods here.| Modifier and Type | Method and Description |
|---|---|
static void |
addConfiguration(java.lang.String configFile)
Add a mixin configuration resource
|
static void |
addConfigurations(java.lang.String... configFiles)
Add multiple configurations
|
static java.util.Set<Config> |
getConfigs()
Get current pending configs set, only configs which have yet to be
consumed are present in this set
|
static java.util.Set<java.lang.String> |
getErrorHandlerClasses()
Get current error handlers
|
static java.util.Set<IMixinInfo> |
getMixinsForClass(java.lang.String className)
Get information about mixins applied to the specified class in the
current session.
|
static int |
getUnvisitedCount()
Get the number of "unvisited" configurations available.
|
static void |
registerErrorHandlerClass(java.lang.String handlerName)
Register a gloabl error handler class
|
public static void addConfigurations(java.lang.String... configFiles)
configFiles - config resources to addpublic static void addConfiguration(java.lang.String configFile)
configFile - path to configuration resourcepublic static int getUnvisitedCount()
If the transformer has already entered a phase but no mixins have yet been applied, it is safe to visit any additional configs which were registered in the mean time and may wish to apply to the current phase. This is particularly true during the PREINIT phase, which by necessity must start as soon as the first class is transformed after bootstrapping, but may not have any valid mixins until later in the actual preinit process due to the order in which things are discovered.
public static java.util.Set<Config> getConfigs()
public static java.util.Set<IMixinInfo> getMixinsForClass(java.lang.String className)
className - Name of class to retrieve mixins forpublic static void registerErrorHandlerClass(java.lang.String handlerName)
handlerName - Fully qualified class namepublic static java.util.Set<java.lang.String> getErrorHandlerClasses()