Package net.bytebuddy.asm
Interface MemberSubstitution.Replacement.Binding
-
- All Known Implementing Classes:
MemberSubstitution.Replacement.Binding.ForDynamicInvocation
,MemberSubstitution.Replacement.Binding.ForMember
,MemberSubstitution.Replacement.Binding.Unresolved
- Enclosing interface:
- MemberSubstitution.Replacement
public static interface MemberSubstitution.Replacement.Binding
A binding for a replacement of a field or method access within another method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MemberSubstitution.Replacement.Binding.ForDynamicInvocation
A binding that was resolved for an invokedynamic expression.static class
MemberSubstitution.Replacement.Binding.ForMember
A binding that was resolved for a field or method expression.static class
MemberSubstitution.Replacement.Binding.Unresolved
An unresolved binding.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isBound()
Returnstrue
if this binding is resolved.StackManipulation
make(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset)
Creates a stack manipulation that represents the substitution.
-
-
-
Method Detail
-
isBound
boolean isBound()
Returnstrue
if this binding is resolved.- Returns:
true
if this binding is resolved.
-
make
StackManipulation make(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset)
Creates a stack manipulation that represents the substitution. This method can only be called for actually bound bindings.- Parameters:
parameters
- The parameters that are accessible to the substitution target.result
- The result that is expected from the substitution target orvoid
if none is expected.methodHandle
- A method handle that represents the original expression that is being substituted.stackManipulation
- The original byte code expression that is being substituted.freeOffset
- The first offset that can be used for storing local variables.- Returns:
- A stack manipulation that represents the replacement.
-
-