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 java.lang.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
Fields Modifier and Type Field Description private java.util.List<? extends JavaConstant>
arguments
The constant arguments that are provided to the invokedynamic instruction.private JavaConstant.MethodType
methodType
The requested type of the target for the invokedynamic instruction.private java.lang.String
name
The name that is expected for the bound target.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForDynamicInvocation(JavaConstant.MethodType methodType, java.lang.String name, java.util.List<? extends JavaConstant> arguments)
Creates a new target for an invokedynamic instruction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<? extends JavaConstant>
getArguments()
Returns the constant arguments that are provided to the invokedynamic instruction.JavaConstant.MethodType
getMethodType()
Returns the requested type of the target for the invokedynamic instruction.java.lang.String
getName()
Returns the (internal) name of the target.boolean
isStaticDispatch()
Determines if the target is dispatched statically.
-
-
-
Field Detail
-
methodType
private final JavaConstant.MethodType methodType
The requested type of the target for the invokedynamic instruction.
-
name
private final java.lang.String name
The name that is expected for the bound target.
-
arguments
private final java.util.List<? extends JavaConstant> arguments
The constant arguments that are provided to the invokedynamic instruction.
-
-
Constructor Detail
-
ForDynamicInvocation
protected ForDynamicInvocation(JavaConstant.MethodType methodType, java.lang.String name, java.util.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 Detail
-
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
public JavaConstant.MethodType getMethodType()
Returns the requested type of the target for the invokedynamic instruction.- Returns:
- The requested type of the target for the invokedynamic instruction.
-
getName
public java.lang.String getName()
Returns the (internal) name of the target.- Specified by:
getName
in interfaceMemberSubstitution.Target
- Returns:
- The name of the target.
-
getArguments
public java.util.List<? extends JavaConstant> getArguments()
Returns the constant arguments that are provided to the invokedynamic instruction.- Returns:
- The constant arguments that are provided to the invokedynamic instruction.
-
-