Annotation Interface NaftahFnProvider


@Target(TYPE) @Retention(RUNTIME) public @interface NaftahFnProvider
Annotation to mark a class as a provider of Naftah functions.

Classes annotated with this should provide the specified functions. This annotation includes metadata such as the provider's name, description, and the list of function names it offers.

مثال على الاستخدام:

 
 @NaftahFnProvider(
 name = "مزود الدوال الرياضية",
 description = "يوفر دوال حسابية متنوعة مثل الجمع والطرح",
 functionNames = {"جمع", "طرح"}
 )
 public class MathFunctionProvider {
 // تعريف الدوال هنا
 }
 
 
Author:
Chakib Daii
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A brief description of the function provider.
    The list of function names provided by this provider.
    The provider's name.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    flags that the function aliases should be bound with the provider's name.
    boolean
    flags that the function names should be bound with the provider's name.
  • Element Details

    • name

      String name
      The provider's name.
      Returns:
      the name of the function provider
    • description

      String description
      A brief description of the function provider.
      Returns:
      the description of the provider
    • functionNames

      String[] functionNames
      The list of function names provided by this provider.
      Returns:
      an array of function names
    • useQualifiedName

      boolean useQualifiedName
      flags that the function names should be bound with the provider's name.
      Returns:
      true if we should use qualified name; false if not
      Default:
      false
    • useQualifiedAliases

      boolean useQualifiedAliases
      flags that the function aliases should be bound with the provider's name.
      Returns:
      true if we should use qualified name; false if not
      Default:
      false