Annotation Type DynamicConstant

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> bootstrapOwner
      Returns the owner type of the bootstrap method handle, or void, to represent the instrumented type.
      boolean invokedynamic
      Returns true 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.
      • bootstrapName

        java.lang.String bootstrapName
        Returns the name of the bootstrap method handle.
        Returns:
        The name of the bootstrap method handle.
      • bootstrapReturnType

        java.lang.Class<?> bootstrapReturnType
        Returns the return type of the bootstrap method handle.
        Returns:
        The return type of the bootstrap method handle.
      • bootstrapParameterTypes

        java.lang.Class<?>[] bootstrapParameterTypes
        Returns the parameter types of the bootstrap method handle.
        Returns:
        The parameter types of the bootstrap method handle.
      • name

        java.lang.String name
        Returns the name of the dynamic constant that is supplied to the bootstrap method.
        Returns:
        The name of the dynamic constant that is supplied to the bootstrap method.
        Default:
        "_"
      • bootstrapOwner

        java.lang.Class<?> bootstrapOwner
        Returns the owner type of the bootstrap method handle, or void, to represent the instrumented type.
        Returns:
        The owner type of the bootstrap method handle, or void, to represent the instrumented type.
        Default:
        void.class
      • invokedynamic

        boolean invokedynamic
        Returns true if invokedynamic should be used to bind the annotated parameter.
        Returns:
        true if invokedynamic should be used to bind the annotated parameter.
        Default:
        false