@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.
|
org.objectweb.asm.FieldVisitor |
wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
org.objectweb.asm.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(FieldDescription.InDefinedShape target)
matches
in interface ElementMatcher<FieldDescription.InDefinedShape>
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.public org.objectweb.asm.FieldVisitor wrap(TypeDescription instrumentedType, FieldDescription.InDefinedShape fieldDescription, org.objectweb.asm.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–2018. All rights reserved.