public static class InvokeDynamic.WithImplicitArguments extends InvokeDynamic.AbstractDelegator
InvokeDynamic
implementation where the bootstrapped
method is passed a this
reference, if available, and any arguments of the instrumented method.InvokeDynamic.AbstractDelegator, InvokeDynamic.Appender, InvokeDynamic.InvocationProvider, InvokeDynamic.TerminationHandler, InvokeDynamic.WithImplicitArguments, InvokeDynamic.WithImplicitTarget, InvokeDynamic.WithImplicitType
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
InstrumentedType.Prepareable.NoOp
arguments, assigner, bootstrap, invocationProvider, terminationHandler, typing
Modifier | Constructor and Description |
---|---|
protected |
WithImplicitArguments(MethodDescription.InDefinedShape bootstrap,
List<? extends JavaConstant> arguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing)
Creates a new dynamic method invocation with implicit arguments.
|
Modifier and Type | Method and Description |
---|---|
protected InvokeDynamic |
materialize()
Resolves the current configuration into a fully initialized invoke dynamic instance.
|
InvokeDynamic.WithImplicitArguments |
withAssigner(Assigner assigner,
Assigner.Typing typing)
Instructs this implementation to use the provided assigner and decides if the assigner should apply
dynamic typing.
|
InvokeDynamic |
withoutArguments()
Returns an instance of this instrumentation where the bootstrapped method is not passed any arguments.
|
andThen, appender, prepare, withArgument, withArgument, withBooleanValue, withByteValue, withCharacterValue, withDoubleValue, withEnumeration, withField, withField, withField, withField, withFloatValue, withImplicitAndMethodArguments, withInstance, withIntegerValue, withLongValue, withMethodArguments, withNullValue, withNullValue, withReference, withReference, withShortValue, withThis, withThis, withType, withValue
protected WithImplicitArguments(MethodDescription.InDefinedShape bootstrap, List<? extends JavaConstant> arguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, Assigner.Typing typing)
bootstrap
- The bootstrap method or constructor.arguments
- The arguments that are provided to the bootstrap method or constructor.invocationProvider
- The target provided that identifies the method to be bootstrapped.terminationHandler
- A handler that handles the method return.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.public InvokeDynamic withoutArguments()
protected InvokeDynamic materialize()
InvokeDynamic.AbstractDelegator
materialize
in class InvokeDynamic.AbstractDelegator
public InvokeDynamic.WithImplicitArguments withAssigner(Assigner assigner, Assigner.Typing typing)
withAssigner
in class InvokeDynamic.AbstractDelegator
assigner
- The assigner to use.typing
- true
if the assigner should attempt dynamic typing.Copyright © 2014–2024. All rights reserved.