Interface BytecodeProvider<M>
-
- Type Parameters:
M- The type of the modularity attachment. A recommended type can beClassLoader, but really anything goes,Voidfor example is perfectly fine as long as theBytecodeProvideraccounts for null attachments.
public interface BytecodeProvider<M>ABytecodeProviderprovidesClassNodeinstances for arbitrary classes. It is up to the API consumer to implement this interface.In order to easily support modularity and further segregation of code, the bytecode provider is always given a Modularity attachment. The
MixinTransformerwill have the same type of the modularity attachment as theBytecodeProvider.Implementors are highly recommended to also implements the
CodeSourceURIProviderinterface. Future versions of micromxin-transformer are likely to require all implementations ofBytecodeProviderto also implementCodeSourceURIProviderfor maintenance, stability and uniformity reasons.- See Also:
CodeSourceURIProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.objectweb.asm.tree.ClassNodegetClassNode(M modularityAttachment, java.lang.String internalName)
-
-
-
Method Detail
-
getClassNode
@NotNull org.objectweb.asm.tree.ClassNode getClassNode(M modularityAttachment, @NotNull java.lang.String internalName) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
-