Uses of Interface
net.bytebuddy.dynamic.Transformer
-
Packages that use Transformer Package Description 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. -
-
Uses of Transformer in net.bytebuddy.dynamic
Classes in net.bytebuddy.dynamic that implement Transformer Modifier and Type Class Description static class
Transformer.Compound<S>
A compound transformer.static class
Transformer.ForField
A transformer for a field that delegates to another transformer that transforms aFieldDescription.Token
.protected static class
Transformer.ForField.FieldModifierTransformer
A transformer for a field's modifiers.static class
Transformer.ForMethod
A transformer for a field that delegates to another transformer that transforms aMethodDescription.Token
.protected static class
Transformer.ForMethod.MethodModifierTransformer
A transformer for a method's modifiers.static class
Transformer.NoOp
A non-operational transformer that returns the received instance.Fields in net.bytebuddy.dynamic declared as Transformer Modifier and Type Field Description protected Transformer<FieldDescription>
DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase.Adapter. transformer
The field transformer to apply.protected Transformer<MethodDescription>
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter. transformer
The transformer to apply onto the method that is currently being implemented.Methods in net.bytebuddy.dynamic that return Transformer Modifier and Type Method Description static <T> Transformer<T>
Transformer.NoOp. make()
Creates a transformer in a type-safe manner.static Transformer<FieldDescription>
Transformer.ForField. withModifiers(java.util.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(java.util.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 Transformer Modifier and Type Method Description protected DynamicType.Builder.FieldDefinition.Optional<U>
DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter. materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, java.lang.Object defaultValue)
protected DynamicType.Builder.FieldDefinition.Optional<U>
DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter. materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, java.lang.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, java.lang.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<U>
DynamicType.Builder.AbstractBase.Adapter. transform(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer)
DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. transform(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer)
DynamicType.Builder.FieldDefinition.Optional<V>
DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase.Adapter. transform(Transformer<FieldDescription> transformer)
DynamicType.Builder.FieldDefinition.Optional<S>
DynamicType.Builder.FieldDefinition. transform(Transformer<FieldDescription> transformer)
Applies the supplied transformer onto the previously defined or matched field.DynamicType.Builder.MethodDefinition<V>
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter. transform(Transformer<MethodDescription> transformer)
DynamicType.Builder.MethodDefinition<S>
DynamicType.Builder.MethodDefinition. transform(Transformer<MethodDescription> transformer)
Applies the supplied transformer onto the previously defined or matched method.DynamicType.Builder<T>
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 Transformer Constructor Description Adapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, java.lang.Object defaultValue)
Creates a new field adapter.Adapter(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer)
Creates a new adapter for a method definition.AnnotationAdapter(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer)
Creates a new annotation adapter.AnnotationAdapter(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, Transformer<MethodDescription> transformer)
Creates a new annotation adapter.Compound(Transformer<S>... transformer)
Creates a new compound transformer.FieldDefinitionAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, java.lang.Object defaultValue, FieldDescription.Token token)
Creates a new field definition adapter.FieldMatchAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, java.lang.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.Constructor parameters in net.bytebuddy.dynamic with type arguments of type Transformer Constructor Description Compound(java.util.List<? extends Transformer<S>> transformers)
Creates a new compound transformer. -
Uses of Transformer in net.bytebuddy.dynamic.scaffold
Methods in net.bytebuddy.dynamic.scaffold that return Transformer Modifier and Type Method Description protected Transformer<FieldDescription>
FieldRegistry.Default.Entry. getTransformer()
Returns the field transformer to apply to any matched field.Methods in net.bytebuddy.dynamic.scaffold with parameters of type Transformer Modifier and Type Method Description MethodRegistry
MethodRegistry. 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
MethodRegistry.Default. append(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
FieldRegistry
FieldRegistry.Default. prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
FieldRegistry
FieldRegistry. prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
Prepends the given field definition to this field registry, i.e.MethodRegistry
MethodRegistry.Default. prepend(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
MethodRegistry
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.InstrumentedType.WithFlexibleName
InstrumentedType.Default. withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer)
InstrumentedType.WithFlexibleName
InstrumentedType.Frozen. withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer)
InstrumentedType.WithFlexibleName
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 Transformer Constructor Description Entry(ElementMatcher<? super FieldDescription> matcher, FieldAttributeAppender fieldAttributeAppender, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
Creates a new entry.Entry(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
Creates a new entry.Entry(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
Creates a new entry.
-