@HashCodeAndEqualsPlugin.Enhance protected static class InvokeDynamic.InvocationProvider.Default.Target extends java.lang.Object implements InvokeDynamic.InvocationProvider.Target
InvokeDynamic.InvocationProvider.Target.Resolved
Modifier and Type | Field and Description |
---|---|
private java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider> |
argumentProviders
The arguments to be passed to the bootstrap method.
|
private MethodDescription |
instrumentedMethod
The intercepted method.
|
private java.lang.String |
internalName
The name to be passed to the bootstrap method.
|
private TypeDescription |
returnType
The return type to be requested from the bootstrapping method.
|
Modifier | Constructor and Description |
---|---|
protected |
Target(java.lang.String internalName,
TypeDescription returnType,
java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders,
MethodDescription instrumentedMethod)
Creates a new target.
|
Modifier and Type | Method and Description |
---|---|
InvokeDynamic.InvocationProvider.Target.Resolved |
resolve(TypeDescription instrumentedType,
Assigner assigner,
Assigner.Typing typing)
Resolves the target.
|
private final java.lang.String internalName
private final TypeDescription returnType
private final java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders
private final MethodDescription instrumentedMethod
protected Target(java.lang.String internalName, TypeDescription returnType, java.util.List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders, MethodDescription instrumentedMethod)
internalName
- The name to be passed to the bootstrap method.returnType
- The return type to be requested from the bootstrapping method.argumentProviders
- The arguments to be passed to the bootstrap method.instrumentedMethod
- The intercepted method.public InvokeDynamic.InvocationProvider.Target.Resolved resolve(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
resolve
in interface InvokeDynamic.InvocationProvider.Target
instrumentedType
- The instrumented type.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.