Class MultiResolver
java.lang.Object
com.blackrook.expression.resolver.MultiResolver
- All Implemented Interfaces:
ExpressionFunctionResolver
A resolver that is a combination of multiple resolvers.
- Author:
- Matthew Tropiano
-
Constructor Summary
ConstructorsConstructorDescriptionMultiResolver(ExpressionFunctionResolver... resolvers) Creates a new MultiResolver using a list of resolvers. -
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.
-
Constructor Details
-
MultiResolver
Creates a new MultiResolver using a list of resolvers.- Parameters:
resolvers- the list of resolvers.
-
-
Method Details
-
containsFunctionByName
Description copied from interface:ExpressionFunctionResolverAttempts 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,ExpressionFunctionResolver.getFunctionByName(String)must NOT return null if called with that name!- Specified by:
containsFunctionByNamein interfaceExpressionFunctionResolver- Parameters:
name- the name to find.- Returns:
- a corresponding function or null for no such function.
-
getFunctionByName
Description copied from interface:ExpressionFunctionResolverAttempts 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,
ExpressionFunctionResolver.containsFunctionByName(String)must NOT returnfalseif called with that name!The same function must be returned if this is called again with the same name!
- Specified by:
getFunctionByNamein interfaceExpressionFunctionResolver- Parameters:
name- the name to resolve.- Returns:
- a corresponding function or null for no such function.
- See Also:
-