Interface TypeWriter<T>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  TypeWriter.Default<S>
      A default implementation of a TypeWriter.
      static interface  TypeWriter.FieldPool
      An field pool that allows a lookup for how to implement a field.
      static interface  TypeWriter.MethodPool
      An method pool that allows a lookup for how to implement a method.
      static interface  TypeWriter.RecordComponentPool
      An record component pool that allows a lookup for how to implement a record component.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DUMP_PROPERTY
      A system property that indicates a folder for Byte Buddy to dump class files of all types that it creates.
    • Field Detail

      • DUMP_PROPERTY

        static final java.lang.String DUMP_PROPERTY
        A system property that indicates a folder for Byte Buddy to dump class files of all types that it creates. If this property is not set, Byte Buddy does not dump any class files. This property is only read a single time which is why it must be set on application start-up.
        See Also:
        Constant Field Values
    • Method Detail

      • make

        DynamicType.Unloaded<T> make​(TypeResolutionStrategy.Resolved typeResolver)
        Creates the dynamic type that is described by this type writer.
        Parameters:
        typeResolver - The type resolution strategy to use.
        Returns:
        An unloaded dynamic type that describes the created type.
      • wrap

        ContextClassVisitor wrap​(org.objectweb.asm.ClassVisitor classVisitor,
                                 int writerFlags,
                                 int readerFlags)
        Wraps another ASM class visitor with a visitor that represents this ASM class writer.
        Parameters:
        classVisitor - The class visitor to wrap.
        writerFlags - The ASM writer flags to consider.
        readerFlags - The ASM reader flags to consider.
        Returns:
        The supplied class visitor wrapped by this type writer.