Class TypeTable.Writer.Jar
java.lang.Object
org.openrewrite.java.internal.parser.TypeTable.Writer.Jar
- Enclosing class:
TypeTable.Writer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidwriteClass(InputStream classInputStream) Write a single class from an InputStream containing bytecode.voidwriteResource(String resourcePath, byte[] content) Write a non-class resource file (e.g., a Kotlin .kotlin_module file) so that the synthesized classpath has parity with the source jar for tooling that reads these files (like the Kotlin compiler, which needs .kotlin_module to resolve top-level functions in a package).
-
Constructor Details
-
Jar
public Jar()
-
-
Method Details
-
write
-
writeResource
Write a non-class resource file (e.g., a Kotlin .kotlin_module file) so that the synthesized classpath has parity with the source jar for tooling that reads these files (like the Kotlin compiler, which needs .kotlin_module to resolve top-level functions in a package). -
writeClass
Write a single class from an InputStream containing bytecode. This can be used for processing individual class files.- Parameters:
classInputStream- InputStream containing the class bytecode- Throws:
IOException- if reading the class fails
-