@HashCodeAndEqualsPlugin.Enhance public static class InvokeDynamic.InvocationProvider.Default extends Object implements InvokeDynamic.InvocationProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
InvokeDynamic.InvocationProvider.Default.Target
A target for a synthetically bound method call.
|
InvokeDynamic.InvocationProvider.ArgumentProvider, InvokeDynamic.InvocationProvider.Default, InvokeDynamic.InvocationProvider.NameProvider, InvokeDynamic.InvocationProvider.ReturnTypeProvider| Modifier | Constructor and Description |
|---|---|
protected |
Default()
Creates a new default invocation provider that provides information and arguments of the
intercepted method.
|
protected |
Default(InvokeDynamic.InvocationProvider.NameProvider nameProvider,
InvokeDynamic.InvocationProvider.ReturnTypeProvider returnTypeProvider,
List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders)
Creates a new default invocation provider.
|
| Modifier and Type | Method and Description |
|---|---|
InvokeDynamic.InvocationProvider |
appendArgument(InvokeDynamic.InvocationProvider.ArgumentProvider argumentProvider)
Appends the given argument to the invocation to be loaded onto the operand stack.
|
InvokeDynamic.InvocationProvider |
appendArguments(List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders)
Appends the given arguments to the invocation to be loaded onto the operand stack.
|
InvokeDynamic.InvocationProvider.Default.Target |
make(MethodDescription methodDescription)
Creates a target for the invocation.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type.
|
InvokeDynamic.InvocationProvider |
withNameProvider(InvokeDynamic.InvocationProvider.NameProvider nameProvider)
Returns a copy of this invocation provider that applies the given name provider.
|
InvokeDynamic.InvocationProvider |
withoutArguments()
Returns a copy of this invocation provider that does not add any arguments.
|
InvokeDynamic.InvocationProvider |
withReturnTypeProvider(InvokeDynamic.InvocationProvider.ReturnTypeProvider returnTypeProvider)
Returns a copy of this invocation provider that applies the given return type provider.
|
protected Default()
protected Default(InvokeDynamic.InvocationProvider.NameProvider nameProvider, InvokeDynamic.InvocationProvider.ReturnTypeProvider returnTypeProvider, List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders)
nameProvider - The provider for the name of the intercepted method.returnTypeProvider - The provider for the required return type.argumentProviders - The providers for the method arguments in their order.public InvokeDynamic.InvocationProvider.Default.Target make(MethodDescription methodDescription)
make in interface InvokeDynamic.InvocationProvidermethodDescription - The method that is being intercepted.public InvokeDynamic.InvocationProvider appendArguments(List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders)
appendArguments in interface InvokeDynamic.InvocationProviderargumentProviders - The next arguments to be loaded onto the operand stack.public InvokeDynamic.InvocationProvider appendArgument(InvokeDynamic.InvocationProvider.ArgumentProvider argumentProvider)
appendArgument in interface InvokeDynamic.InvocationProviderargumentProvider - The next argument to be loaded onto the operand stack.public InvokeDynamic.InvocationProvider withoutArguments()
withoutArguments in interface InvokeDynamic.InvocationProviderpublic InvokeDynamic.InvocationProvider withNameProvider(InvokeDynamic.InvocationProvider.NameProvider nameProvider)
withNameProvider in interface InvokeDynamic.InvocationProvidernameProvider - The name provider to be used.public InvokeDynamic.InvocationProvider withReturnTypeProvider(InvokeDynamic.InvocationProvider.ReturnTypeProvider returnTypeProvider)
withReturnTypeProvider in interface InvokeDynamic.InvocationProviderreturnTypeProvider - The return type provider to be used.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare in interface InvokeDynamic.InvocationProviderinstrumentedType - The instrumented type to prepare.Copyright © 2014–2023. All rights reserved.