Package net.bytebuddy.dynamic.scaffold
Interface TypeWriter<T>
- Type Parameters:
T
- The best known loaded type for the dynamically created type.
- All Known Implementing Classes:
TypeWriter.Default
,TypeWriter.Default.ForCreation
,TypeWriter.Default.ForInlining
,TypeWriter.Default.ForInlining.WithDecorationOnly
,TypeWriter.Default.ForInlining.WithFullProcessing
public interface TypeWriter<T>
A type writer is a utility for writing an actual class file using the ASM library.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A default implementation of aTypeWriter
.static interface
An field pool that allows a lookup for how to implement a field.static interface
An method pool that allows a lookup for how to implement a method.static interface
An record component pool that allows a lookup for how to implement a record component. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A system property that indicates a folder for Byte Buddy to dump class files of all types that it creates. -
Method Summary
Modifier and TypeMethodDescriptionmake
(TypeResolutionStrategy.Resolved typeResolver) Creates the dynamic type that is described by this type writer.
-
Field Details
-
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:
-
-
Method Details
-
make
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.
-