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 Classes Modifier and Type Interface Description static class
TypeWriter.Default<S>
A default implementation of aTypeWriter
.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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Unloaded<T>
make(TypeResolutionStrategy.Resolved typeResolver)
Creates the dynamic type that is described by this type writer.
-
-
-
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.
-
-