Interface ExpressionFunctionResolver

  • All Known Implementing Classes:
    EnumResolver, MultiResolver

    public interface ExpressionFunctionResolver
    Resolver encapsulation for finding a relevant function by name.
    Author:
    Matthew Tropiano
    • Method Detail

      • containsFunctionByName

        boolean containsFunctionByName​(String name)
        Attempts to find if this resolver has a function by its calling name.

        Names must be resolved case-insensitively!

        If this returns true for a function name, getFunctionByName(String) must NOT return null if called with that name!

        Parameters:
        name - the name to find.
        Returns:
        a corresponding function or null for no such function.
      • getFunctionByName

        ExpressionFunctionType getFunctionByName​(String name)
        Attempts to resolve a pertinent function by its calling name.

        Names must be resolved case-insensitively!

        If this returns a non-null for a function name, containsFunctionByName(String) must NOT return false if called with that name!

        The same function must be returned if this is called again with the same name!

        Parameters:
        name - the name to resolve.
        Returns:
        a corresponding function or null for no such function.
        See Also:
        containsFunctionByName(String)