Class MethodRegistry.Default.Entry

java.lang.Object
net.bytebuddy.dynamic.scaffold.MethodRegistry.Default.Entry
All Implemented Interfaces:
LatentMatcher<MethodDescription>
Enclosing class:
MethodRegistry.Default

@Enhance protected static class MethodRegistry.Default.Entry extends Object implements LatentMatcher<MethodDescription>
An entry of a default method registry.
  • Field Details

  • Constructor Details

  • Method Details

    • asPreparedEntry

      protected MethodRegistry.Default.Prepared.Entry asPreparedEntry(TypeDescription instrumentedType, MethodDescription methodDescription, Visibility visibility)
      Transforms this entry into a prepared state.
      Parameters:
      instrumentedType - The instrumented type.
      methodDescription - The non-transformed method to be implemented.
      visibility - The represented method's minimum visibility.
      Returns:
      A prepared version of this entry.
    • asPreparedEntry

      protected MethodRegistry.Default.Prepared.Entry asPreparedEntry(TypeDescription instrumentedType, MethodDescription methodDescription, Set<MethodDescription.TypeToken> methodTypes, Visibility visibility)
      Transforms this entry into a prepared state.
      Parameters:
      instrumentedType - The instrumented type.
      methodDescription - The non-transformed method to be implemented.
      methodTypes - The method types this method represents.
      visibility - The represented method's minimum visibility.
      Returns:
      A prepared version of this entry.
    • asSupplementaryEntry

      protected MethodRegistry.Default.Prepared.Entry asSupplementaryEntry(MethodDescription methodDescription)
      Returns a prepared entry for a supplementary method.
      Parameters:
      methodDescription - The method to be implemented.
      Returns:
      An entry for a supplementary entry that is defined by a method implementation instance.
    • getHandler

      protected MethodRegistry.Handler getHandler()
      Returns this entry's handler.
      Returns:
      The handler of this entry.
    • resolve

      public ElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription)
      Resolves the element matcher this instance represents for the supplied type description.
      Specified by:
      resolve in interface LatentMatcher<MethodDescription>
      Parameters:
      typeDescription - The type description for which the represented matcher should be resolved.
      Returns:
      An ElementMatcher that represents this matcher's resolved form.