Uses of Interface
net.bytebuddy.asm.MemberSubstitution.Target
Packages that use MemberSubstitution.Target
Package
Description
The ASM package contains classes that are meant for direct interaction with the ASM API.
-
Uses of MemberSubstitution.Target in net.bytebuddy.asm
Classes in net.bytebuddy.asm with type parameters of type MemberSubstitution.TargetModifier and TypeInterfaceDescriptionstatic interfaceA substitution replaces or enhances an interaction with a field or method within an instrumented method.static classA substitution chain allows for chaining multiple substitution steps for a byte code element being replaced.static classA factory for creating a substitution chain.static interfaceRepresents a step of a substitution chain.static interfaceResolves a substitution for an instrumented method.static interfaceA factory for creating a substitution for an instrumented method.static classA member substitution that lacks a specification for how to substitute the matched members references within a method body.Classes in net.bytebuddy.asm that implement MemberSubstitution.TargetModifier and TypeClassDescriptionstatic classRepresents an invokedynamic instruction that is the target of a substitution.static classRepresents a member that is the target of a substitution.Classes in net.bytebuddy.asm that implement interfaces with type arguments of type MemberSubstitution.TargetModifier and TypeClassDescriptionstatic classA step that loads an argument to a method as the current chain value.static classA step that loads an argument to a method as the current chain value.protected static classA factory that resolves a given argument of the instrumented method.protected static enumA factory that resolves thethisreference of the instrumented method.static classA step that substitutes an argument of a given index with a compatible type.static classA factory to create an argument substitution step.static classA step within a substitution chain that converts the current type to another type by casting.protected static classA factory for creating a step for a dynamic type assignment.static classA step that invokes a delegation method based on annotations on the parameters of the targeted method.protected static classA factory for creating a delegating step during a member substitution.static classCreates a step for a field access.static classA factory for creating a field read step in a chain.static classA factory for creating a step to write to a field.static classA step for invoking a method or constructor.static classA factory to create a step for a method invocation.static enumA step that executes the original method invocation or field access.static enumA step that executes the original method invocation or field access.static classA simple substitution step within a substitution chain.static classA simple substitution step within a substitution chain.static classA substitution with a field access.static classA factory for a substitution that substitutes with a given field.static classA factory for a substitution that locates a field on the receiver type using a matcher.static classA substitution with a method invocation.static classA factory for a substitution that invokes a given method.(package private) static enumA factory for a substitution that invokes the instrumented method.static classA factory for a substitution that locates a method on the receiver type using a matcher.static classA substitution that loads a fixed value.static classA substitution that loads a fixed value.static enumA substitution that drops any field or method access and returns the expected return type's default value, i.enullor zero for primitive types.static enumA substitution that drops any field or method access and returns the expected return type's default value, i.enullor zero for primitive types.Methods in net.bytebuddy.asm with type parameters of type MemberSubstitution.TargetModifier and TypeMethodDescriptionstatic <U extends MemberSubstitution.Target>
MemberSubstitution.Substitution.Chain.Factory<U> MemberSubstitution.Substitution.Chain.with(Assigner assigner, Assigner.Typing typing) Creates a new substitution chain.static <U extends MemberSubstitution.Target>
MemberSubstitution.Substitution.Chain.Factory<U> MemberSubstitution.Substitution.Chain.withDefaultAssigner()Creates a new substitution chain that uses a default assigner and static typing.Methods in net.bytebuddy.asm that return types with arguments of type MemberSubstitution.TargetModifier and TypeMethodDescriptionCreates a step factory that casts the current stack top value to the specified type.MemberSubstitution.Substitution.Chain.Step.ForAssignment.castTo(TypeDescription.Generic typeDescription) Creates a step factory that casts the current stack top value to the specified type.MemberSubstitution.Substitution.Chain.Step.ForAssignment.castToSubstitutionResult()Creates a step factory that casts the current stack top value to the expected return value.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethod.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForAssignment.Factory.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Factory.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.Chain.Step.Simple.make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.MemberSubstitution.Substitution.ForFieldAccess.OfGivenField.make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField.make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod.make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod.make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod.make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.ForValue.make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.MemberSubstitution.Substitution.Stubbing.make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.Resolves a step substitution factory for a compile-time constant to replace an argument value at a given index.Resolves a compile-time constant as the next step value.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.ofInstrumentedMethod(int index) Creates a factory that loads the argument for the instrumented method's parameter of the specified index.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.ofTarget(int index) Creates a factory that loads the argument for the targeted value's parameter of the specified index.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.ofThis()Creates a factory that loads thethisreference of the instrumented method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.to(Constructor<?> constructor) Returns a delegating step factory for the supplied constructor.Returns a delegating step factory for the supplied method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.to(MethodDescription.InDefinedShape methodDescription) Returns a delegating step factory for the supplied method description..MemberSubstitution.Substitution.Chain.Step.ForDelegation.to(MethodDescription.InDefinedShape delegate, MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Factory dispatcherFactory, List<? extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<?>> userFactories) Creates an appropriate step factory for the given delegate method, dispatcher factory and user factories.MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.to(Constructor<?> constructor) Returns a delegating step factory for the supplied constructor.Returns a delegating step factory for the supplied method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.to(MethodDescription.InDefinedShape methodDescription) Returns a delegating step factory for the supplied method description.Methods in net.bytebuddy.asm with parameters of type MemberSubstitution.TargetModifier and TypeMethodDescriptionMemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Resolved.apply(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.apply(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved.apply(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Bound.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Unbound.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.ForStackManipulation.apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, Map<Integer, Integer> offsets, int offset) Applies this offset mapping.protected abstract MemberSubstitution.Source.ValueMemberSubstitution.Source.argument(int index, TypeList.Generic parameters, Map<Integer, Integer> offsets, MemberSubstitution.Target target, MethodDescription instrumentedMethod) Resolves a value representation of the parameter of the specified index ornullif no such parameter is available.protected abstract List<MemberSubstitution.Source.Value> MemberSubstitution.Source.arguments(boolean includesSelf, TypeList.Generic parameters, Map<Integer, Integer> offsets, MemberSubstitution.Target target, MethodDescription instrumentedMethod) Resolves a list of value representation of all parameters.protected abstract MemberSubstitution.Substitution.Chain.Step.ResolutionMemberSubstitution.Substitution.Chain.Step.ForField.doResolve(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, Integer> offsets, StackManipulation stackManipulation) Completes the resolution.MemberSubstitution.Substitution.Chain.Step.ForField.Read.doResolve(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, Integer> offsets, StackManipulation stackManipulation) Completes the resolution.MemberSubstitution.Substitution.Chain.Step.ForField.Write.doResolve(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, Integer> offsets, StackManipulation stackManipulation) Completes the resolution.protected abstract booleanMemberSubstitution.Source.isRepresentable(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort sort, MemberSubstitution.Target target, MethodDescription instrumentedMethod) Validates if the supplied origin sort is representable.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ForDefaultValues.Resolved.make(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Returns the constant values to supply to the bootstrap method.MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved.make(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Returns the constant values to supply to the bootstrap method.protected abstract StackManipulationMemberSubstitution.Source.resolve(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort sort, MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, MethodDescription instrumentedMethod) Resolves a stack manipulation that loads the supplied sort of origin onto the operand stack.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForAssignment.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForDelegation.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForField.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.ForInvocation.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.Chain.Step.Simple.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer, Integer> offsets, int freeOffset) Resolves this step of a substitution chain.MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the field to substitute with.MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the field to substitute with.MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.Simple.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the field to substitute with.MemberSubstitution.Substitution.ForFieldAccess.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.MemberSubstitution.Substitution.ForMethodInvocation.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.ForValue.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.MemberSubstitution.Substitution.Stubbing.resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset) Resolves this substitution into a stack manipulation.protected abstract MemberSubstitution.Source.ValueMemberSubstitution.Source.self(TypeList.Generic parameters, Map<Integer, Integer> offsets, MemberSubstitution.Target target, MethodDescription instrumentedMethod) Resolves a value representation of thethisreference ornullif no such reference is available.