@HashCodeAndEqualsPlugin.Enhance protected static class AsmVisitorWrapper.ForDeclaredFields.Entry extends Object implements ElementMatcher<FieldDescription.InDefinedShape>, AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper
ElementMatcher.Junction<S>
Modifier | Constructor and Description |
---|---|
protected |
Entry(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers)
Creates a new entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(FieldDescription.InDefinedShape target)
Matches a target against this element matcher.
|
FieldVisitor |
wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
protected Entry(ElementMatcher<? super FieldDescription.InDefinedShape> matcher, List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers)
matcher
- The matcher to identify fields to be wrapped.fieldVisitorWrappers
- The field visitor wrapper to be applied if the given matcher is matched.public boolean matches(@MaybeNull FieldDescription.InDefinedShape target)
matches
in interface ElementMatcher<FieldDescription.InDefinedShape>
target
- The instance to be matched or null
.true
if the given element is matched by this matcher or false
otherwise.public FieldVisitor wrap(TypeDescription instrumentedType, FieldDescription.InDefinedShape fieldDescription, FieldVisitor fieldVisitor)
wrap
in interface AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper
instrumentedType
- The instrumented type.fieldDescription
- The field that is currently being defined.fieldVisitor
- The original field visitor that defines the given field.Copyright © 2014–2024. All rights reserved.