Module io.quarkus.qute.debug
Interface ValueResolverCollector
- All Known Implementing Classes:
DefaultValueResolverCollector,ReflectionValueResolverCollector
public interface ValueResolverCollector
Interface to collect information from a
ValueResolver for debugging
purposes.
Implementations decide whether a given ValueResolver is applicable
to a specific evaluation context, and how to collect values into a
ValueResolverContext.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(io.quarkus.qute.ValueResolver valueResolver, ValueResolverContext context) Collects the values from the givenValueResolverinto the providedValueResolverContextfor debugging.booleanisApplicable(io.quarkus.qute.ValueResolver valueResolver, io.quarkus.qute.EvalContext evalContext) Determines if the givenValueResolveris applicable in the providedEvalContext.
-
Method Details
-
isApplicable
boolean isApplicable(io.quarkus.qute.ValueResolver valueResolver, io.quarkus.qute.EvalContext evalContext) Determines if the givenValueResolveris applicable in the providedEvalContext.- Parameters:
valueResolver- the value resolver to testevalContext- the evaluation context for the current expression- Returns:
trueif the resolver can be applied,falseotherwise
-
collect
Collects the values from the givenValueResolverinto the providedValueResolverContextfor debugging.- Parameters:
valueResolver- the value resolver to collect values fromcontext- the context to store collected values
-