Class TypeTable.Reader

java.lang.Object
org.openrewrite.java.internal.parser.TypeTable.Reader
Enclosing class:
TypeTable

public static class TypeTable.Reader extends Object
Reads a type table from the classpath, and writes classes directories to disk for matching artifact names.
  • Constructor Details

    • Reader

      public Reader()
  • Method Details

    • read

      public void read(InputStream is, TypeTable.Reader.Options options) throws IOException
      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 data
      options - Options controlling how the type table is read
      visitorSupplier - 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