Package net.bytebuddy.asm
Annotation Type Advice.DynamicConstant
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface Advice.DynamicConstant
Indicates 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.DynamicConstant
orDynamicConstant
. 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.String
bootstrapName
Returns the name of the bootstrap method handle.java.lang.Class<?>[]
bootstrapParameterTypes
Returns the parameter types of the bootstrap method handle.java.lang.Class<?>
bootstrapReturnType
Returns the return type of the bootstrap method handle.JavaConstant.MethodHandle.HandleType
bootstrapType
Returns the type of the bootstrap method handle to resolve.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>
bootstrapOwner
Returns the owner type of the bootstrap method handle, orvoid
, to represent the instrumented type.boolean
invokedynamic
Returnstrue
if invokedynamic should be used to bind the annotated parameter.java.lang.String
name
Returns 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.
-
-