Interface ExpressionFunctionResolver
- All Known Implementing Classes:
EnumResolver, MultiResolver
public interface ExpressionFunctionResolver
Resolver encapsulation for finding a relevant function by name.
- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsFunctionByName(String name) Attempts to find if this resolver has a function by its calling name.getFunctionByName(String name) Attempts to resolve a pertinent function by its calling name.
-
Method Details
-
containsFunctionByName
Attempts to find if this resolver has a function by its calling name.Names must be resolved case-insensitively!
If this returns
truefor 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
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 returnfalseif 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:
-