T - The type of the adjusted element's description.@HashCodeAndEqualsPlugin.Enhance protected static class ModifierAdjustment.Adjustment<T> extends java.lang.Object implements ElementMatcher<T>
ElementMatcher.Junction<S>| Modifier and Type | Field and Description |
|---|---|
private ElementMatcher<? super T> |
matcher
The matcher to determine an adjustment.
|
private ModifierContributor.Resolver<?> |
resolver
The resolver to apply.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Adjustment(ElementMatcher<? super T> matcher,
ModifierContributor.Resolver<?> resolver)
Creates a new adjustment.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(T target)
Matches a target against this element matcher.
|
protected int |
resolve(int modifiers)
Resolves a modifier.
|
private final ElementMatcher<? super T> matcher
private final ModifierContributor.Resolver<?> resolver
protected Adjustment(ElementMatcher<? super T> matcher, ModifierContributor.Resolver<?> resolver)
matcher - The matcher to determine an adjustment.resolver - The resolver to apply.public boolean matches(T target)
matches in interface ElementMatcher<T>target - The instance to be matched.true if the given element is matched by this matcher or false otherwise.protected int resolve(int modifiers)
modifiers - The original modifiers.