Class AgentBuilder.Transformer.ForAdvice.Entry

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice.Entry
Direct Known Subclasses:
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice, AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice
Enclosing class:
AgentBuilder.Transformer.ForAdvice

@Enhance protected abstract static class AgentBuilder.Transformer.ForAdvice.Entry extends Object
An entry for an advice to apply.
  • Field Details

  • Constructor Details

    • Entry

      protected Entry(LatentMatcher<? super MethodDescription> matcher)
      Creates a new entry.
      Parameters:
      matcher - The matcher for advised methods.
  • Method Details

    • getMatcher

      protected LatentMatcher<? super MethodDescription> getMatcher()
      Returns the matcher for advised methods.
      Returns:
      The matcher for advised methods.
    • resolve

      protected abstract Advice resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)
      Resolves the advice for this entry.
      Parameters:
      advice - The advice configuration.
      typePool - The type pool to use.
      classFileLocator - The class file locator to use.
      Returns:
      The resolved advice.