Package | Description |
---|---|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.pool |
Classes of this package allow for the creating
TypeDescription s without
loading any classes. |
Modifier and Type | Class and Description |
---|---|
static class |
RecordComponentList.AbstractBase<S extends RecordComponentDescription>
An abstract base implementation of a list of record components.
|
static class |
RecordComponentList.Empty<S extends RecordComponentDescription>
An empty list of record components.
|
static class |
RecordComponentList.Explicit<S extends RecordComponentDescription>
A wrapper implementation of an explicit list of record components.
|
static class |
RecordComponentList.ForLoadedRecordComponents
A list of loaded record components.
|
static class |
RecordComponentList.ForTokens
A list of record components described as tokens.
|
static class |
RecordComponentList.TypeSubstituting
A type-substituting list of record component descriptions.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
RecordComponentList.asDefined()
Returns this list of these record component descriptions resolved to their defined shape.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
RecordComponentList.AbstractBase.asDefined()
Returns this list of these record component descriptions resolved to their defined shape.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
RecordComponentList.Empty.asDefined()
Returns this list of these record component descriptions resolved to their defined shape.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeDescription.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.OfNonGenericType.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.OfGenericArray.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.OfWildcardType.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.OfParameterizedType.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.OfTypeVariable.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.OfTypeVariable.Symbolic.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InGenericShape> |
TypeDescription.Generic.LazyProjection.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeDescription.ForLoadedType.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeDescription.ArrayProjection.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeDescription.Latent.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeDescription.ForPackageDescription.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeDescription.SuperTypeLoading.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<?> |
TypeDefinition.getRecordComponents()
Returns the list of record components that are declared by this type.
|
protected RecordComponentList<S> |
RecordComponentList.AbstractBase.wrap(List<S> values) |
Modifier and Type | Field and Description |
---|---|
protected RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypeWriter.Default.recordComponents
The instrumented type's record components.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
InstrumentedType.Default.getRecordComponents()
Returns the list of record components that are declared by this type.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
InstrumentedType.Frozen.getRecordComponents()
Returns the list of record components that are declared by this type.
|
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
ForInlining(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator)
Creates a new inlining type writer.
|
WithFullProcessing(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodRegistry.Prepared methodRegistry,
Implementation.Target.Factory implementationTargetFactory,
MethodRebaseResolver methodRebaseResolver)
Creates a new inlining type writer that fully reprocesses a type.
|
Modifier and Type | Class and Description |
---|---|
protected class |
TypePool.Default.LazyTypeDescription.RecordComponentTokenList
A list of record component tokens representing each record component as a description.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
TypePool.Default.LazyTypeDescription.getRecordComponents()
Returns the list of record components that are declared by this type.
|
Copyright © 2014–2024. All rights reserved.