Class ModifierAdjustment.Adjustment<T>

java.lang.Object
net.bytebuddy.asm.ModifierAdjustment.Adjustment<T>
Type Parameters:
T - The type of the adjusted element's description.
All Implemented Interfaces:
ElementMatcher<T>
Enclosing class:
ModifierAdjustment

@Enhance protected static class ModifierAdjustment.Adjustment<T> extends Object implements ElementMatcher<T>
A description of a conditional adjustment.
  • Field Details

  • Constructor Details

    • Adjustment

      protected Adjustment(ElementMatcher<? super T> matcher, ModifierContributor.Resolver<?> resolver)
      Creates a new adjustment.
      Parameters:
      matcher - The matcher to determine an adjustment.
      resolver - The resolver to apply.
  • Method Details

    • matches

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

      protected int resolve(int modifiers)
      Resolves a modifier.
      Parameters:
      modifiers - The original modifiers.
      Returns:
      The resolved modifiers.