Class TypeTable.Reader
java.lang.Object
org.openrewrite.java.internal.parser.TypeTable.Reader
- Enclosing class:
TypeTable
Reads a type table from the classpath, and writes classes directories to disk for matching artifact names.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOptions for controlling how type tables are read. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseTsvAndProcess(InputStream is, TypeTable.Reader.Options options, org.openrewrite.java.internal.parser.TypeTable.Reader.ClassesProcessor processor) Common TSV parsing logic used by both read() methods.voidread(InputStream is, TypeTable.Reader.Options options) voidread(InputStream is, TypeTable.Reader.Options options, Supplier<org.objectweb.asm.ClassVisitor> visitorSupplier) Read a type table and process classes with custom ClassVisitors instead of writing to disk.
-
Constructor Details
-
Reader
public Reader()
-
-
Method Details
-
read
- Throws:
IOException
-
read
public void read(InputStream is, TypeTable.Reader.Options options, Supplier<org.objectweb.asm.ClassVisitor> visitorSupplier) throws IOException Read a type table and process classes with custom ClassVisitors instead of writing to disk.- Parameters:
is- The input stream containing the TSV dataoptions- Options controlling how the type table is readvisitorSupplier- Supplier to create a ClassVisitor for each class- Throws:
IOException
-
parseTsvAndProcess
public void parseTsvAndProcess(InputStream is, TypeTable.Reader.Options options, org.openrewrite.java.internal.parser.TypeTable.Reader.ClassesProcessor processor) throws IOException Common TSV parsing logic used by both read() methods. Parses the TSV and calls the processor for each GAV's classes.- Throws:
IOException
-