Uses of Interface
net.bytebuddy.dynamic.Transformer
Packages that use Transformer
Package
Description
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.
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type.-
Uses of Transformer in net.bytebuddy.dynamic
Classes in net.bytebuddy.dynamic that implement TransformerModifier and TypeClassDescriptionstatic classA compound transformer.static classA transformer for a field that delegates to another transformer that transforms aFieldDescription.Token.protected static classA transformer for a field's modifiers.static classA transformer for a field that delegates to another transformer that transforms aMethodDescription.Token.protected static classA transformer for a method's modifiers.static enumA non-operational transformer that returns the received instance.Fields in net.bytebuddy.dynamic declared as TransformerModifier and TypeFieldDescriptionprivate final Transformer<RecordComponentDescription> DynamicType.Builder.AbstractBase.Adapter.RecordComponentDefinitionAdapter.transformerA transformer to apply on matched record component descriptions.private final Transformer<RecordComponentDescription> DynamicType.Builder.AbstractBase.Adapter.RecordComponentMatchAdapter.transformerA transformer to apply on matched record component descriptions.protected final Transformer<FieldDescription> DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase.Adapter.transformerThe field transformer to apply.protected final Transformer<MethodDescription> DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.transformerThe transformer to apply onto the method that is currently being implemented.private final Transformer<FieldDescription.Token> Transformer.ForField.transformerThe token transformer to apply to a transformed field.private final Transformer<MethodDescription.Token> Transformer.ForMethod.transformerThe transformer to be applied.Fields in net.bytebuddy.dynamic with type parameters of type TransformerModifier and TypeFieldDescriptionprivate final List<Transformer<S>> Transformer.Compound.transformersThe list of transformers to apply in their application order.Methods in net.bytebuddy.dynamic that return TransformerModifier and TypeMethodDescriptionstatic <T> Transformer<T> Transformer.NoOp.make()Creates a transformer in a type-safe manner.static Transformer<FieldDescription> Transformer.ForField.withModifiers(List<? extends ModifierContributor.ForField> modifierContributors) Creates a field transformer that patches the transformed field by the given modifier contributors.static Transformer<FieldDescription> Transformer.ForField.withModifiers(ModifierContributor.ForField... modifierContributor) Creates a field transformer that patches the transformed field by the given modifier contributors.static Transformer<MethodDescription> Transformer.ForMethod.withModifiers(List<? extends ModifierContributor.ForMethod> modifierContributors) Creates a transformer that enforces the supplied modifier contributors.static Transformer<MethodDescription> Transformer.ForMethod.withModifiers(ModifierContributor.ForMethod... modifierContributor) Creates a transformer that enforces the supplied modifier contributors.Methods in net.bytebuddy.dynamic with parameters of type TransformerModifier and TypeMethodDescriptionprotected DynamicType.Builder.FieldDefinition.Optional<U> DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter.materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, Object defaultValue) protected DynamicType.Builder.FieldDefinition.Optional<U> DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter.materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, Object defaultValue) protected DynamicType.Builder.MethodDefinition<U> DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter.materialize(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) protected DynamicType.Builder.MethodDefinition<U> DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.materialize(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) protected abstract DynamicType.Builder.FieldDefinition.Optional<V> DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase.Adapter.materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, Object defaultValue) Creates a new optional field definition for which all of the supplied values are represented.protected abstract DynamicType.Builder.MethodDefinition<V> DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.materialize(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Materializes the current builder as a method definition.DynamicType.Builder.AbstractBase.Adapter.RecordComponentDefinitionAdapter.transform(Transformer<RecordComponentDescription> transformer) Transforms a record component description before writing.DynamicType.Builder.AbstractBase.Adapter.RecordComponentMatchAdapter.transform(Transformer<RecordComponentDescription> transformer) Transforms a record component description before writing.DynamicType.Builder.AbstractBase.Adapter.transform(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.DynamicType.Builder.AbstractBase.Delegator.transform(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase.Adapter.transform(Transformer<FieldDescription> transformer) Applies the supplied transformer onto the previously defined or matched field.DynamicType.Builder.FieldDefinition.transform(Transformer<FieldDescription> transformer) Applies the supplied transformer onto the previously defined or matched field.DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.transform(Transformer<MethodDescription> transformer) Applies the supplied transformer onto the previously defined or matched method.DynamicType.Builder.MethodDefinition.transform(Transformer<MethodDescription> transformer) Applies the supplied transformer onto the previously defined or matched method.DynamicType.Builder.RecordComponentDefinition.transform(Transformer<RecordComponentDescription> transformer) Transforms a record component description before writing.DynamicType.Builder.transform(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.Constructors in net.bytebuddy.dynamic with parameters of type TransformerModifierConstructorDescriptionprotectedAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, Object defaultValue) Creates a new field adapter.protectedAdapter(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new adapter for a method definition.protectedAnnotationAdapter(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new annotation adapter.protectedAnnotationAdapter(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new annotation adapter.Compound(Transformer<S>... transformer) Creates a new compound transformer.protectedFieldDefinitionAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, Object defaultValue, FieldDescription.Token token) Creates a new field definition adapter.protectedFieldMatchAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, Object defaultValue, LatentMatcher<? super FieldDescription> matcher) Creates a new field match adapter.ForField(Transformer<FieldDescription.Token> transformer) Creates a new simple field transformer.ForMethod(Transformer<MethodDescription.Token> transformer) Creates a new transforming method transformer.protectedRecordComponentDefinitionAdapter(RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory, Transformer<RecordComponentDescription> transformer, RecordComponentDescription.Token token) Creates a new record component definition adapter.protectedRecordComponentMatchAdapter(LatentMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory, Transformer<RecordComponentDescription> transformer) Creates a new record component match adapter.Constructor parameters in net.bytebuddy.dynamic with type arguments of type TransformerModifierConstructorDescriptionCompound(List<? extends Transformer<S>> transformers) Creates a new compound transformer. -
Uses of Transformer in net.bytebuddy.dynamic.scaffold
Fields in net.bytebuddy.dynamic.scaffold declared as TransformerModifier and TypeFieldDescriptionprivate final Transformer<FieldDescription> FieldRegistry.Default.Compiled.Entry.transformerThe field transformer to apply to any matched field.private final Transformer<FieldDescription> FieldRegistry.Default.Entry.transformerThe field transformer to apply to any matched field.private final Transformer<MethodDescription> MethodRegistry.Default.Entry.transformerThe method transformer to be applied to implemented methods.private final Transformer<RecordComponentDescription> RecordComponentRegistry.Default.Compiled.Entry.transformerThe record component transformer to apply to any matched record component.private final Transformer<RecordComponentDescription> RecordComponentRegistry.Default.Entry.transformerThe record component transformer to apply to any matched record component.Methods in net.bytebuddy.dynamic.scaffold that return TransformerModifier and TypeMethodDescriptionprotected Transformer<FieldDescription> FieldRegistry.Default.Entry.getTransformer()Returns the field transformer to apply to any matched field.protected Transformer<RecordComponentDescription> RecordComponentRegistry.Default.Entry.getTransformer()Returns the record component transformer to apply to any matched record component.Methods in net.bytebuddy.dynamic.scaffold with parameters of type TransformerModifier and TypeMethodDescriptionMethodRegistry.append(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Appends the given method definition to this method registry, i.e.MethodRegistry.Default.append(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Appends the given method definition to this method registry, i.e.FieldRegistry.Default.prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Object defaultValue, Transformer<FieldDescription> transformer) Prepends the given field definition to this field registry, i.e.FieldRegistry.prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Object defaultValue, Transformer<FieldDescription> transformer) Prepends the given field definition to this field registry, i.e.MethodRegistry.Default.prepend(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Prepends the given method definition to this method registry, i.e.MethodRegistry.prepend(LatentMatcher<? super MethodDescription> methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Prepends the given method definition to this method registry, i.e.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.prepend(LatentMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory, Transformer<RecordComponentDescription> transformer) Prepends the given record component definition to this record component registry, i.e.InstrumentedType.Default.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Applies a transformation onto all existing type variables of this instrumented type.InstrumentedType.Frozen.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Applies a transformation onto all existing type variables of this instrumented type.InstrumentedType.WithFlexibleName.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Applies a transformation onto all existing type variables of this instrumented type.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type TransformerModifierConstructorDescriptionprotectedEntry(ElementMatcher<? super FieldDescription> matcher, FieldAttributeAppender fieldAttributeAppender, Object defaultValue, Transformer<FieldDescription> transformer) Creates a new entry.protectedEntry(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Object defaultValue, Transformer<FieldDescription> transformer) Creates a new entry.protectedEntry(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer) Creates a new entry.protectedEntry(ElementMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender recordComponentAttributeAppender, Transformer<RecordComponentDescription> transformer) Creates a new entry.protectedEntry(LatentMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender.Factory recordComponentAttributeAppender, Transformer<RecordComponentDescription> transformer) Creates a new entry. -
Uses of Transformer in net.bytebuddy.dynamic.scaffold.inline
Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type TransformerModifier and TypeMethodDescriptionDecoratingDynamicTypeBuilder.transform(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer) Transforms any type variable that is defined by this type if it is matched by the supplied matcher.