Package net.bytebuddy.asm
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super T> The matcher to determine an adjustment.private final ModifierContributor.Resolver
<?> The resolver to apply. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Adjustment
(ElementMatcher<? super T> matcher, ModifierContributor.Resolver<?> resolver) Creates a new adjustment. -
Method Summary
-
Field Details
-
matcher
The matcher to determine an adjustment. -
resolver
The resolver to apply.
-
-
Constructor Details
-
Adjustment
Creates a new adjustment.- Parameters:
matcher
- The matcher to determine an adjustment.resolver
- The resolver to apply.
-
-
Method Details
-
matches
Matches a target against this element matcher.- Specified by:
matches
in interfaceElementMatcher<T>
- Parameters:
target
- The instance to be matched ornull
.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-
resolve
protected int resolve(int modifiers) Resolves a modifier.- Parameters:
modifiers
- The original modifiers.- Returns:
- The resolved modifiers.
-