@HashCodeAndEqualsPlugin.Enhance public static class Advice.BootstrapArgumentResolver.ForDefaultValues extends Object implements Advice.BootstrapArgumentResolver
String
of the target's binary class name.int
with value 0
for an enter advice and {code 1} for an exist advice.Class
representing the class implementing the instrumented method.String
with the name of the instrumented method.java.lang.invoke.MethodHandle
representing the instrumented method unless the target is the type's static initializer.Modifier and Type | Class and Description |
---|---|
static class |
Advice.BootstrapArgumentResolver.ForDefaultValues.Factory
A factory for creating a
Advice.BootstrapArgumentResolver.ForDefaultValues . |
Advice.BootstrapArgumentResolver.ForDefaultValues
Modifier | Constructor and Description |
---|---|
protected |
ForDefaultValues(MethodDescription.InDefinedShape adviceMethod,
boolean exit)
Creates a bootstrap argument resolver with default values.
|
Modifier and Type | Method and Description |
---|---|
List<JavaConstant> |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the constants that are provided as arguments to the bootstrap methods.
|
protected ForDefaultValues(MethodDescription.InDefinedShape adviceMethod, boolean exit)
adviceMethod
- The advice method.exit
- true
if the advice is applied as exit advice.public List<JavaConstant> resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
resolve
in interface Advice.BootstrapArgumentResolver
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.Copyright © 2014–2024. All rights reserved.