Class DefaultValueResolverCollector

java.lang.Object
io.quarkus.qute.debug.agent.resolvers.DefaultValueResolverCollector
All Implemented Interfaces:
ValueResolverCollector

public class DefaultValueResolverCollector extends Object implements 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 Details

    • DefaultValueResolverCollector

      public DefaultValueResolverCollector()
  • Method Details

    • isApplicable

      public boolean isApplicable(io.quarkus.qute.ValueResolver valueResolver, io.quarkus.qute.EvalContext evalContext)
      Checks if the ValueResolver applies to the given evaluation context.
      Specified by:
      isApplicable in interface ValueResolverCollector
      Parameters:
      valueResolver - the value resolver to test
      evalContext - the evaluation context
      Returns:
      true if the resolver applies, false otherwise
    • collect

      public void collect(io.quarkus.qute.ValueResolver valueResolver, ValueResolverContext context)
      Collects the supported properties and methods from the value resolver into the provided ValueResolverContext.

      Only collects properties if ValueResolverContext.isCollectProperty() returns true, using ValueResolver.getSupportedProperties(). Only collects methods if ValueResolverContext.isCollectMethod() returns true, using ValueResolver.getSupportedMethods().

      Specified by:
      collect in interface ValueResolverCollector
      Parameters:
      valueResolver - the value resolver to collect from
      context - the context to fill with properties and methods