Module io.quarkus.qute.debug
Class DefaultValueResolverCollector
java.lang.Object
io.quarkus.qute.debug.agent.resolvers.DefaultValueResolverCollector
- All Implemented Interfaces:
ValueResolverCollector
Default implementation of
ValueResolverCollector that collects
properties and methods supported by a ValueResolver.
Uses ValueResolver.getSupportedProperties() and
ValueResolver.getSupportedMethods() to populate the context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(io.quarkus.qute.ValueResolver valueResolver, ValueResolverContext context) Collects the supported properties and methods from the value resolver into the providedValueResolverContext.booleanisApplicable(io.quarkus.qute.ValueResolver valueResolver, io.quarkus.qute.EvalContext evalContext) Checks if theValueResolverapplies to the given evaluation context.
-
Constructor Details
-
DefaultValueResolverCollector
public DefaultValueResolverCollector()
-
-
Method Details
-
isApplicable
public boolean isApplicable(io.quarkus.qute.ValueResolver valueResolver, io.quarkus.qute.EvalContext evalContext) Checks if theValueResolverapplies to the given evaluation context.- Specified by:
isApplicablein interfaceValueResolverCollector- Parameters:
valueResolver- the value resolver to testevalContext- the evaluation context- Returns:
trueif the resolver applies,falseotherwise
-
collect
Collects the supported properties and methods from the value resolver into the providedValueResolverContext.Only collects properties if
ValueResolverContext.isCollectProperty()returns true, usingValueResolver.getSupportedProperties(). Only collects methods ifValueResolverContext.isCollectMethod()returns true, usingValueResolver.getSupportedMethods().- Specified by:
collectin interfaceValueResolverCollector- Parameters:
valueResolver- the value resolver to collect fromcontext- the context to fill with properties and methods
-