Class IntegraalInvokers
java.lang.Object
fr.inria.rules.integraal.model.functions.IntegraalInvokers
Default invokers for InteGraal.
This class provides a collection of invoker functions used for various operations
on terms such as mathematical calculations, string manipulation, set operations, etc.
Each invoker throws specific exceptions when encountering invalid arguments or errors.
- Author:
- Florent Tornil, Guillaume Pérution-Kihli
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCustom exception for invoker errors.static enumEnum representing standard invokers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all invoker names as a List of Strings.Retrieves the invoker corresponding to a given function.getInvoker(String fct) Retrieves the invoker by function name as a string.static voidPrints a small diagnostic sample of registered invokers.
-
Constructor Details
-
IntegraalInvokers
Default constructor. Initializes the invokers and maps their corresponding string representations.- Parameters:
tf- A term factory used to create terms.
-
-
Method Details
-
getInvoker
Retrieves the invoker corresponding to a given function.- Parameters:
fct- The name of the function.- Returns:
- The invoker corresponding to the given name.
-
getInvoker
-
getAllInvokerNames
-
main
Prints a small diagnostic sample of registered invokers.- Parameters:
args- unused command-line arguments- Throws:
IntegraalInvokers.InvokerException- if invoker initialization fails
-