Package net.bytebuddy.implementation.bind
The types and classes of this package are responsible for binding a method call to calling another method.
-
Interface Summary Interface Description MethodDelegationBinder A method delegation binder is responsible for creating a method binding for a source method to a target method.MethodDelegationBinder.AmbiguityResolver Implementations of this interface are able to attempt the resolution of two successful bindings of a method to two different target methods in order to identify a dominating binding.MethodDelegationBinder.BindingResolver A binding resolver is responsible to choose a method binding between several possible candidates.MethodDelegationBinder.MethodBinding A binding attempt created by aMethodDelegationBinder
.MethodDelegationBinder.MethodInvoker Implementations are used as delegates for invoking a method that was bound using aMethodDelegationBinder
.MethodDelegationBinder.ParameterBinding<T> A binding attempt for a single parameter.MethodDelegationBinder.Record A method delegation that was compiled to a target method.MethodDelegationBinder.TerminationHandler A termination handler is responsible for terminating a method delegation. -
Class Summary Class Description ArgumentTypeResolver.ParameterIndexToken This token is used to mark a one-to-one binding of a source method parameter to a target method parameter.MethodDelegationBinder.AmbiguityResolver.Compound A chain ofMethodDelegationBinder.AmbiguityResolver
s that are applied in the given order until two bindings can be resolved.MethodDelegationBinder.BindingResolver.StreamWriting Binds a method using another resolver and prints the selected binding to aPrintStream
.MethodDelegationBinder.MethodBinding.Builder A mutable builder that allows to compose aMethodDelegationBinder.MethodBinding
by adding parameter bindings incrementally.MethodDelegationBinder.MethodBinding.Builder.Build A method binding that was created by aMethodDelegationBinder.MethodBinding.Builder
.MethodDelegationBinder.MethodInvoker.Virtual A method invocation that enforces a virtual invocation that is dispatched on a given type.MethodDelegationBinder.ParameterBinding.Anonymous An anonymous binding of a target method parameter.MethodDelegationBinder.ParameterBinding.Unique<T> A uniquely identifiable parameter binding for a target method.MethodDelegationBinder.Processor A helper class that allows to identify a best binding for a given type and source method choosing from a list of given target methods by using a givenMethodDelegationBinder
and anMethodDelegationBinder.AmbiguityResolver
. -
Enum Summary Enum Description ArgumentTypeResolver Implementation of anMethodDelegationBinder.AmbiguityResolver
that resolves two conflicting bindings by considering most-specific types of target method parameters in the same manner as the Java compiler resolves bindings of overloaded method.ArgumentTypeResolver.PrimitiveTypePrecedence A representation of the precedence of a most specific primitive type in the Java programming language.DeclaringTypeResolver This ambiguity resolver matches that method out of two methods that is declared by the more specific type.MethodDelegationBinder.AmbiguityResolver.Directional An ambiguity resolver that always resolves in the specified direction.MethodDelegationBinder.AmbiguityResolver.NoOp An ambiguity resolver that does not attempt to resolve a conflicting binding.MethodDelegationBinder.AmbiguityResolver.Resolution A resolution state of an attempt to resolve two conflicting bindings.MethodDelegationBinder.BindingResolver.Default A default implementation of a binding resolver that fully relies on anMethodDelegationBinder.AmbiguityResolver
.MethodDelegationBinder.BindingResolver.Unique A binding resolver that only binds a method if it has a unique binding.MethodDelegationBinder.MethodBinding.Illegal Representation of an attempt to bind a source method to a target method that is not applicable.MethodDelegationBinder.MethodInvoker.Simple A simple method invocation that merely uses the most general form of method invocation as provided byMethodInvocation
.MethodDelegationBinder.ParameterBinding.Illegal A singleton representation of an illegal binding for a method parameter.MethodDelegationBinder.Record.Illegal A compiled method delegation binder that only yields illegal bindings.MethodDelegationBinder.TerminationHandler.Default Responsible for creating aStackManipulation
that is applied after the interception method is applied.MethodNameEqualityResolver Implementation of anMethodDelegationBinder.AmbiguityResolver
that resolves conflicting bindings by considering equality of a target method's internalName as an indicator for a dominant binding.ParameterLengthResolver ThisMethodDelegationBinder.AmbiguityResolver
selects the method with more arguments.