public interface Resolver
Modifier and Type | Method and Description |
---|---|
default boolean |
canResolve(java.lang.String name)
Returns whether this name can be resolved by this resolver.
|
java.util.Set<java.lang.String> |
getResolvableNames()
Returns a set of strings, indicating all names which can be resolved by this resolver.
|
java.util.Set<Resolver> |
resolve(java.lang.String name)
Resolve the given name to a set of resolvers.
|
java.util.Set<Resolver> resolve(java.lang.String name)
canResolve(String)
for the same argument
returns true, the set may be empty, but it will never be null or contain null elements. Note that however, if that
method returns false, there are no guarantees about the returned set in any way.name
- The name to be resolved for this Resolver.java.util.Set<java.lang.String> getResolvableNames()
canResolve(String)
. However, the opposite does not need to hold: Just
because canResolve(String)
returns true for some name, does not mean that name is contained in the
returned set, as sometimes listing all possibly resolvable names is not feasible as it may be infinite.default boolean canResolve(java.lang.String name)
name
- The name to be resolved for this Resolver.