Class ClassPathTransform.Result

java.lang.Object
io.micronaut.aot.bytecode.ClassPathTransform.Result
Enclosing class:
ClassPathTransform

@Internal public static final class ClassPathTransform.Result extends Object
What a run did.
Since:
3.2.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    What the steps did to one class path entry, a jar or a directory.
  • Method Summary

    Modifier and Type
    Method
    Description
    The class path to package: each entry of the request, or its rewritten copy, in the same order.
    What the steps did to each class path entry they ran over, in class-path order: one element per jar named by ClassPathTransform.Request.Builder.stripLocalVariables(Collection), whether it was rewritten or not, and, when lambdas are desugared, one per entry that holds a lambda call site, whether it was rewritten or not.
    One line per enabled step for the caller to log, in step order, such as Desugared 2960 lambda call sites into 1978 generated classes in 37 class path entries (815 classes rewritten, 360 bridges, 33 sites left as invokedynamic, 0 nest fallbacks) and Stripped local-variable tables from 7102 of 8428 dependency classes in 49 jars (4868965 bytes saved, 0 fallbacks).
    Lines for the caller to log as warnings, each on its own, such as the library on the class path that made the strip step stand down.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • classPath

      public List<Path> classPath()
      The class path to package: each entry of the request, or its rewritten copy, in the same order. An entry with nothing rewritten keeps its own path, and so its bytes and its hash.
      Returns:
      the class path
    • summary

      public String summary()
      One line per enabled step for the caller to log, in step order, such as Desugared 2960 lambda call sites into 1978 generated classes in 37 class path entries (815 classes rewritten, 360 bridges, 33 sites left as invokedynamic, 0 nest fallbacks) and Stripped local-variable tables from 7102 of 8428 dependency classes in 49 jars (4868965 bytes saved, 0 fallbacks).
      Returns:
      the summary
    • warnings

      public List<String> warnings()
      Lines for the caller to log as warnings, each on its own, such as the library on the class path that made the strip step stand down. Usually empty, never null.
      Returns:
      the warnings
    • entries

      What the steps did to each class path entry they ran over, in class-path order: one element per jar named by ClassPathTransform.Request.Builder.stripLocalVariables(Collection), whether it was rewritten or not, and, when lambdas are desugared, one per entry that holds a lambda call site, whether it was rewritten or not. The counts are numbers, for the caller to write its report in its own format. A jar named for stripping is not listed for that when the strip step stood down, because a library on the class path reads local-variable tables.
      Returns:
      the entries