Package org.daiitech.naftah.builtin
Annotation 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 ElementsModifier and TypeRequired ElementDescriptionA brief description of the function provider.String[]The list of function names provided by this provider.The provider's name. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanflags that the function aliases should be bound with the provider's name.booleanflags that the function names should be bound with the provider's name.
-
Element Details
-
name
String nameThe provider's name.- Returns:
- the name of the function provider
-
description
String descriptionA brief description of the function provider.- Returns:
- the description of the provider
-
functionNames
String[] functionNamesThe list of function names provided by this provider.- Returns:
- an array of function names
-
-
-
useQualifiedName
boolean useQualifiedNameflags 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 useQualifiedAliasesflags 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
-