Class JavaTypeClassWriter

java.lang.Object
io.moderne.compiled.internal.JavaTypeClassWriter

public class JavaTypeClassWriter extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    toABI(org.openrewrite.java.tree.JavaType.FullyQualified aClass, org.openrewrite.java.tree.JavaType.FullyQualified... innerClasses)
    Write out enough bytecodes for the type to be usable as a classpath entry in a compilation step.

    Methods inherited from class java.lang.Object

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

    • JavaTypeClassWriter

      public JavaTypeClassWriter()
  • Method Details

    • toABI

      public byte[] toABI(org.openrewrite.java.tree.JavaType.FullyQualified aClass, org.openrewrite.java.tree.JavaType.FullyQualified... innerClasses)
      Write out enough bytecodes for the type to be usable as a classpath entry in a compilation step.
      Parameters:
      aClass - A JavaType representing a class definition.
      Returns:
      The bytecodes of the ABI. Notably, this does not include private members or fields, method implementation bodies, class initializer blocks, or field initializers.