Class ModuleClassLoaderAccess
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.core.modules.AbstractModuleSystemAccessor
mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ClassLoaderAccess
mods.thecomputerizer.theimpossiblelibrary.neoforge.core.modules.ModuleClassLoaderAccess
- All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder,mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleSystemAccessor
public class ModuleClassLoaderAccess
extends mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ClassLoaderAccess
implements mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder
[1.18.2+] cpw.mods.cl.ModuleClassLoader
[1.20.4+] extends net.minecraftforge.securemodules.SecureModuleClassLoader
-
Field Summary
Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.core.modules.AbstractModuleSystemAccessor
access, loggerFields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleSystemAccessor
MODULE_CLASS, MODULE_DESCRIPTOR_CLASS, RESOLVED_MODULE_CLASS -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackage(String pkg, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) voidaddPackages(Collection<String> pkgs, ResolvedModule resolvedModule) voidaddPackages(Collection<String> pkgs, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) voidaddPackages(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleDescriptorAccess moduleDescriptor, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) voidaddPackages(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) voidaddPackagesFrom(Collection<String> pkgs, ModuleClassLoaderAccess source, String moduleName) voidaddParentLoader(String pkg, ModuleClassLoaderAccess loader) voidaddParentLoaders(Collection<String> pkgs, ModuleClassLoaderAccess loader) voidaddParentLoaders(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleDescriptorAccess moduleDescriptor, ModuleClassLoaderAccess loader) voidaddParentLoaders(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule, ModuleClassLoaderAccess loader) voidaddRoot(String name, ModuleReference moduleReference) voidaddRoot(String name, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccess moduleReference) voidaddRoot(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccess moduleReference) voidaddRoot(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) voidcloneModule(String moduleName, String newModuleName) voidcombineModules(URI combinedLocation, String combinedName, String... others) Assumes the combined module already has a defined rootmods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccessCollection<mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder><T> TgetConfigModuleDirect(String name) @Nullable mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleDescriptorAccessgetModuleDescriptor(String name) @Nullable ModuleDescriptormods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccessgetModulePackages(String name) mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccessgetResolvedModule(String pkg) getResolvedModuleName(Object resolvedModule) mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccessgetRootDirect(String name) handler()voidlookupAndRemovePackagesFor(String moduleName) Get a ResolvedModule from the packageLookup map that matches the input moduleName Remove all packages associated with the module from the packageLookuplookupModules(Collection<String> packages) lookupPackagesFor(String... moduleNames) mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccesslookupResolvedModule(String moduleName) Get a ResolvedModule from the packageLookup map that matches the input moduleNamevoidmoveModuleTo(ModuleClassLoaderAccess targetLoader, String moduleName) Assumes layer has been set for both this and the targetLoadervoidmoveServicesTo(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess target, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess module, String... serviceMovementBlacklist) mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccessnewResolvedModule(Object moduleReference) mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccessnewResolvedModule(Object configuration, Object moduleReference) mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccessnewResolvedModule(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccess moduleReference) voidremoveModule(String moduleName) voidremovePackage(String pkg) voidvoidremovePackages(Collection<String> pkgs) voidremovePackages(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) voidremovePackagesForModule(ResolvedModule resolvedModule) voidremovePackagesForModule(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) voidremoveParentLoader(String pkg) voidremoveParentLoaders(Collection<String> pkgs) voidremoveRoot(String root) voidremoveRoots(String... roots) voidrenameModule(String name, String newName) toString()Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ClassLoaderAccess
accessClass, addClassAccesses, addClasses, addPackages, classes, classes, classesAccess, getModuleNameForClass, getPackage, inheritClasses, inheritClasses, moveModuleClasses, moveModuleClassesTo, moveModuleClassesTo, moveModuleClassesTo, packages, removeClasses, removeWrappedClasses, setClassModules, unwrapMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.core.modules.AbstractModuleSystemAccessor
access, accessAs, construct, construct, construct, constructDirect, constructDirect, defaultMapPrinter, getClassAccess, getClassAccess, getClassForName, getClassForName, getClassLoader, getConfiguration, getJavaLangAccess, getJavaLangAccess, getModule, getModuleDescriptor, getModuleDescriptorBuilder, getModuleDescriptorBuilder, getModuleLayer, getModuleReference, getResolvedModule, invokeStatic, invokeStatic, invokeStatic, invokeStatic, invokeStaticDirect, invokeStaticDirect, logger, newModule, newResolvedModuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder
cloneModuleFully, cloneModuleFully, collectLayeredReferents, getAllReferents, getLayeredReferents, removeModuleFully, removeModuleFullyMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleSystemAccessor
as, as, asCollection, asList, asMap, asMapCollectionValue, asMapDefault, asOptional, asOptionalResult, asOptionalResult, asSet, get, get, getDirect, invoke, invoke, invokeDirect, logOrPrint, logOrPrint, logOrPrint, logOrPrintError, logOrPrintError, set, set, setDirect
-
Method Details
-
addPackage
public void addPackage(String pkg, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) -
addPackages
public void addPackages(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) -
addPackages
public void addPackages(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleDescriptorAccess moduleDescriptor, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) -
addPackages
public void addPackages(Collection<String> pkgs, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) -
addPackages
-
addPackagesFrom
public void addPackagesFrom(Collection<String> pkgs, ModuleClassLoaderAccess source, String moduleName) -
addParentLoaders
public void addParentLoaders(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule, ModuleClassLoaderAccess loader) -
addParentLoaders
public void addParentLoaders(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleDescriptorAccess moduleDescriptor, ModuleClassLoaderAccess loader) -
addParentLoaders
-
addParentLoader
-
addRoot
public void addRoot(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) -
addRoot
public void addRoot(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccess moduleReference) -
addRoot
public void addRoot(String name, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccess moduleReference) -
addRoot
-
cloneModule
- Specified by:
cloneModulein interfacemods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder
-
combineModules
Assumes the combined module already has a defined root -
configuration
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ConfigurationAccess configuration() -
getAllReferents
public Collection<mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder> getAllReferents()- Specified by:
getAllReferentsin interfacemods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder
-
getConfigModuleDirect
-
getModuleDescriptor
@Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleDescriptorAccess getModuleDescriptor(String name) -
getModuleDescriptorDirect
-
getModuleLayer
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess getModuleLayer() -
getModulePackages
-
getResolvedModule
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess getResolvedModule(String pkg) -
getResolvedModuleName
-
getRoot
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccess getRoot(String name) -
getRootDirect
-
handler
-
layerName
-
lookupAndRemovePackagesFor
Get a ResolvedModule from the packageLookup map that matches the input moduleName Remove all packages associated with the module from the packageLookup -
lookupModules
-
lookupPackagesFor
-
lookupResolvedModule
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess lookupResolvedModule(String moduleName) Get a ResolvedModule from the packageLookup map that matches the input moduleName -
moveModuleTo
Assumes layer has been set for both this and the targetLoader -
moveServicesTo
public void moveServicesTo(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleLayerAccess target, mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleAccess module, String... serviceMovementBlacklist) -
newResolvedModule
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess newResolvedModule(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleReferenceAccess moduleReference) -
newResolvedModule
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess newResolvedModule(Object moduleReference) -
newResolvedModule
public mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess newResolvedModule(Object configuration, Object moduleReference) - Overrides:
newResolvedModulein classmods.thecomputerizer.theimpossiblelibrary.api.core.modules.AbstractModuleSystemAccessor
-
packageLookup
-
parentLoaders
-
removeModule
- Specified by:
removeModulein interfacemods.thecomputerizer.theimpossiblelibrary.api.core.modules.ModuleHolder
-
removePackages
public void removePackages(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) -
removePackages
-
removePackage
-
removePackageLookup
-
removePackagesForModule
public void removePackagesForModule(mods.thecomputerizer.theimpossiblelibrary.api.core.modules.ResolvedModuleAccess resolvedModule) -
removePackagesForModule
-
removeParentLoaders
-
removeParentLoader
-
removeRoot
-
removeRoots
-
renameModule
-
resolvedRoots
-
toString
-