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.WithImplicitArgumentType, InvokeDynamic.WithImplicitFieldType, InvokeDynamic.WithImplicitTarget
Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
assigner, bootstrapMethod, dynamicallyTyped, handleArguments, invocationProvider, terminationHandler
Modifier | Constructor and Description |
---|---|
protected |
WithImplicitArguments(MethodDescription bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
boolean dynamicallyTyped)
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.
|
String |
toString() |
InvokeDynamic.WithImplicitArguments |
withAssigner(Assigner assigner,
boolean dynamicallyTyped)
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.
|
withArgument, withArgument, withBooleanValue, withByteValue, withCharacterValue, withDoubleValue, withField, withFloatValue, withImplicitAndMethodArguments, withInstance, withInstanceField, withInstanceField, withIntegerValue, withLongValue, withMethodArguments, withNullValue, withNullValue, withReference, withReference, withShortValue, withThis, withThis, withType, withValue
andThen, appender, bootstrap, bootstrap, bootstrap, equals, getInvocationProvider, hashCode, prepare
protected WithImplicitArguments(MethodDescription bootstrapMethod, List<?> handleArguments, InvokeDynamic.InvocationProvider invocationProvider, InvokeDynamic.TerminationHandler terminationHandler, Assigner assigner, boolean dynamicallyTyped)
bootstrapMethod
- The bootstrap method.handleArguments
- The arguments that are provided to the bootstrap method.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.dynamicallyTyped
- true
if the assigner should attempt dynamically-typed assignments.public InvokeDynamic withoutArguments()
protected InvokeDynamic materialize()
InvokeDynamic.AbstractDelegator
materialize
in class InvokeDynamic.AbstractDelegator
public InvokeDynamic.WithImplicitArguments withAssigner(Assigner assigner, boolean dynamicallyTyped)
InvokeDynamic
withAssigner
in class InvokeDynamic
assigner
- The assigner to use.dynamicallyTyped
- true
if the assigner should attempt dynamic typing.public String toString()
toString
in class InvokeDynamic
Copyright © 2014–2015. All rights reserved.