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 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.MethodTypeThe requested type of the target for the invokedynamic instruction.private final StringThe name that is expected for the bound target. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForDynamicInvocation(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.booleanDetermines 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:
isStaticDispatchin interfaceMemberSubstitution.Target- Returns:
trueif 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:
getNamein 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.
-