Package net.bytebuddy.asm
Annotation Type Advice.DynamicConstant
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface Advice.DynamicConstantIndicates that the annotated parameter should resolve a dynamic constant, using either constantdynamic or invokedynamic which is then bound to the parameter as a value.
Important: Don't confuse this annotation with
MemberSubstitution.DynamicConstantorDynamicConstant. This annotation should be used only in combination withAdvice.- See Also:
Advice,Advice.OnMethodEnter,Advice.OnMethodExit
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringbootstrapNameReturns the name of the bootstrap method handle.java.lang.Class<?>[]bootstrapParameterTypesReturns the parameter types of the bootstrap method handle.java.lang.Class<?>bootstrapReturnTypeReturns the return type of the bootstrap method handle.JavaConstant.MethodHandle.HandleTypebootstrapTypeReturns the type of the bootstrap method handle to resolve.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>bootstrapOwnerReturns the owner type of the bootstrap method handle, orvoid, to represent the instrumented type.booleaninvokedynamicReturnstrueif invokedynamic should be used to bind the annotated parameter.java.lang.StringnameReturns the name of the dynamic constant that is supplied to the bootstrap method.
-
-
-
Element Detail
-
bootstrapType
JavaConstant.MethodHandle.HandleType bootstrapType
Returns the type of the bootstrap method handle to resolve.- Returns:
- The type of the bootstrap method handle to resolve.
-
-