Package | Description |
---|---|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
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.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
net.bytebuddy.implementation.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
|
net.bytebuddy.matcher |
Contains an API for matching Java byte code entities.
|
Modifier and Type | Interface and Description |
---|---|
interface |
RecordComponentList<T extends RecordComponentDescription>
Implementations represent a list of record component descriptions.
|
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.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
RecordComponentDescription.InDefinedShape
A description of a record component in its defined shape.
|
static interface |
RecordComponentDescription.InGenericShape
A description of a record component in generic shape.
|
Modifier and Type | Class and Description |
---|---|
static class |
RecordComponentDescription.AbstractBase
An abstract base implementation for a record component description.
|
static class |
RecordComponentDescription.ForLoadedRecordComponent
Represents a loaded record component.
|
static class |
RecordComponentDescription.InDefinedShape.AbstractBase
An abstract base implementation of a record component description in its defined shape.
|
static class |
RecordComponentDescription.Latent
A latent record component description.
|
static class |
RecordComponentDescription.TypeSubstituting
A type substituting representation of a record component description.
|
Modifier and Type | Method and Description |
---|---|
static RecordComponentDescription |
RecordComponentDescription.ForLoadedRecordComponent.of(Object recordComponent)
Resolves an instance into a record component description.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic.Visitor.Substitutor.ForAttachment |
TypeDescription.Generic.Visitor.Substitutor.ForAttachment.of(RecordComponentDescription recordComponentDescription)
Attaches all types to the given record component description.
|
Constructor and Description |
---|
Explicit(S... recordComponent)
Creates a new list of record component descriptions.
|
TypeSubstituting(TypeDescription.Generic declaringType,
RecordComponentDescription recordComponentDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting representation of a record component description.
|
Constructor and Description |
---|
TypeSubstituting(TypeDescription.Generic declaringType,
List<? extends RecordComponentDescription> recordComponentDescriptions,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a type substituting list of record component descriptions.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.RecordComponentDefinition.Optional<T> |
DynamicType.Builder.define(RecordComponentDescription recordComponentDescription)
Defines a new record component.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
DynamicType.Builder.AbstractBase.define(RecordComponentDescription recordComponentDescription)
Defines a new record component.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Delegator.define(RecordComponentDescription recordComponentDescription)
Defines a new record component.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.RecordComponentDefinition<T> |
DynamicType.Builder.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<S> |
DynamicType.Builder.AbstractBase.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<U> |
DynamicType.Builder.AbstractBase.Delegator.recordComponent(ElementMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<T> |
DynamicType.Builder.recordComponent(LatentMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<U> |
DynamicType.Builder.AbstractBase.Delegator.recordComponent(LatentMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.recordComponent(LatentMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
DynamicType.Builder.RecordComponentDefinition.transform(Transformer<RecordComponentDescription> transformer)
Transforms a record component description before writing.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.RecordComponentDefinitionAdapter.transform(Transformer<RecordComponentDescription> transformer)
Transforms a record component description before writing.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.RecordComponentMatchAdapter.transform(Transformer<RecordComponentDescription> transformer)
Transforms a record component description before writing.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentDescription |
TypeWriter.RecordComponentPool.Record.getRecordComponent()
Returns the record component that this record represents.
|
RecordComponentDescription |
TypeWriter.RecordComponentPool.Record.ForImplicitRecordComponent.getRecordComponent()
Returns the record component that this record represents.
|
RecordComponentDescription |
TypeWriter.RecordComponentPool.Record.ForExplicitRecordComponent.getRecordComponent()
Returns the record component that this record represents.
|
Modifier and Type | Method and Description |
---|---|
protected Transformer<RecordComponentDescription> |
RecordComponentRegistry.Default.Entry.getTransformer()
Returns the record component transformer to apply to any matched record component.
|
ElementMatcher<? super RecordComponentDescription> |
RecordComponentRegistry.Default.Entry.resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Method and Description |
---|---|
protected TypeWriter.RecordComponentPool.Record |
RecordComponentRegistry.Default.Compiled.Entry.bind(TypeDescription instrumentedType,
RecordComponentDescription recordComponentDescription)
Binds this entry to the provided record component description.
|
boolean |
RecordComponentRegistry.Default.Compiled.Entry.matches(RecordComponentDescription target)
Matches a target against this element matcher.
|
TypeWriter.RecordComponentPool.Record |
TypeWriter.RecordComponentPool.target(RecordComponentDescription recordComponentDescription)
Looks up a handler entry for a given record component.
|
TypeWriter.RecordComponentPool.Record |
TypeWriter.RecordComponentPool.Disabled.target(RecordComponentDescription recordComponentDescription)
Looks up a handler entry for a given record component.
|
TypeWriter.RecordComponentPool.Record |
RecordComponentRegistry.Compiled.NoOp.target(RecordComponentDescription recordComponentDescription)
Looks up a handler entry for a given record component.
|
TypeWriter.RecordComponentPool.Record |
RecordComponentRegistry.Default.Compiled.target(RecordComponentDescription recordComponentDescription)
Looks up a handler entry for a given record component.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentRegistry |
RecordComponentRegistry.prepend(LatentMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory,
Transformer<RecordComponentDescription> transformer)
Prepends the given record component definition to this record component registry, i.e.
|
RecordComponentRegistry |
RecordComponentRegistry.prepend(LatentMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory,
Transformer<RecordComponentDescription> transformer)
Prepends the given record component definition to this record component registry, i.e.
|
RecordComponentRegistry |
RecordComponentRegistry.Default.prepend(LatentMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory,
Transformer<RecordComponentDescription> transformer)
Prepends the given record component definition to this record component registry, i.e.
|
RecordComponentRegistry |
RecordComponentRegistry.Default.prepend(LatentMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory,
Transformer<RecordComponentDescription> transformer)
Prepends the given record component definition to this record component registry, i.e.
|
Constructor and Description |
---|
ForExplicitRecordComponent(RecordComponentAttributeAppender attributeAppender,
RecordComponentDescription recordComponentDescription)
Creates a record for a rich record component.
|
ForImplicitRecordComponent(RecordComponentDescription recordComponentDescription)
Creates a new record for a simple record component.
|
Constructor and Description |
---|
Entry(ElementMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender recordComponentAttributeAppender,
Transformer<RecordComponentDescription> transformer)
Creates a new entry.
|
Entry(ElementMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender recordComponentAttributeAppender,
Transformer<RecordComponentDescription> transformer)
Creates a new entry.
|
Entry(LatentMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender.Factory recordComponentAttributeAppender,
Transformer<RecordComponentDescription> transformer)
Creates a new entry.
|
Entry(LatentMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender.Factory recordComponentAttributeAppender,
Transformer<RecordComponentDescription> transformer)
Creates a new entry.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.RecordComponentDefinition<T> |
DecoratingDynamicTypeBuilder.recordComponent(LatentMatcher<? super RecordComponentDescription> matcher)
Matches a record component that is already declared by the instrumented type.
|
Modifier and Type | Method and Description |
---|---|
void |
RecordComponentAttributeAppender.apply(RecordComponentVisitor recordComponentVisitor,
RecordComponentDescription recordComponentDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given record component visitor.
|
void |
RecordComponentAttributeAppender.NoOp.apply(RecordComponentVisitor recordComponentVisitor,
RecordComponentDescription recordComponentDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given record component visitor.
|
void |
RecordComponentAttributeAppender.ForInstrumentedRecordComponent.apply(RecordComponentVisitor recordComponentVisitor,
RecordComponentDescription recordComponentDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given record component visitor.
|
void |
RecordComponentAttributeAppender.Explicit.apply(RecordComponentVisitor recordComponentVisitor,
RecordComponentDescription recordComponentDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given record component visitor.
|
void |
RecordComponentAttributeAppender.Compound.apply(RecordComponentVisitor recordComponentVisitor,
RecordComponentDescription recordComponentDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given record component visitor.
|
AnnotationValueFilter |
AnnotationValueFilter.Factory.on(RecordComponentDescription recordComponentDescription)
Creates an annotation value filter for writing annotations on a record component.
|
AnnotationValueFilter |
AnnotationValueFilter.Default.on(RecordComponentDescription recordComponentDescription)
Creates an annotation value filter for writing annotations on a record component.
|
Modifier and Type | Method and Description |
---|---|
ElementMatcher<? super RecordComponentDescription> |
LatentMatcher.ForRecordComponentToken.resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
Copyright © 2014–2023. All rights reserved.