Class RecordComponentRegistry.Default.Compiled.Entry

java.lang.Object
net.bytebuddy.dynamic.scaffold.RecordComponentRegistry.Default.Compiled.Entry
All Implemented Interfaces:
ElementMatcher<RecordComponentDescription>
Enclosing class:
RecordComponentRegistry.Default.Compiled

@Enhance protected static class RecordComponentRegistry.Default.Compiled.Entry extends Object implements ElementMatcher<RecordComponentDescription>
An entry of a compiled record component registry.
  • Field Details

  • Constructor Details

  • Method Details

    • bind

      protected TypeWriter.RecordComponentPool.Record bind(TypeDescription instrumentedType, RecordComponentDescription recordComponentDescription)
      Binds this entry to the provided record component description.
      Parameters:
      instrumentedType - The instrumented type for which this entry applies.
      recordComponentDescription - The record component description to be bound to this entry.
      Returns:
      A record representing the binding of this entry to the provided record component.
    • matches

      public boolean matches(@MaybeNull RecordComponentDescription target)
      Matches a target against this element matcher.
      Specified by:
      matches in interface ElementMatcher<RecordComponentDescription>
      Parameters:
      target - The instance to be matched or null.
      Returns:
      true if the given element is matched by this matcher or false otherwise.