Interface ValueResolver

All Superinterfaces:
Resolver, WithPriority
All Known Implementing Classes:
ReflectionValueResolver

public interface ValueResolver extends Resolver, WithPriority
Value resolvers are used when evaluating expressions.

First the resolvers that apply to the given EvalContext are filtered. Then the resolver with highest priority is used to resolve the data. If Results.isNotFound(Object) is returned the next available resolver is tried.

See Also:
  • Method Details

    • appliesTo

      default boolean appliesTo(EvalContext context)
      Parameters:
      context -
      Returns:
      true if this resolver applies to the given context
    • builder

      static ValueResolverBuilder builder()
      Returns:
      a new builder
    • matchClass

      static boolean matchClass(EvalContext ctx, Class<?> clazz)