Package net.bytebuddy.asm
Class MemberSubstitution.Target.ForDynamicInvocation
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Target.ForDynamicInvocation
- All Implemented Interfaces:
MemberSubstitution.Target
- Enclosing interface:
MemberSubstitution.Target
public static class MemberSubstitution.Target.ForDynamicInvocation
extends Object
implements MemberSubstitution.Target
Represents an invokedynamic instruction that is the target of a substitution.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Target
MemberSubstitution.Target.ForDynamicInvocation, MemberSubstitution.Target.ForMember
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<? extends JavaConstant> The constant arguments that are provided to the invokedynamic instruction.private final JavaConstant.MethodType
The requested type of the target for the invokedynamic instruction.private final String
The name that is expected for the bound target. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForDynamicInvocation
(JavaConstant.MethodType methodType, String name, List<? extends JavaConstant> arguments) Creates a new target for an invokedynamic instruction. -
Method Summary
Modifier and TypeMethodDescriptionList
<? extends JavaConstant> Returns the constant arguments that are provided to the invokedynamic instruction.Returns the requested type of the target for the invokedynamic instruction.getName()
Returns the (internal) name of the target.boolean
Determines if the target is dispatched statically.
-
Field Details
-
methodType
The requested type of the target for the invokedynamic instruction. -
name
The name that is expected for the bound target. -
arguments
The constant arguments that are provided to the invokedynamic instruction.
-
-
Constructor Details
-
ForDynamicInvocation
protected ForDynamicInvocation(JavaConstant.MethodType methodType, String name, List<? extends JavaConstant> arguments) Creates a new target for an invokedynamic instruction.- Parameters:
methodType
- The requested type of the target for the invokedynamic instruction.name
- The name that is expected for the bound target.arguments
- The constant arguments that are provided to the invokedynamic instruction.
-
-
Method Details
-
isStaticDispatch
public boolean isStaticDispatch()Determines if the target is dispatched statically.- Specified by:
isStaticDispatch
in interfaceMemberSubstitution.Target
- Returns:
true
if the target is dispatched statically.
-
getMethodType
Returns the requested type of the target for the invokedynamic instruction.- Returns:
- The requested type of the target for the invokedynamic instruction.
-
getName
Returns the (internal) name of the target.- Specified by:
getName
in interfaceMemberSubstitution.Target
- Returns:
- The name of the target.
-
getArguments
Returns the constant arguments that are provided to the invokedynamic instruction.- Returns:
- The constant arguments that are provided to the invokedynamic instruction.
-