Annotation Type DynamicConstant
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface DynamicConstantBinds a dynamic constant to the annotated parameter. The constant is either bound by using constantdynamic or invokedynamic.
Important: Don't confuse this annotation with
Advice.DynamicConstantorMemberSubstitution.DynamicConstant. This annotation should be used withMethodDelegationonly.
-
-
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.
-
-