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| Constructor and Description |
|---|
Default()
Creates a new default invocation provider that provides information and arguments of the
intercepted method.
|
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.
|
boolean |
equals(Object other) |
int |
hashCode() |
InvokeDynamic.InvocationProvider.Default.Target |
make(MethodDescription methodDescription)
Creates a target for the invocation.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type.
|
String |
toString() |
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.
|
public Default()
public 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)
InvokeDynamic.InvocationProvidermake in interface InvokeDynamic.InvocationProvidermethodDescription - The method that is being intercepted.public InvokeDynamic.InvocationProvider appendArguments(List<InvokeDynamic.InvocationProvider.ArgumentProvider> argumentProviders)
InvokeDynamic.InvocationProviderappendArguments in interface InvokeDynamic.InvocationProviderargumentProviders - The next arguments to be loaded onto the operand stack.public InvokeDynamic.InvocationProvider appendArgument(InvokeDynamic.InvocationProvider.ArgumentProvider argumentProvider)
InvokeDynamic.InvocationProviderappendArgument in interface InvokeDynamic.InvocationProviderargumentProvider - The next argument to be loaded onto the operand stack.public InvokeDynamic.InvocationProvider withoutArguments()
InvokeDynamic.InvocationProviderwithoutArguments in interface InvokeDynamic.InvocationProviderpublic InvokeDynamic.InvocationProvider withNameProvider(InvokeDynamic.InvocationProvider.NameProvider nameProvider)
InvokeDynamic.InvocationProviderwithNameProvider in interface InvokeDynamic.InvocationProvidernameProvider - The name provider to be used.public InvokeDynamic.InvocationProvider withReturnTypeProvider(InvokeDynamic.InvocationProvider.ReturnTypeProvider returnTypeProvider)
InvokeDynamic.InvocationProviderwithReturnTypeProvider in interface InvokeDynamic.InvocationProviderreturnTypeProvider - The return type provider to be used.public InstrumentedType prepare(InstrumentedType instrumentedType)
InvokeDynamic.InvocationProviderprepare in interface InvokeDynamic.InvocationProviderinstrumentedType - The instrumented type to prepare.Copyright © 2014–2015. All rights reserved.