Class FunctionRegistry
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.fn.FunctionRegistry
-
public final class FunctionRegistry extends java.lang.ObjectCollection of registered functions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<LibraryFunction>forNode(FunctionNode node)Retrieves theLibraryFunctionfor the givenFunctionNodeif registered.voidregisterFunction(FunctionDefinition definition)
-
-
-
Method Detail
-
registerFunction
public void registerFunction(FunctionDefinition definition)
-
forNode
public java.util.Optional<LibraryFunction> forNode(FunctionNode node)
Retrieves theLibraryFunctionfor the givenFunctionNodeif registered.- Parameters:
node- the FunctionNode to retrieve the function for.- Returns:
- the optional function.
-
-