Package chemaxon.chemterms
Annotation Interface ChemTermsContext.ProvidesFunction
- Enclosing interface:
ChemTermsContext
@PublicApi
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(ProvidesFunctionContainer.class)
public static @interface ChemTermsContext.ProvidesFunction
Repeatable annotation used on
ChemTermsContext implementations to declare the context functions
supported by the ChemTermsContext.callContextFunction(String, List) method.
Apart from the names of the functions, the minimum and maximum number of allowed parameters are also specified, and the evaluator engine will validate these constraints during the compilation of an expression.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintThe higher end of the allowed parameter count range (inclusive), orChemTermsContext.VARARGto signal that there is no maximum.intThe lower end of the allowed parameter count range (inclusive).String[]The names of the functions which are registered by this annotation.
-
Element Details
-
minParameterCount
int minParameterCountThe lower end of the allowed parameter count range (inclusive). -
maxParameterCount
int maxParameterCountThe higher end of the allowed parameter count range (inclusive), orChemTermsContext.VARARGto signal that there is no maximum. -
names
String[] namesThe names of the functions which are registered by this annotation. Functions with the same allowed parameter counts can be grouped together to reduce boilerplate. Declaring functions one-by-one or in a single annotation is equivalent.
-