Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.build |
A package for types that allow for applying Byte Buddy transformation during a build process.
|
net.bytebuddy.description.field |
Contains descriptions of Java fields.
|
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.matcher |
Contains an API for matching Java byte code entities.
|
net.bytebuddy.pool |
Classes of this package allow for the creating
TypeDescription s without
loading any classes. |
Modifier and Type | Method and Description |
---|---|
ClassVisitor |
TypeReferenceAdjustment.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
TypeConstantAdjustment.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ModifierAdjustment.ModifierAdjustingClassVisitor |
ModifierAdjustment.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
MemberRemoval.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.NoOp.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.ForDeclaredFields.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.ForDeclaredMethods.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.Compound.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
Modifier and Type | Method and Description |
---|---|
ClassVisitor |
RenamingPlugin.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
Modifier and Type | Class and Description |
---|---|
static class |
FieldList.AbstractBase<S extends FieldDescription>
An abstract base implementation of a
FieldList . |
static class |
FieldList.Empty<S extends FieldDescription>
An implementation of an empty field list.
|
static class |
FieldList.Explicit<S extends FieldDescription>
A wrapper implementation of a field list for a given list of field descriptions.
|
static class |
FieldList.ForLoadedFields
An implementation of a field list for an array of loaded fields.
|
static class |
FieldList.ForTokens
A list of field descriptions for a list of detached tokens.
|
static class |
FieldList.TypeSubstituting
A list of field descriptions that yields
FieldDescription.TypeSubstituting . |
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
FieldList.asDefined()
Returns this list of these field descriptions resolved to their defined shape.
|
FieldList<FieldDescription.InDefinedShape> |
FieldList.AbstractBase.asDefined()
Returns this list of these field descriptions resolved to their defined shape.
|
FieldList<FieldDescription.InDefinedShape> |
FieldList.Empty.asDefined()
Returns this list of these field descriptions resolved to their defined shape.
|
protected FieldList<S> |
FieldList.AbstractBase.wrap(List<S> values) |
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfNonGenericType.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfGenericArray.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfWildcardType.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfParameterizedType.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfParameterizedType.ForReifiedType.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfTypeVariable.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.OfTypeVariable.Symbolic.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InGenericShape> |
TypeDescription.Generic.LazyProjection.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.ForLoadedType.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.ArrayProjection.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.Latent.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.ForPackageDescription.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.SuperTypeLoading.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<?> |
TypeDefinition.getDeclaredFields()
Returns the fields that this type declares.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeWriter.Default.ForInlining.WithDecorationOnly.LazyFieldList
A field list that only reads fields lazy to avoid an eager lookup since fields are often not required.
|
Modifier and Type | Field and Description |
---|---|
protected FieldList<FieldDescription.InDefinedShape> |
TypeWriter.Default.fields
The instrumented type's declared fields.
|
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
InstrumentedType.Default.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
InstrumentedType.Frozen.getDeclaredFields()
Returns the fields that this type declares.
|
protected abstract FieldList<?> |
FieldLocator.AbstractBase.locate(ElementMatcher<? super FieldDescription> matcher)
Locates fields that match the given matcher.
|
protected FieldList<?> |
FieldLocator.ForExactType.locate(ElementMatcher<? super FieldDescription> matcher) |
protected FieldList<?> |
FieldLocator.ForClassHierarchy.locate(ElementMatcher<? super FieldDescription> matcher) |
protected FieldList<?> |
FieldLocator.ForTopLevelType.locate(ElementMatcher<? super FieldDescription> matcher) |
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.
|
Constructor and Description |
---|
DeclaringFieldMatcher(ElementMatcher<? super FieldList<? extends FieldDescription>> matcher)
Creates a new matcher for a type's declared fields.
|
Modifier and Type | Class and Description |
---|---|
protected class |
TypePool.Default.LazyTypeDescription.FieldTokenList
A list of field tokens representing each entry as a field description.
|
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
TypePool.Default.LazyTypeDescription.getDeclaredFields()
Returns the fields that this type declares.
|
Copyright © 2014–2024. All rights reserved.